Small fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12327 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
f4778e9f54
commit
e835eccd04
|
@ -139,7 +139,6 @@
|
||||||
* @brief Number of dummy cycles for fast read (1..15).
|
* @brief Number of dummy cycles for fast read (1..15).
|
||||||
* @details This is the number of dummy cycles to be used for fast read
|
* @details This is the number of dummy cycles to be used for fast read
|
||||||
* operations.
|
* operations.
|
||||||
* TODO: Should be handled in LLD.
|
|
||||||
*/
|
*/
|
||||||
#if !defined(N25Q_READ_DUMMY_CYCLES) || defined(__DOXYGEN__)
|
#if !defined(N25Q_READ_DUMMY_CYCLES) || defined(__DOXYGEN__)
|
||||||
#define N25Q_READ_DUMMY_CYCLES 8
|
#define N25Q_READ_DUMMY_CYCLES 8
|
||||||
|
@ -173,24 +172,26 @@
|
||||||
extern flash_descriptor_t snor_descriptor;
|
extern flash_descriptor_t snor_descriptor;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (SNOR_BUS_MODE != SNOR_BUS_MODE_SPI) && (WSPI_SUPPORTS_MEMMAP == TRUE)
|
||||||
extern const wspi_command_t snor_memmap_read;
|
extern const wspi_command_t snor_memmap_read;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
void snor_device_init(SNORDriver *devp);
|
void snor_device_init(SNORDriver *devp);
|
||||||
const flash_descriptor_t *snor_get_descriptor(void *instance);
|
const flash_descriptor_t *snor_get_descriptor(void *instance);
|
||||||
flash_error_t snor_device_read(SNORDriver *devp, flash_offset_t offset,
|
flash_error_t snor_device_read(SNORDriver *devp, flash_offset_t offset,
|
||||||
size_t n, uint8_t *rp);
|
size_t n, uint8_t *rp);
|
||||||
flash_error_t snor_device_program(SNORDriver *devp, flash_offset_t offset,
|
flash_error_t snor_device_program(SNORDriver *devp, flash_offset_t offset,
|
||||||
size_t n, const uint8_t *pp);
|
size_t n, const uint8_t *pp);
|
||||||
flash_error_t snor_device_start_erase_all(SNORDriver *devp);
|
flash_error_t snor_device_start_erase_all(SNORDriver *devp);
|
||||||
flash_error_t snor_device_start_erase_sector(SNORDriver *devp,
|
flash_error_t snor_device_start_erase_sector(SNORDriver *devp,
|
||||||
flash_sector_t sector);
|
flash_sector_t sector);
|
||||||
flash_error_t snor_device_verify_erase(SNORDriver *devp,
|
flash_error_t snor_device_verify_erase(SNORDriver *devp,
|
||||||
flash_sector_t sector);
|
flash_sector_t sector);
|
||||||
flash_error_t snor_device_query_erase(SNORDriver *devp, uint32_t *msec);
|
flash_error_t snor_device_query_erase(SNORDriver *devp, uint32_t *msec);
|
||||||
flash_error_t snor_device_read_sfdp(SNORDriver *devp, flash_offset_t offset,
|
flash_error_t snor_device_read_sfdp(SNORDriver *devp, flash_offset_t offset,
|
||||||
size_t n, uint8_t *rp);
|
size_t n, uint8_t *rp);
|
||||||
#if SNOR_BUS_MODE != SNOR_BUS_MODE_SPI
|
#if SNOR_BUS_MODE != SNOR_BUS_MODE_SPI
|
||||||
void snor_activate_xip(SNORDriver *devp);
|
void snor_activate_xip(SNORDriver *devp);
|
||||||
|
|
Loading…
Reference in New Issue