ata663254
2.0.0.0
|
Ata663254 Click example. More...
Functions | |
LOG_MAP_USB_UART (log_cfg) | |
ATA663254_MAP_MIKROBUS (cfg, MIKROBUS_1) | |
Delay_ms (1000) | |
void | application_task (void) |
void | main (void) |
Variables | |
log_init & | logger |
ata663254_cfg_setup & | cfg |
ata663254_init & | ata663254 |
Ata663254 Click example.
This application demonstates the use of ATA663254 Click board.
The demo application is composed of two sections :
Initializes the click driver and enables the click board.
Depending on the selected mode, it reads all the received data or sends the desired message each 2 seconds.
----------------------------------------------------------------— INCLUDES
#include "board.h" #include "log.h" #include "ata663254.h"
---------------------------------------------------------------— VARIABLES
#define DEMO_APP_RECEIVER #define DEMO_APP_TRANSMITTER
static ata663254_t ata663254; static log_t logger;
static char demo_message[ 9 ] = { 'M', 'i', 'k', 'r', 'o', 'E', 13, 10, 0 }; static char rec_buf[ 50 ] = { 0 };
---------------------------------------------------— APPLICATION FUNCTIONS
void application_init ( void ) { log_cfg_t log_cfg; ata663254_cfg_t cfg;
/** Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
ATA663254_MAP_MIKROBUS | ( | cfg | , |
MIKROBUS_1 | |||
) |
Delay_ms | ( | 1000 | ) |
LOG_MAP_USB_UART | ( | log_cfg | ) |
void main | ( | void | ) |
ata663254_enable & ata663254 |
ata663254_cfg_setup & cfg |
log_info & logger |