2011-01-24 08:52:14 +01:00
|
|
|
/*
|
|
|
|
* pios_flash_w25x.h
|
|
|
|
* OpenPilotOSX
|
|
|
|
*
|
|
|
|
* Created by James Cotton on 1/23/11.
|
|
|
|
* Copyright 2011 OpenPilot. All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2011-02-01 03:18:04 +01:00
|
|
|
int8_t PIOS_Flash_W25X_Init();
|
|
|
|
uint8_t PIOS_Flash_W25X_ReadStatus();
|
|
|
|
uint8_t PIOS_Flash_W25X_ReadID();
|
2011-02-01 03:18:12 +01:00
|
|
|
int8_t PIOS_Flash_W25X_EraseChip();
|
2011-02-01 03:18:04 +01:00
|
|
|
int8_t PIOS_Flash_W25X_EraseSector(uint32_t add);
|
|
|
|
int8_t PIOS_Flash_W25X_WriteData(uint32_t addr, uint8_t * data, uint16_t len);
|
|
|
|
int8_t PIOS_Flash_W25X_ReadData(uint32_t addr, uint8_t * data, uint16_t len);
|