binhonova 2.1.0.0
main.c File Reference

Binho Nova Click Example. More...

#include "board.h"
#include "log.h"
#include "binhonova.h"

Macros

#define PROCESS_BUFFER_SIZE   200
 

Functions

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

Detailed Description

Binho Nova Click Example.

Description

This example demonstrates the use of Binho Nova 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 logger.

Application Task

All data received from the USB UART will be forwarded to mikroBUS UART, and vice versa.

Note
The example code is performed via UART communication and consists of a few simple steps:
  1. Place "Binho Nova Click" into the mikroBUS socket 1.
  2. Insert the "Binho USB Host Adapter" connector into the "Binho Nova Click" I2C/UART slot.
  3. Start the "Mission Control Software" application.
  4. Connect "Binho USB Host Adapter".
  5. Activate UART Bridge with a baud rate of 115200bps.
  6. All data sent via the "Mission Control Software" application will be displayed on the USB UART logger, and vice versa.
Author
Stefan Filipovic

Macro Definition Documentation

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   200

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 )