eeprom11 2.1.0.0
main.c File Reference

EEPROM 11 Click example. More...

#include "board.h"
#include "log.h"
#include "eeprom11.h"

Macros

#define TX_DATA   "EEPROM 11 Click"
 
#define MEMORY_ADDRESS   0x00
 

Functions

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

Detailed Description

EEPROM 11 Click example.

Description

This is an example that demonstrates the use of the EEPROM 11 Click board.

The demo application is composed of two sections :

Application Init

Initializes the driver and USB UART logging, disables write protection.

Application Task

Writes a desired number of data bytes to the EEPROM 11 memory into a specified address, and verifies that it is written correctly by reading from the same memory location.

Author
Stefan Ilic

Macro Definition Documentation

◆ MEMORY_ADDRESS

#define MEMORY_ADDRESS   0x00

◆ TX_DATA

#define TX_DATA   "EEPROM 11 Click"

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 )