Hello,
I am building an application based on the SimpleBLEPeripheral project for CC2540 keyfob with extended simpleGATTProfile and want to send data received over in simpleProfile_WriteAttrCB on Characteristic 1 over UART (nothing with HCI, just the plain data), with HW flow control disabled. I implemented Hal_UART_FlowControlSet() which looks like this:
void Hal_UART_FlowControlSet(uint8 port, bool status)
{
if(status){
UxUCR = UCR_FLOW;
PxSEL |= HAL_UART_Px_RTS | HAL_UART_Px_CTS;
} else{
UxUCR = 0;
}
}
I tried to disable flow control using this function after HAL initialization as well as directly before writing to UART, but apparently did not get any output on TX, also tested with the Oscilloscope. Using the debugger, I ensured that the write statement is actually reached, I also tried (re-)opening UART after HAL initialization by myself, but without success. Do you know if this function is doing what it should or does someone actually have a working solution for sending UART data out of the simpleBLEPeripheral project?