git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9421 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
e7e7435ed8
commit
77d21c1121
|
@ -113,11 +113,11 @@ typedef struct {
|
||||||
/**
|
/**
|
||||||
* @brief Sector address.
|
* @brief Sector address.
|
||||||
*/
|
*/
|
||||||
uint8_t *address;
|
uint8_t *address;
|
||||||
/**
|
/**
|
||||||
* @brief Secotr size.
|
* @brief Sector size.
|
||||||
*/
|
*/
|
||||||
size_t size;
|
size_t size;
|
||||||
} flash_sector_t;
|
} flash_sector_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -127,32 +127,32 @@ typedef struct {
|
||||||
/**
|
/**
|
||||||
* @brief Device_attributes.
|
* @brief Device_attributes.
|
||||||
*/
|
*/
|
||||||
uint32_t attributes;
|
uint32_t attributes;
|
||||||
/**
|
/**
|
||||||
* @brief Size of write page.
|
* @brief Size of write page.
|
||||||
*/
|
*/
|
||||||
size_t page_size;
|
size_t page_size;
|
||||||
/**
|
/**
|
||||||
* @brief Number of sectors in the device.
|
* @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.
|
* @brief List of flash sectors for devices with non-uniform sector sizes.
|
||||||
* @note If @p NULL then the device has uniform sectors size equal
|
* @note If @p NULL then the device has uniform sectors size equal
|
||||||
* to @p sector_size.
|
* to @p sector_size.
|
||||||
*/
|
*/
|
||||||
flash_sector_t *sectors;
|
const flash_sector_t *sectors;
|
||||||
/**
|
/**
|
||||||
* @brief Size of flash sectors for devices with uniform sector size.
|
* @brief Size of flash sectors for devices with uniform sector size.
|
||||||
* @note If zero then the device has non uniform sectos described by
|
* @note If zero then the device has non uniform sectos described by
|
||||||
* the @p sectors array.
|
* the @p sectors array.
|
||||||
*/
|
*/
|
||||||
size_t sectors_size;
|
size_t sectors_size;
|
||||||
/**
|
/**
|
||||||
* @brief Flash address if memory mapped or zero.
|
* @brief Flash address if memory mapped or zero.
|
||||||
* @note Conventionally, non memory mapped devices have address zero.
|
* @note Conventionally, non memory mapped devices have address zero.
|
||||||
*/
|
*/
|
||||||
uint8_t *address;
|
uint8_t *address;
|
||||||
} flash_descriptor_t;
|
} flash_descriptor_t;
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
Loading…
Reference in New Issue