![]() |
Morse Micro IoT SDK
2.11.2
|
Flash partition configuration structure.
This should be initialized using MMHAL_FLASH_PARTITION_CONFIG_DEFAULT. For example:
Definition at line 46 of file mmhal_flash.h.
#include <mmhal_flash.h>
Data Fields | |
| uint32_t | partition_start |
| The start address of the partition. More... | |
| uint32_t | partition_size |
| The size of the partition (in bytes). More... | |
| bool | not_memory_mapped |
If false, then the partition address range (partition_start to partition_start + partition_size) must be directly readable within the CPU's memory map. More... | |
| bool mmhal_flash_partition_config::not_memory_mapped |
If false, then the partition address range (partition_start to partition_start + partition_size) must be directly readable within the CPU's memory map.
If true, then the partition is not memory mapped and its contents can only be read using mmhal_flash_read().
Definition at line 68 of file mmhal_flash.h.
| uint32_t mmhal_flash_partition_config::partition_size |
The size of the partition (in bytes).
Definition at line 60 of file mmhal_flash.h.
| uint32_t mmhal_flash_partition_config::partition_start |
The start address of the partition.
If not_memory_mapped is false, then this must be a directly readable address within the CPU's memory map. If not_memory_mapped is true, then this address is implementation defined.
Regardless of the value not_memory_mapped, the partition address range defined by partition_start and partition_size must be understood by mmhal_flash_erase(), mmhal_flash_getblocksize(), mmhal_flash_read(), and mmhal_flash_write().
Definition at line 57 of file mmhal_flash.h.