Skip to content

linux kernel module for controlling your LEDs over SPI on ARM SBCs

Notifications You must be signed in to change notification settings

barde/embeddedLamp

Repository files navigation

embeddedLamp

This is a project to show the interconnection of a piece of hardware and a Linux Kernel module. A userspace application is part of the project for demonstration.

Work is part of the module "Embedded Systems" for the Master's course held by Prof. Kissig, SS 2012.

Group members

  • Kamil Wozniak
  • Simon Wiesmann
  • Mathias Gölke
  • Bartholomäus Dedersen

Overview

General overview of project

Connection Hint for Working at Home

  1. Open a Console
  2. Connect either to rze-idefix1.rz.e-technik.fh-kiel.de per SSH or the VPN - Instruction
  3. Connect to 149.222.55.222 on port 7788 as user panda, i.e. ssh -p 7788 panda@149.222.55.222
  4. Password is known for users of the project(see eMails)
  5. You can now access the /sys/class/gpio files and try out using the LED as blinking debug port

Kernel sources and compiler are on the system.

Documentation Snippets

panda@panda:~/embeddedLamp/kernel-module$ zcat /proc/config.gz | grep CONFIG_SPI CONFIG_SPI=y

two differnt kind of modes for SPI: Controller drivers ... controllers may be built in to System-On-Chip processors, and often support both Master and Slave roles. These drivers touch hardware registers and may use DMA. Or they can be PIO bitbangers, needing just GPIO pins.

Protocol drivers ... these pass messages through the controller driver to communicate with a Slave or Master device on the other side of an SPI link. from: http://www.kernel.org/doc/Documentation/spi/spi-summary

We use a protocol driver

first success picture: D2=Data, D1=Chip Select, D0=Clock

Boring Legal Stuff

Copyright (c) 2012, FH Kiel Master Student group

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Special Thanks

SVTronics as friendly manufacturer of the Pandaboard

About

linux kernel module for controlling your LEDs over SPI on ARM SBCs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages