AT45dbx DataFlash Component Example.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "compiler.h"
#include "preprocessor.h"
#include "board.h"
#include "gpio.h"
#include "sysclk.h"
#include "at45dbx.h"
#include "conf_data_flash_example.h"
Macros | |
#define | TARGET_SECTOR 0x00002 |
Functions | |
int | main (void) |
Main function. More... | |
void | test_ko (void) |
Variables | |
uint8_t | ram_buf [AT45DBX_SECTOR_SIZE] |
#define TARGET_SECTOR 0x00002 |
Referenced by main().
int main | ( | void | ) |
Main function.
References at45dbx_init(), at45dbx_mem_check(), at45dbx_read_close(), at45dbx_read_sector_open(), at45dbx_read_sector_to_ram(), AT45DBX_SECTOR_SIZE, at45dbx_write_close(), at45dbx_write_sector_from_ram(), at45dbx_write_sector_open(), board_init(), gpio_set_pin_low, ram_buf, sysclk_init(), TARGET_SECTOR, and test_ko().
void test_ko | ( | void | ) |
References gpio_set_pin_high.
Referenced by main().
uint8_t ram_buf[AT45DBX_SECTOR_SIZE] |
Referenced by main().