rs232spi 2.0.0.0
main.c File Reference

Rs232Spi Click example. More...

#include "board.h"
#include "log.h"
#include "rs232spi.h"

Functions

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

Detailed Description

Rs232Spi Click example.

Description

This example showcases how to initialize and use the RS232 SPI click. The click has a uni- versal asynchronous transceiver which uses a SPI serial interface to communicate with the MCU. In order for this example to work, 2 clicks are needed - a receiver and a transmitter.

The demo application is composed of two sections :

Application Init

This function initializes and configures the logger and click modules. Additional configura- ting is done in the default_cfg(...) function.

Application Task

This function receives and displays UART data in the "read mode" and sends the predefined message in the "write mode".

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( )

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 ( )

◆ main()

int main ( void )