Aliester,
"...\PLM\Source\UART\Uart.c" Contains the actual low level code for the UART interface.
To use those functions in your application layer, a good example to look at would be the "Wireless UART" example in BeeKit.
Declare a constant string in FLASH:
static uint8_t const DATA_HDR[] = "Hello my name is WARE, how are you? \r\n";
During initialization you would start UART interface:
Uart_ModuleInit(); // initialize the UART
UartX_SetRxCallBack(UartRxCallBack);
In a function somehwhere you would start the UART transmit:
while(!UartX_Transmit(DATA_HDR,sizeof(DATA_HDR),UartTxCallBack));
Put callbacks in your app layer:
/* The UART has finished transmitting a buffer out through the serial port. */
static void UartTxCallBack(unsigned char const *pBuf) {
(void) pBuf;
return;
} /* UartTxCallBack() */
/* The UART has Rcvd data. */
static void UartRxCallBack(void) {
TS_SendEvent(gAppTaskID, eventRxFromUart_c);
return;
} /* UartRxCallBack() */
Regards,
- Ware