canisolator 2.0.0.0
main.c File Reference

CanIsolator Click example. More...

#include "board.h"
#include "log.h"
#include "canisolator.h"

Macros

#define DEMO_APP_TRANSMITER
 

Functions

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

Detailed Description

CanIsolator Click example.

Description

This is a example which demonstrates the use of Can Isolator Click board.

The demo application is composed of two sections :

Application Init

Configuring clicks and log objects.

Application Task

Checks if new data byte has received in RX buffer ( ready for reading ) and if ready than reads one byte from RX buffer. In the second case, the application task writes message data via UART. Results are being sent to the Usart Terminal where you can track their changes.

Author
MikroE Team

Macro Definition Documentation

◆ DEMO_APP_TRANSMITER

#define DEMO_APP_TRANSMITER

Function Documentation

◆ application_init()

void application_init ( void )

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 )