TCP/IP based digital io controller for operating DigitalsOuts and reading DigitalIns.
Dependencies: EthernetInterface NetworkAPI mbed-rtos mbed
Fork of NetRelais by
io.hpp
- Committer:
- NegativeBlack
- Date:
- 2012-07-19
- Revision:
- 10:22d49341340c
File content as of revision 10:22d49341340c:
#ifndef _IO_HPP_ #define _IO_HPP_ #include "mbed.h" namespace io { static DigitalOut led[4] = { DigitalOut(LED1), DigitalOut(LED2), DigitalOut(LED3), DigitalOut(LED4) }; static DigitalOut ethernet[2] = { DigitalOut(p30), DigitalOut(p29) }; static DigitalOut output[5] = { DigitalOut(p9), DigitalOut(p8), DigitalOut(p7), DigitalOut(p6), DigitalOut(p5) }; static DigitalIn input[4] = { DigitalIn(p20), DigitalIn(p19), DigitalIn(p18), DigitalIn(p17) }; } #endif // _IO_HPP_