flash10 2.1.0.0
|
Flash 10 Click example. More...
Macros | |
#define | DEMO_TEXT_MESSAGE_1 "MIKROE" |
#define | DEMO_TEXT_MESSAGE_2 "Flash 10 click" |
#define | STARTING_ADDRESS 0x012345 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Flash 10 Click example.
This example demonstrates the use of Flash 10 click board by writing specified data to the memory and reading it back.
The demo application is composed of two sections :
Initializes the driver and checks the communication by reading and verifying the device ID.
Writes a desired number of bytes to the memory and then verifies if it is written correctly by reading from the same memory location and displaying the memory content on the USB UART. The whole 4KB block of memory that contains the STARTING_ADDRESS will be erased before writing data.
#define DEMO_TEXT_MESSAGE_1 "MIKROE" |
#define DEMO_TEXT_MESSAGE_2 "Flash 10 click" |
#define STARTING_ADDRESS 0x012345 |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |