Skip to content

Instantly share code, notes, and snippets.

View cfriedt's full-sized avatar

Chris Friedt cfriedt

View GitHub Profile
#include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <vector>
/*
This file has been truncated, but you can view the full file.
diff --git a/boards/arm/twr_k60d100m/CMakeLists.txt b/boards/arm/twr_k60d100m/CMakeLists.txt
new file mode 100644
index 00000000000..a176e416064
--- /dev/null
+++ b/boards/arm/twr_k60d100m/CMakeLists.txt
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: Apache-2.0
+
+if(CONFIG_PINMUX_MCUX)
+ zephyr_library()
@cfriedt
cfriedt / Lisboa Greybus Demo Instructions
Last active April 3, 2020 13:27
Lisboa Greybus Demo Instructions
# Install some Ubuntu dependencies
apt install libnl-genl-3-dev libbluetooth-dev libavahi-client-dev gcc-arm-none-eabi curl build-essential git ssh python3-pip linux-headers-$(uname -r) flex bison gperf ninja-build cmake gpiod
# Install a newer version of cmake (required by zephyr)
# If you are using ubuntu:disco or newer, this can be ignored
PN=cmake
PV=3.15.2
PR=1
DEB="${PN}_${PV}-${PR}.deb"
curl -L -o "${DEB}" "https://github.com/cfriedt/${PN}-debs/releases/download/v${PV}/${DEB}"
@cfriedt
cfriedt / things-to-fix-in-and-around-chrome-os.md
Last active March 11, 2021 13:46
Things to Fix In and Around Chrome OS

Things to Fix In and Around Chrome OS

Expose All USB Devices to Crostini

Crostini is the codename for the Linux virtual machine in Chrome OS. It has a number of particular functions, such as running Docker containers. Recently, it also became possible to connect USB devices to the Linux VM.

Currently, only Android devices are usable within Crostini, as indicated by this phrase within the settings screen.

Only Android devices are currently supported

But to be specific, each Chrome Device should..

@cfriedt
cfriedt / stm32f746-disco_defconfig
Created December 20, 2018 02:11
Linux kernel defconfig for 32F746GDISCOVERY
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 4.19.0 Kernel Configuration
#
#
# Compiler: arm-none-eabi-gcc (15:6.3.1+svn253039-1build1) 6.3.1 20170620
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=60301