TCP/IP based digital io controller for operating DigitalsOuts and reading DigitalIns.

Dependencies:   EthernetInterface NetworkAPI mbed-rtos mbed

Fork of NetRelais by Roy van Dam

io.hpp

Committer:
NegativeBlack
Date:
2012-09-27
Revision:
11:e5375ae5c8c3
Parent:
10:22d49341340c

File content as of revision 11:e5375ae5c8c3:

#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_