Test program using serial in RTOS
Dependencies: EthernetInterface mbed-rtos mbed
Diff: main.h
- Revision:
- 0:30562abde493
diff -r 000000000000 -r 30562abde493 main.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.h Thu Sep 24 22:24:28 2015 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" +#include "TCPSocketServer.h" +#include "TCPSocketConnection.h" +#include "EthernetInterface.h" +#include "Serial.h" +#include "RtosTimer.h" + +#define SP_RX PTC17 +#define SP_TX PTC16 +#define SP_BAUD 9600 +#define SP_UART UART3 +#define SP_TIMER_PERIOD 10 +#define SP_TIMEOUT 10 + +#define BUF_LEN 1023 +#define SERV_PORT 1234 + +int main ( void ); +void timerTask ( void ); +void rxInt ( void ); +void sendBuffer (char *buffer, int len); +void clearBuffer ( char *buffer, int len ); +void resetRX ( void ); +void resetTX ( void );