git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9421 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2016-05-05 09:55:06 +00:00
parent e7e7435ed8
commit 77d21c1121
1 changed files with 9 additions and 9 deletions

View File

@ -113,11 +113,11 @@ typedef struct {
/**
* @brief Sector address.
*/
uint8_t *address;
uint8_t *address;
/**
* @brief Secotr size.
* @brief Sector size.
*/
size_t size;
size_t size;
} flash_sector_t;
/**
@ -127,32 +127,32 @@ typedef struct {
/**
* @brief Device_attributes.
*/
uint32_t attributes;
uint32_t attributes;
/**
* @brief Size of write page.
*/
size_t page_size;
size_t page_size;
/**
* @brief Number of sectors in the device.
*/
unsigned sectors_count;
unsigned sectors_count;
/**
* @brief List of flash sectors for devices with non-uniform sector sizes.
* @note If @p NULL then the device has uniform sectors size equal
* to @p sector_size.
*/
flash_sector_t *sectors;
const flash_sector_t *sectors;
/**
* @brief Size of flash sectors for devices with uniform sector size.
* @note If zero then the device has non uniform sectos described by
* the @p sectors array.
*/
size_t sectors_size;
size_t sectors_size;
/**
* @brief Flash address if memory mapped or zero.
* @note Conventionally, non memory mapped devices have address zero.
*/
uint8_t *address;
uint8_t *address;
} flash_descriptor_t;
/*===========================================================================*/