I am trying to add a simple Uart capability to the SimplePerfipheral and not having much luck
If I add these Uart commands the code compiles OK but the Debug will not run
I have looked a the wiki examples
If I comment out the Uart open the application runs
I am using the SmartRF06 board and the 5XD EM board
1. Do I need the Uart init API ??
2. In the Uart Open API do a put Board_UART or just an index of 0 ??
What am I missing from this simple example ??
Thanks Much
Brian Donlan
/* UART Board */ #define Board_UART_RX IOID_1 /* RF1.7 */ #define Board_UART_TX IOID_0 /* RF1.9 */ #define Board_UART_CTS PIN_UNASSIGNED #define Board_UART_RTS PIN_UNASSIGNED
UART_Handle handle;
UART_Params params;
uint8_t txBuf[]={"Hello_World"};
/*
* ======== main ========
*/
int main()
{
// initialize I/O pins
PIN_init(BoardGpioInitTable);
//UART_init() ;
UART_Params_init(¶ms); // To initialize UART drivers
params.baudRate=115200;
params.writeDataMode=UART_DATA_BINARY;
handle = UART_open(Board_UART,¶ms);