openMMC
Open Source Modular MMC for AMCs
|
#include "FreeRTOS.h"
#include "port.h"
#include "flash_spi.h"
#include "pin_mapping.h"
#include <string.h>
Functions | |
void | flash_write_enable (void) |
void | flash_write_disable (void) |
void | flash_read_id (uint8_t *id_buffer, uint8_t buff_size) |
uint8_t | flash_read_status_reg (void) |
void | flash_write_status_reg (uint8_t data) |
uint8_t | flash_read_lock_reg (uint32_t address) |
void | flash_write_lock_reg (uint32_t address, uint8_t data) |
uint8_t | flash_read_data (uint32_t address) |
void | flash_fast_read_data (uint32_t start_addr, uint8_t *dst, uint32_t size) |
void | flash_program_page (uint32_t address, uint8_t *data, uint16_t size) |
void | flash_sector_erase (uint32_t address) |
void | flash_bulk_erase (void) |
uint8_t | is_flash_busy (void) |
void flash_bulk_erase | ( | void | ) |
void flash_fast_read_data | ( | uint32_t | start_addr, |
uint8_t * | dst, | ||
uint32_t | size ) |
void flash_program_page | ( | uint32_t | address, |
uint8_t * | data, | ||
uint16_t | size ) |
uint8_t flash_read_data | ( | uint32_t | address | ) |
void flash_read_id | ( | uint8_t * | id_buffer, |
uint8_t | buff_size ) |
uint8_t flash_read_lock_reg | ( | uint32_t | address | ) |
uint8_t flash_read_status_reg | ( | void | ) |
void flash_sector_erase | ( | uint32_t | address | ) |
void flash_write_disable | ( | void | ) |
void flash_write_enable | ( | void | ) |
void flash_write_lock_reg | ( | uint32_t | address, |
uint8_t | data ) |
void flash_write_status_reg | ( | uint8_t | data | ) |
uint8_t is_flash_busy | ( | void | ) |