Code Monkey home page Code Monkey logo

exynos4_led's Introduction

임베디드(태블릿) 프로그래밍

M2모듈을 이용한 LED on/off

동작사진

m2_led 모듈을 push하고 insmod로 모듈을 등록하면, load되자마자 module_init()를 호출한다. 이때 사용자가 정의한 함수를 넣어주면 된다. On-Off의 반복패턴으로 드라이버가 로딩될 떄 LED가 ON되도록 하였다.

이렇게 적재된 모듈을 test코드에서 int dev = open("/dev/m2_led", O_WRONLY);로 담고, 실행인자에 맞게 분기처리해주면서 실행해주면 된다.

test실행파일은 동영상이라 첨부를 못했다

개발환경

  • 타깃 환경: 삼성전자 엑시노스(HBE-SM7-S4412 Enterprise)
  • IDE: AndroX Studio (GCC 크로스 툴체인)

exynos4_led's People

Contributors

sjh836 avatar

Watchers

James Cloos 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.