Contiki-NG
|
Header file for the cc2538 devices definitions. More...
Go to the source code of this file.
Macros | |
Bit-fields for the CC2538 devices features | |
#define | CC2538_DEV_ID_M 0x0000000F |
ID mask. | |
#define | CC2538_DEV_ID_S 0 |
ID shift. | |
#define | CC2538_DEV_FLASH_SIZE_KB_M 0x0000FFF0 |
kiB flash size mask | |
#define | CC2538_DEV_FLASH_SIZE_KB_S 4 |
kiB flash size shift | |
#define | CC2538_DEV_SRAM_SIZE_KB_M 0x00FF0000 |
kiB SRAM size mask | |
#define | CC2538_DEV_SRAM_SIZE_KB_S 16 |
kiB SRAM size shift | |
#define | CC2538_DEV_AES_SHA_M 0x01000000 |
Security HW AES/SHA. | |
#define | CC2538_DEV_ECC_RSA_M 0x02000000 |
Security HW ECC/RSA. | |
Macro defining a CC2538 device from its features | |
#define | CC2538_DEV_DEF(id, flash_size_kb, sram_size_kb, aes_sha, ecc_rsa) |
Available CC2538 devices | |
#define | CC2538_DEV_CC2538SF53 CC2538_DEV_DEF(0, 512, 32, 1, 1) |
#define | CC2538_DEV_CC2538SF23 CC2538_DEV_DEF(1, 256, 32, 1, 1) |
#define | CC2538_DEV_CC2538NF53 CC2538_DEV_DEF(2, 512, 32, 1, 0) |
#define | CC2538_DEV_CC2538NF23 CC2538_DEV_DEF(3, 256, 32, 1, 0) |
#define | CC2538_DEV_CC2538NF11 CC2538_DEV_DEF(4, 128, 16, 1, 0) |
CC2538 device used by Contiki | |
#define | CC2538_DEV CC2538_DEV_CC2538SF53 |
Features of the CC2538 device used by Contiki | |
#define | CC2538_DEV_FLASH_ADDR 0x00200000 |
Flash address. | |
#define | CC2538_DEV_FLASH_SIZE |
Flash size in bytes. | |
#define | CC2538_DEV_SRAM_ADDR |
SRAM (non-retention + low-leakage) address. | |
#define | CC2538_DEV_SRAM_SIZE |
SRAM (non-retention + low-leakage) size in bytes. | |
#define | CC2538_DEV_RLSRAM_ADDR 0x20000000 |
Regular-leakage SRAM address. | |
#define | CC2538_DEV_RLSRAM_SIZE (CC2538_DEV_SRAM_SIZE - CC2538_DEV_LLSRAM_SIZE) |
Regular-leakage SRAM size in bytes. | |
#define | CC2538_DEV_LLSRAM_ADDR 0x20004000 |
Low-leakage SRAM address. | |
#define | CC2538_DEV_LLSRAM_SIZE MIN(CC2538_DEV_SRAM_SIZE, 16384) |
Low-leakage SRAM size in bytes. | |
#define | CC2538_DEV_AES_SHA (!!(CC2538_DEV & CC2538_DEV_AES_SHA_M)) |
Security HW AES/SHA. | |
#define | CC2538_DEV_ECC_RSA (!!(CC2538_DEV & CC2538_DEV_ECC_RSA_M)) |
Security HW ECC/RSA. | |
Header file for the cc2538 devices definitions.
Definition in file cc2538-dev.h.