swieeprom  2.0.0.7
Macros | Functions
main.c File Reference

SWI EEPROM Click Example. More...

#include "stdint.h"
#include "log.h"
#include "swieeprom.h"

Macros

#define WRITE_DATA_STRING   "MikroE"
 
#define START_MEMORY_ADDRESS   0x10
 

Functions

void application_init (void)
 
void main (void)
 

Detailed Description

SWI EEPROM Click Example.

Description

This application shows capability of SWI EEPROM Click board. It checks if device is present, initializes it and show it's functionality to read from memory and write to memory.

The demo application is composed of two sections :

Application Init

Initialization of log and communication pin. Checks if device is present and then it's slave address, and checks communication with checking devices ID.

Application Task

Sends WRITE_DATA_STRING to the device, starting from START_MEMORY_ADDRESS. Then reads that written data and checks if it matches with written data. After that clears that same data and then reads it again to check if data is cleared.

note: This application is written for Legacy profiles for ARM{STM32F407ZG}, PIC{PIC18F97J94}, PIC32{PIC32MX975F512L} and specifically for MIKROBUS 1.

Author
Luka Filipovic

Macro Definition Documentation

◆ START_MEMORY_ADDRESS

#define START_MEMORY_ADDRESS   0x10

◆ WRITE_DATA_STRING

#define WRITE_DATA_STRING   "MikroE"

Function Documentation

◆ application_init()

void application_init ( void  )

◆ main()

void main ( void  )