Roy van Dam / Mbed 2 deprecated NetRelais

Dependencies:   EthernetInterface NetworkAPI mbed-rtos mbed

Fork of NetRelais by Roy van Dam

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers io.hpp Source File

io.hpp

00001 #ifndef _IO_HPP_
00002 #define _IO_HPP_
00003 
00004 #include "mbed.h"
00005 
00006 namespace io
00007 {
00008     static DigitalOut led[4] = {
00009         DigitalOut(LED1),
00010         DigitalOut(LED2),
00011         DigitalOut(LED3),
00012         DigitalOut(LED4)
00013     };
00014     
00015     static DigitalOut ethernet[2] = {
00016         DigitalOut(p30),
00017         DigitalOut(p29)
00018     };
00019     
00020     static DigitalOut output[5] = {
00021         DigitalOut(p9),
00022         DigitalOut(p8),
00023         DigitalOut(p7),
00024         DigitalOut(p6),
00025         DigitalOut(p5)
00026     };
00027     
00028     static DigitalIn input[4] = {
00029         DigitalIn(p20),
00030         DigitalIn(p19),
00031         DigitalIn(p18),
00032         DigitalIn(p17)
00033     };
00034 }
00035 
00036 #endif // _IO_HPP_