Using the printf() function on SPBTLE-1S

Discussion created by SProg on May 2, 2018
Latest reply on May 10, 2018 by SProg

Hello everyone,


I am using the SPBTLE-1S module and sending some packets using RS485. Based on the chat example, i am using the printf() function to send the bytes from UART-> RS485 IC -> RS485 bus.


Here's the problem: Before use the printf() function i set the DE/!RE to '1' and after transmit i must set them to '0'. I am using the Clock_Wait() but it's not safe/right.


I want an interrupt vector to inform me when a transmission is finished. Could anyone help ?