|
Contiki 3.x
|
Definitions for the cc2538 flash memory. More...
Files | |
| file | flash.h |
| Header file for the flash memory definitions. | |
Flash memory organization | |
| #define | FLASH_PAGE_SIZE 2048 |
| #define | FLASH_WORD_SIZE 4 |
Flash lock bit page and CCA location | |
| #define | FLASH_CCA_ADDR |
| Address. | |
| #define | FLASH_CCA_SIZE 0x0000002C |
| Size in bytes. | |
Bootloader backdoor configuration bit fields | |
| #define | FLASH_CCA_BOOTLDR_CFG_DISABLE 0xEFFFFFFF |
| Disable backdoor function. | |
| #define | FLASH_CCA_BOOTLDR_CFG_ENABLE 0xF0FFFFFF |
| Enable backdoor function. | |
| #define | FLASH_CCA_BOOTLDR_CFG_ACTIVE_HIGH 0x08000000 |
| Selected pin on pad A active high. | |
| #define | FLASH_CCA_BOOTLDR_CFG_PORT_A_PIN_M 0x07000000 |
| Selected pin on pad A mask. | |
| #define | FLASH_CCA_BOOTLDR_CFG_PORT_A_PIN_S 24 |
| Selected pin on pad A shift. | |
Image valid definitions | |
| #define | FLASH_CCA_IMAGE_VALID 0x00000000 |
| Indicates valid image in flash. | |
Lock page / debug definitions | |
| #define | FLASH_CCA_LOCKED 0 |
| Page or debug locked if bit == 0. | |
| #define | FLASH_CCA_LOCK_DEBUG_BYTE 31 |
| Lock byte containing the debug lock bit. | |
| #define | FLASH_CCA_LOCK_DEBUG_BIT 7 |
| Debug lock bit position in the corresponding lock byte. | |
Firmware location in flash memory | |
| #define | FLASH_FW_ADDR (COFFEE_START + COFFEE_SIZE) |
| #define | FLASH_FW_SIZE (FLASH_CCA_ADDR - FLASH_FW_ADDR) |
Definitions for the cc2538 flash memory.
1.8.6