Coder Social home page Coder Social logo

gpio-sqwave's Introduction

gpio-sqwave

Square wave generator using AR9331 hardware timer.

gpio-sqwave is an OpenWRT kernel module which provides square wave output on any AR9331 SoC GPIO pin with up to 125 kHz frequency.

##Installation

insmod gpio-sqwave [timer=0|1|2|3]
Default is timer 3

##Usage

Start: echo "<GPIO> <freq>" > /sys/kernel/debug/sqwave
"GPIO" is GPIO number, "freq" is square wave frequency in Hz. Maximum frequency with 200 MHz system bus (default clock) is 125 kHz; high settings may result in performance penalty or watchdog reset.

Example: to blink Black Swift's system LED with 1 Hz frequency: echo "27 1" > /sys/kernel/debug/sqwave

Stop: echo - > /sys/kernel/debug/sqwave

Status: echo ? > /sys/kernel/debug/sqwave

Check http://www.black-swift.com/wiki for more information.

gpio-sqwave's People

Contributors

olegart avatar

Watchers

wyx avatar

Forkers

geekrouter

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.