Contiki-NG
|
Files | |
file | soc.c |
Implementation of the cc2538 SoC driver. | |
file | soc.h |
Header file with macro and function declarations for the cc2538 SoC. | |
SoC functions | |
uint8_t | soc_get_rev (void) |
Gets the SoC revision. | |
uint32_t | soc_get_sram_size (void) |
Gets the SRAM size of the SoC. | |
uint32_t | soc_get_features (void) |
Gets the hardware features of the SoC that are enabled. | |
void | soc_print_info (void) |
Prints SoC information. | |
void | soc_init (void) |
Common initialisation routine for all CC2538-based platforms. | |
SoC features | |
#define | SOC_FEATURE_AES_SHA 0x00000002 |
Security HW AES/SHA. | |
#define | SOC_FEATURE_ECC_RSA 0x00000001 |
Security HW ECC/RSA. | |
Driver for the cc2538 SoC
uint32_t soc_get_features | ( | void | ) |
Gets the hardware features of the SoC that are enabled.
SOC_FEATURE_x
values Definition at line 92 of file soc.c.
Referenced by soc_print_info().
uint8_t soc_get_rev | ( | void | ) |
Gets the SoC revision.
Definition at line 72 of file soc.c.
Referenced by soc_print_info().
uint32_t soc_get_sram_size | ( | void | ) |
Gets the SRAM size of the SoC.
Definition at line 83 of file soc.c.
Referenced by soc_print_info().
void soc_print_info | ( | void | ) |
Prints SoC information.
< Security HW AES/SHA
< Security HW ECC/RSA
Definition at line 98 of file soc.c.
References SOC_FEATURE_AES_SHA, SOC_FEATURE_ECC_RSA, soc_get_features(), soc_get_rev(), soc_get_sram_size(), sys_ctrl_get_io_clock(), sys_ctrl_get_reset_cause_str(), and sys_ctrl_get_sys_clock().
Referenced by platform_init_stage_three().