excelonultra 2.0.0.0
main.c File Reference

ExcelonUltra Click example. More...

#include "board.h"
#include "log.h"
#include "excelonultra.h"

Macros

#define MIKROE_DATA   "MikroE"
 
#define CLICK_DATA   "Excelon-Ultra Click"
 

Functions

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

Detailed Description

ExcelonUltra Click example.

Description

This example is showcase of device and it's library abillity. In this example is shown device ID, ability to manipulate with memory. After default configuration device IDs are logged. After that application Writes data to memory, reads data from memory, clears data from memory and checks if data is cleard by reading that same memory address.

The demo application is composed of two sections :

Application Init

Initializes MCU modules for communication used in this application (UART, SPI). Calls default configuration that resets device, reads IDs, and enables writing to memory and sets all RAM memory to be free for conrol.

Application Task

Write data to memory, read data from memory. After that clears that memory address, and checks if it's cleared by reading data. On every iteration of the fucntion writing data is changed between "MikroE" and "Excelon-Ultra Click"

Author
Luka Filipovic

Macro Definition Documentation

◆ CLICK_DATA

#define CLICK_DATA   "Excelon-Ultra Click"

◆ MIKROE_DATA

#define MIKROE_DATA   "MikroE"

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 )