sram 2.0.0.0
main.c File Reference

Sram Click example. More...

#include "board.h"
#include "log.h"
#include "sram.h"

Functions

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

Variables

char send_buffer [17] = { 'm', 'i', 'k', 'r', 'o', 'E', 'l', 'e', 'k', 't', 'r', 'o', 'n', 'i', 'k', 'a', ' ' }
 
char mem_data [17]
 
uint8_t n_cnt
 

Detailed Description

Sram Click example.

Description

SRAM Click presents additional 1Mbit SRAM memory that can be added to device.

The demo application is composed of two sections :

Application Init

Application Init performs Logger and Click initialization.

Application Task

SRAM Click communicates with register via SPI protocol by write data to and read data from 23LC1024 Serial RAM device. Results are being sent to the UART where you can track their changes. All data logs on USB UART for aproximetly every 1 sec.

Author
Mihajlo Djordjevic

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

◆ mem_data

char mem_data[17]

◆ n_cnt

uint8_t n_cnt

◆ send_buffer

char send_buffer[17] = { 'm', 'i', 'k', 'r', 'o', 'E', 'l', 'e', 'k', 't', 'r', 'o', 'n', 'i', 'k', 'a', ' ' }