BLE_API
v2.1.3
|
Macros | |
#define | UART_BAURRATE 115200 |
#define | UART_POLL_CYCLE ((uint32_t)(10*1e6/(UART_BAURRATE)/2)) |
Functions | |
void | setDTM_timerInt_enable (void) |
void | setDTM_timer_init (void) |
BLE DTM porting.
#define UART_BAURRATE 115200 |
DTM UART Baud Rate definition.
#define UART_POLL_CYCLE ((uint32_t)(10*1e6/(UART_BAURRATE)/2)) |
The UART poll cycle in micro seconds.
A baud rate of e.g. 19200 bits / second, and 8 data bits, 1 start/stop bit, no flow control,
give the time to transmit a byte: 10 bits * 1/19200 = approx: 520 us.
To ensure no loss of bytes, the UART should be polled every 260 us.
void setDTM_timer_init | ( | void | ) |
DTM Timer Initialization Function.
void setDTM_timerInt_enable | ( | void | ) |
DTM Timer Interrupt Enable Function.