bm78 2.1.0.0
Macros | Functions
main.c File Reference

BM78 Click Example. More...

#include "board.h"
#include "log.h"
#include "bm78.h"

Macros

#define APP_BUFFER_SIZE   500
 
#define PROCESS_BUFFER_SIZE   200
 
#define WANTED_ANSWER   "YES"
 

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

BM78 Click Example.

Description

This example demonstrates the use of BM78 click board by processing the incoming data and displaying them on the USB UART.

The demo application is composed of two sections :

Application Init

Initializes the driver and performs the click default configuration by writing it into the EEPROM.

Application Task

Reads and processes all incoming data from the Serial Bluetooth Terminal smartphone application and displays them on the USB UART.

Additional Function

Note
We have used the Serial Bluetooth Terminal smartphone application for the test. A smartphone and the click board must be paired in order to exchange messages with each other.
Author
Stefan Ilic

Macro Definition Documentation

◆ APP_BUFFER_SIZE

#define APP_BUFFER_SIZE   500

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   200

◆ WANTED_ANSWER

#define WANTED_ANSWER   "YES"

Function Documentation

◆ application_init()

void application_init ( void  )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void  )

◆ main()

int main ( void  )