Skip to content

Instantly share code, notes, and snippets.

View jbreams's full-sized avatar

Jonathan Reams jbreams

View GitHub Profile
@itrobotics
itrobotics / chr_led.c
Created May 13, 2015 08:22
a simple linux driver example code which is a char dev to control GPIO-LED on Raspberry Pi
// Simple Character Device Driver Module for Raspberry Pi.
/*
* DESCRIPTION:
* a simple example of char device
* this char device can control the GPIO by file operation : write
* to write specific message as command
* */
#include <linux/module.h>
#include <linux/string.h>