Tool/software: TI-RTOS
Dear Experts,
I would like to switch PTM to application (simple central project) by flag.
I follow the guideline to implement UART and PTM on simple central project and also use a flag to disable simple central's Uart when PTM is enable.
UART :(software-dl.ti.com/.../_u_a_r_t_c_c26_x_x_8h.html)
I encounter a problem when I use the following snippets of code.
1.if the if statement is "if (ptmEnable)" and I set ptmEnable to 0, it can not switch to PTM's UART.
2.if the if statement is "if (0)", it can switch to PTM's UART and it can response HCI command correctly .
Could you please help me to check why PTM's UART can not when if statement is "if (ptmEnable)" ?
By the way, does simpleCentralUart_init function need to call UART_read ?
<simpleCentralUart_init function>