uarti2cspi 2.0.0.0
|
UARTI2CSPI Click example. More...
Macros | |
#define | DEMO_APP_RECEIVER |
#define | TEXT_TO_SEND "MikroE - UART I2C/SPI click\r\n" |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
UARTI2CSPI Click example.
This example showcases how to initialize, configure and use the UART I2C/SPI click module. The click is a I2C/SPI to UART bridge interface. It requires a RS232/485 cable in order to be connected to other click module or an adapter.
The demo application is composed of two sections :
Initializes the driver, configures UART, and enables UART interrupts.
Depending on the selected mode, it reads all the received data or sends the desired message every 2 seconds.
#define DEMO_APP_RECEIVER |
#define TEXT_TO_SEND "MikroE - UART I2C/SPI click\r\n" |
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |