GithubHelp home page GithubHelp logo

nik9993 / bsc-slave Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hendric-git/bsc-slave

0.0 1.0 0.0 19 KB

the place to find the kernel modul for the BSC Slave of the raspberry pi

Makefile 0.85% C 99.15%

bsc-slave's Introduction

bsc-slave

Here you can find the source code of the BSC-SLAVE kernel module for the BCM2835 ARM soc used for the raspberry pi. I have tested it for the rasperry pi 2 but it should work for the model B+ too.

There is a precompiled version of the module available (bsc-slave.ko) wich you can simply insert with

#> insmod bsc-slave.ko

It is compiled for the kernel version 4.1.13+

If you d'ont have this kernel version (verify with: uname -r)you need to compile the module yourself. This is what the Makefile is for.

There are many possibilities. I chose installing rpi-update. You can find instructions on: https://github.com/Hexxeh/rpi-update

Than you need to install the kernel sources. Instructions you can find on: https://github.com/notro/rpi-source/wiki

The file: i2ccat.c is just an exemple of how to talk to the i2c controller of the pi. You give yourself a slave address and than read the FIFOs by means of the read and write system call.

This is my first kernel module and I am not a professional programmer so I would be glad if someone more experienced makes this module better. At the moment only one process can access the bus.

The controller also supports SPI Slave mode. I had no chance to make that running. If you do I would be very happy if you could complete the module.

SDA is on GPIO18 (PIN HEADER 12) while SCL is on GPIO19 (PIN HEADER 35)

bsc-slave's People

Contributors

hendric-git avatar nik9993 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.