This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* MCP23S08 SPI/GPIO gpio expander driver | |
*/ | |
#include <linux/kernel.h> | |
#include <linux/device.h> | |
#include <linux/mutex.h> | |
#include <linux/module.h> | |
#include <linux/gpio.h> | |
#include <linux/i2c.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# path of this file: /etc/apt/sources.list | |
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free | |
#deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free | |
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free | |
#deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free | |
deb http://security.debian.org/ jessie/updates main contrib non-free | |
#deb-src http://security.debian.org/ jessie/updates main contrib non-free |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/source/c_adc.c b/source/c_adc.c | |
index e0c754c..5269407 100644 | |
--- a/source/c_adc.c | |
+++ b/source/c_adc.c | |
@@ -30,29 +30,28 @@ SOFTWARE. | |
#include "c_adc.h" | |
#include "common.h" | |
-char adc_prefix_dir[40]; | |
+char adc_prefix_dir[49]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################## | |
root@outernet:~# find /sys |grep bcm | |
/sys/bus/sdio/drivers/bcmsdh_sdmmc | |
/sys/bus/sdio/drivers/bcmsdh_sdmmc/bind | |
/sys/bus/sdio/drivers/bcmsdh_sdmmc/sdio:0001:1 | |
/sys/bus/sdio/drivers/bcmsdh_sdmmc/sdio:0001:2 | |
/sys/bus/sdio/drivers/bcmsdh_sdmmc/uevent | |
/sys/bus/sdio/drivers/bcmsdh_sdmmc/unbind | |
root@outernet:~# find /sys -type f |grep broadcm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
U-Boot SPL 2016.03-00001-gd12d09f (Mar 17 2016 - 16:16:15) | |
Trying to boot from MMC | |
bad magic | |
U-Boot 2016.03-00001-gd12d09f (Mar 17 2016 - 16:16:15 -0500), Build: jenkins-github_Bootloader-Builder-351 | |
Watchdog enabled | |
I2C: ready | |
DRAM: 512 MiB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nasty C tricks - shamelessly stolen from: | |
https://gist.github.com/aras-p/6224951 | |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
running build | |
running build_py | |
creating build | |
creating build/lib.linux-x86_64-2.7 | |
copying Adafruit_I2C.py -> build/lib.linux-x86_64-2.7 | |
creating build/lib.linux-x86_64-2.7/Adafruit_BBIO | |
copying Adafruit_BBIO/__init__.py -> build/lib.linux-x86_64-2.7/Adafruit_BBIO | |
creating build/lib.linux-x86_64-2.7/overlays | |
copying overlays/__init__.py -> build/lib.linux-x86_64-2.7/overlays | |
copying overlays/builder.py -> build/lib.linux-x86_64-2.7/overlays |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dmesg | |
[ 0.000000] Booting Linux on physical CPU 0x0 | |
[ 0.000000] Initializing cgroup subsys cpuset | |
[ 0.000000] Initializing cgroup subsys cpu | |
[ 0.000000] Initializing cgroup subsys cpuacct | |
[ 0.000000] Linux version 4.4.48-ti-r88 (root@b1-omap5-uevm-2gb) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Sun Feb 12 01:06:00 UTC 2017 | |
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d | |
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache | |
[ 0.000000] Machine model: TI AM335x BeagleBone Black | |
[ 0.000000] cma: Reserved 48 MiB at 0x9c800000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index | Register | BeagleBone | Blue rev A2 | PocketBeagle | 0 (Name) | 1 | 2 | 3 | 4 | 5 | 6 | 7 | ZCZ/BSP | BSM | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 800 | P8.25 / eMMC d0 | -eMMC_DAT0 | gpmc d0 | mmc 1 d0 | - | - | - | - | - | gpio 1.00 | U7 | R3 | ||
2 | 804 | P8.24 / eMMC d1 | -eMMC_DAT1 | gpmc d1 | mmc 1 d1 | - | - | - | - | - | gpio 1.01 | V7 | R2 | ||
3 | 808 | P8.05 / eMMC d2 | -eMMC_DAT2 | gpmc d2 | mmc 1 d2 | - | - | - | - | - | gpio 1.02 | R8 | R1 | ||
4 | 80C | P8.06 / eMMC d3 | -eMMC_DAT3 | gpmc d3 | mmc 1 d3 | - | - | - | - | - | gpio 1.03 | T8 | T3 | ||
5 | 810 | P8.23 / eMMC d4 | -eMMC_DAT4 | gpmc d4 | mmc 1 d4 | - | - | - | - | - | gpio 1.04 | U8 | T2 | ||
6 | 814 | P8.22 / eMMC d5 | -eMMC_DAT5 | gpmc d5 | mmc 1 d5 | - | - | - | - | - | gpio 1.05 | V8 | T1 | ||
7 | 818 | P8.03 / eMMC d6 | -eMMC_DAT6 | gpmc d6 | mmc 1 d6 | - | - | - | - | - | gpio 1.06 | R9 | P4 | ||
8 | 81C | P8.04 / eMMC d7 | -eMMC_DAT7 | gpmc d7 | mmc 1 d7 | - | - | - | - | - | gpio 1.07 | T9 | R4 | ||
9 | 820 | P8.19 | MPWM_3 | gpmc d8 | lcd d23 | mmc 1 d0 | mmc 2 d4 | pwm 2 out A | pru mii 0 txclk | - | gpio 0.22 | U10 | T4 |