sram3 2.0.0.0
main.c File Reference

SRAM3 Click example. More...

#include "board.h"
#include "log.h"
#include "sram3.h"

Functions

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

Variables

uint8_t buf [10] = { 'M','i','k','r','o','E', 0 }
 

Detailed Description

SRAM3 Click example.

Description

This is an example that shows the use of SRAM memory, using SRAM 3 click. SRAM 3 click is based on ANV32AA1W, and ANV32AA1W is a 1Mb serial SRAM with a non-volatile SONOS storage element included with each memory cell, organized as 128k words of 8 bits each. The devices are accessed by a high speed SPI-compatible bus. Specifically in this example, we used the high-speed SPI communication characteristics to write data to a specific registration address and read it.

The demo application is composed of two sections :

Application Init

Initialization SPI module, logger initalization and click initialization.

Application Task

First, we write the data to the registry address 0x00, and then we read the data from 0x00 address.

Author
Jelena Milosavljevic

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 )

Variable Documentation

◆ buf

uint8_t buf[10] = { 'M','i','k','r','o','E', 0 }