#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdbool.h>
#include "pios_heap.h"
#include "pios_flash_posix_priv.h"
#include <pios_semaphore.h>
#include "pios_flash_priv.h"
Go to the source code of this file.
|
static struct flash_posix_dev * | PIOS_Flash_Posix_Alloc (void) |
|
static const char * | PIOS_Flash_Posix_GetFName () |
|
void | PIOS_Flash_Posix_SetFName (const char *name) |
|
int32_t | PIOS_Flash_Posix_Init (uintptr_t *chip_id, const struct pios_flash_posix_cfg *cfg, bool force_recreate) |
|
void | PIOS_Flash_Posix_Destroy (uintptr_t chip_id) |
|
static int32_t | PIOS_Flash_Posix_StartTransaction (uintptr_t chip_id) |
|
static int32_t | PIOS_Flash_Posix_EndTransaction (uintptr_t chip_id) |
|
static int32_t | PIOS_Flash_Posix_EraseSector (uintptr_t chip_id, uint32_t chip_sector, uint32_t chip_offset) |
|
static int32_t | PIOS_Flash_Posix_WriteData (uintptr_t chip_id, uint32_t chip_offset, const uint8_t *data, uint16_t len) |
|
static int32_t | PIOS_Flash_Posix_ReadData (uintptr_t chip_id, uint32_t chip_offset, uint8_t *data, uint16_t len) |
|
void PIOS_Flash_Posix_Destroy |
( |
uintptr_t |
chip_id | ) |
|
static int32_t PIOS_Flash_Posix_EndTransaction |
( |
uintptr_t |
chip_id | ) |
|
|
static |
static int32_t PIOS_Flash_Posix_EraseSector |
( |
uintptr_t |
chip_id, |
|
|
uint32_t |
chip_sector, |
|
|
uint32_t |
chip_offset |
|
) |
| |
|
static |
static const char* PIOS_Flash_Posix_GetFName |
( |
| ) |
|
|
static |
int32_t PIOS_Flash_Posix_Init |
( |
uintptr_t * |
chip_id, |
|
|
const struct pios_flash_posix_cfg * |
cfg, |
|
|
bool |
force_recreate |
|
) |
| |
static int32_t PIOS_Flash_Posix_ReadData |
( |
uintptr_t |
chip_id, |
|
|
uint32_t |
chip_offset, |
|
|
uint8_t * |
data, |
|
|
uint16_t |
len |
|
) |
| |
|
static |
void PIOS_Flash_Posix_SetFName |
( |
const char * |
name | ) |
|
static int32_t PIOS_Flash_Posix_StartTransaction |
( |
uintptr_t |
chip_id | ) |
|
|
static |
static int32_t PIOS_Flash_Posix_WriteData |
( |
uintptr_t |
chip_id, |
|
|
uint32_t |
chip_offset, |
|
|
const uint8_t * |
data, |
|
|
uint16_t |
len |
|
) |
| |
|
static |
const char* pios_flash_file_name = "theflash.bin" |
|
static |
Initial value:= {
}
static int32_t PIOS_Flash_Posix_EndTransaction(uintptr_t chip_id)
static int32_t PIOS_Flash_Posix_EraseSector(uintptr_t chip_id, uint32_t chip_sector, uint32_t chip_offset)
static int32_t PIOS_Flash_Posix_WriteData(uintptr_t chip_id, uint32_t chip_offset, const uint8_t *data, uint16_t len)
static int32_t PIOS_Flash_Posix_StartTransaction(uintptr_t chip_id)
static int32_t PIOS_Flash_Posix_ReadData(uintptr_t chip_id, uint32_t chip_offset, uint8_t *data, uint16_t len)
Definition at line 204 of file pios_flash_posix.c.