Skip to content

Instantly share code, notes, and snippets.

View bandwidthcrunch's full-sized avatar

Manav Gautama bandwidthcrunch

View GitHub Profile
@17twenty
17twenty / gist:2763814
Created May 21, 2012 18:34
Kernel Module to turn GPIO1_6 on and off
#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h> /* Needed for KERN_INFO */
#include <linux/init.h> /* Needed for the macros */
#include <plat/gpio.h>
#include <plat/am33xx.h>
#include <asm/io.h>
#define DEVICE_NAME "led_drv"
static __iomem unsigned char *gpio1_start;