flash2 2.0.0.0
main.c File Reference

Flash2 Click example. More...

#include "board.h"
#include "log.h"
#include "flash2.h"

Functions

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

Variables

char wr_data [10] = { 'M', 'i', 'k', 'r', 'o', 'E', 13, 10 , 0 }
 
char rd_data [10]
 

Detailed Description

Flash2 Click example.

Description

This application demonstrates the process of writing and reading data from Flash 2 click memory.

The demo application is composed of two sections :

Application Init

Flash Driver Initialization, initialization of click by setting mikorBUS to approprieate logic levels, performing global block unlock and chip erase functions.

Application Task

Writing data to click memory and displaying the read data via UART.

Author
MikroE Team

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 )

Variable Documentation

◆ rd_data

char rd_data[10]

◆ wr_data

char wr_data[10] = { 'M', 'i', 'k', 'r', 'o', 'E', 13, 10 , 0 }