diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-05-05 09:55:06 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-05-05 09:55:06 +0000 |
commit | 77d21c1121e15ee1f841b6faa9670a1ad4db27b5 (patch) | |
tree | 4d9850aac43a948536da10655442d1371809c6b5 /os | |
parent | e7e7435ed86aa2dbd86817c9441d6f9101a0a71b (diff) | |
download | ChibiOS-77d21c1121e15ee1f841b6faa9670a1ad4db27b5.tar.gz ChibiOS-77d21c1121e15ee1f841b6faa9670a1ad4db27b5.tar.bz2 ChibiOS-77d21c1121e15ee1f841b6faa9670a1ad4db27b5.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9421 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/lib/peripherals/flash/hal_flash.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/os/hal/lib/peripherals/flash/hal_flash.h b/os/hal/lib/peripherals/flash/hal_flash.h index ceddbc00a..f1d75f1bd 100644 --- a/os/hal/lib/peripherals/flash/hal_flash.h +++ b/os/hal/lib/peripherals/flash/hal_flash.h @@ -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;
/*===========================================================================*/
|