flash 2.0.0.0
main.c File Reference

Flash Click example. More...

#include <string.h>
#include "board.h"
#include "log.h"
#include "flash.h"

Functions

void enter_data (unsigned char *buffer)
 
void process_wait (void)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Flash Click example.

Description

This example demonstrates the use (control) of the FLASH memory.

The demo application is composed of two sections :

Application Init

Initializes all necessary peripherals and pins used by Flash click and also initializes uart logger to show results.

Application Task

Executes memory data writing, reading from the memory to verify data writing operation and sector erasing to clear memory.

Additional Functions

  • Enter Data / Allows user to enter a desired data.
  • Process Wait / Makes a delay to wait while some process be done.
Author
Nemanja Medakovic

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 )

◆ enter_data()

void enter_data ( unsigned char * buffer)

◆ main()

int main ( void )

◆ process_wait()

void process_wait ( void )