Skip to content

Instantly share code, notes, and snippets.

@webglider
webglider / template
Created March 18, 2015 13:20
gSoC 2014 BeagleBoard.org proposal template
--About you--
What is your name?
What is your email address?
What is your eLinux wiki username?
What is your IRC nickname?
@jadonk
jadonk / install_lsm303.sh
Last active August 29, 2015 14:22
Install LSM303DLHC driver on BeagleBone (Debian)
#!/bin/sh
apt-get install linux-headers-`uname -r`
mkdir lsm303
cd lsm303
wget http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/driver/stsw-mems026.tar
tar xvf stsw-mems026.tar
tar xvf lsm303dlhc.v.1.0.13.tar
cat <<MAKEFILE >Makefile
obj-m += lsm303dlhc_acc.o
obj-m += lsm303dlhc_mag.o
@mattcarpenter
mattcarpenter / gist:286272546a3b6c0edddc
Created June 16, 2015 02:04
Build Starterware Library
CC := clpru
AR := arpru
#OBJECTS = $(patsubst %.c,%.o,$(wildcard drivers/*.c))
OBJECTS = \
drivers/cpsw.o drivers/elm.o drivers/hs_mmcsd.o drivers/phy.o drivers/uart_irda_cir.o \
drivers/dcan.o drivers/gpio_v2.o drivers/mailbox.o drivers/raster.o drivers/watchdog.o \
drivers/dmtimer.o drivers/gpmc.o drivers/mcspi.o drivers/rtc.o \
drivers/ecap.o drivers/hsi2c.o drivers/mdio.o drivers/tsc_adc.o
SOURCES = $(patsubst %o,%c,$(OBJECTS)) include/*.h include/hw/*.h
@RobertCNelson
RobertCNelson / 00_a_opencl
Last active March 20, 2019 17:42
x15 TI opencl sdk
This is the OpenCL page...
@pdp7
pdp7 / adc121c021.diff
Last active April 1, 2016 16:33
Android has driver for the ADC in the SeeedStudio Grove ADC: android / kernel / bcm / drivers / power / adc121c021_driver.c
diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig
index 1ddd13c..b9d7919 100644
--- a/drivers/power/Kconfig
+++ b/drivers/power/Kconfig
@@ -495,6 +495,13 @@ config CHARGER_RT9455
help
Say Y to enable support for Richtek RT9455 battery charger.
+config MONITOR_ADC121C021_I2C
+ tristate "ADC121C021 Battery Monitor"
@pdp7
pdp7 / bbg-th02-sensor.md
Last active March 16, 2016 13:24
BeagleBone Green: TH02 sensor
root@beaglebone:~# echo si7005 0x40 > /sys/class/i2c-adapter/i2c-2/new_device 

root@beaglebone:~# dmesg |tail -1
[ 5496.770283] i2c i2c-2: new_device: Instantiated device si7005 at 0x40

root@beaglebone:~# find /sys/ -type f |grep iio |grep -v /power/ | xargs more
::::::::::::::
/sys/bus/iio/drivers_autoprobe
::::::::::::::
@pdp7
pdp7 / BBG-ADXL345.md
Last active September 8, 2019 06:16
BeagleBone Green: ADXL345 Grove Acceleromter sensor
@jadonk
jadonk / BB-SPIDEV1B-00A0.dts
Created March 17, 2016 20:57
BrainPad FBTFT display
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green";