libpruio  0.0
AM33xx-PRU driver for digital input / output and analog input
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sos.bas File Reference

Example: blink user LED 3. More...

#include "../pruio/pruio.bi"
Include dependency graph for sos.bas:

Go to the source code of this file.

Macros

#define PIN   /* 24 '' CPU ball # of user led 3 */
 include libpruio More...
 
#define OUT_K   /* .gpio_out(PIN, 1) : SLEEP 250 : .gpio_out(PIN, 0) : SLEEP 150 */
 
#define OUT_L   /* .gpio_out(PIN, 1) : SLEEP 750 : .gpio_out(PIN, 0) : SLEEP 150 */
 
#define OUT_S   /* OUT_K : OUT_K : OUT_K : SLEEP 250 */
 
#define OUT_O   /* OUT_L : OUT_L : OUT_L : SLEEP 250 */
 

Variables

VAR io = NEW PruIo
 create a PruIo structure, wakeup devices More...
 

Detailed Description

Example: blink user LED 3.

This file contains an example on how to use libpruio to control the user LED 3 (near ethernet connector) on the beaglebone board.

Licence: GPLv3

Copyright 2014 by Thomas{ dOt ]Freiherr[ At ]gmx[ DoT }net

Compile by:

fbc -w all sos.bas

Definition in file sos.bas.

Macro Definition Documentation

#define PIN   /* 24 '' CPU ball # of user led 3 */

include libpruio

Definition at line 21 of file sos.bas.

#define OUT_K   /* .gpio_out(PIN, 1) : SLEEP 250 : .gpio_out(PIN, 0) : SLEEP 150 */

Definition at line 22 of file sos.bas.

#define OUT_L   /* .gpio_out(PIN, 1) : SLEEP 750 : .gpio_out(PIN, 0) : SLEEP 150 */

Definition at line 23 of file sos.bas.

#define OUT_S   /* OUT_K : OUT_K : OUT_K : SLEEP 250 */

Definition at line 24 of file sos.bas.

#define OUT_O   /* OUT_L : OUT_L : OUT_L : SLEEP 250 */

Definition at line 25 of file sos.bas.

Variable Documentation

VAR io = NEW PruIo

create a PruIo structure, wakeup devices

Definition at line 29 of file sos.bas.