Contiki-NG
Loading...
Searching...
No Matches

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.
 

Detailed Description

Driver for the cc2538 SoC

Function Documentation

◆ soc_get_features()

uint32_t soc_get_features ( void )

Gets the hardware features of the SoC that are enabled.

Returns
The enabled hardware features as a bitmask of SOC_FEATURE_x values

Definition at line 92 of file soc.c.

Referenced by soc_print_info().

◆ soc_get_rev()

uint8_t soc_get_rev ( void )

Gets the SoC revision.

Returns
The SoC revision as a byte with nibbles representing the major and minor revisions

Definition at line 72 of file soc.c.

Referenced by soc_print_info().

◆ soc_get_sram_size()

uint32_t soc_get_sram_size ( void )

Gets the SRAM size of the SoC.

Returns
The SRAM size in bytes

Definition at line 83 of file soc.c.

Referenced by soc_print_info().

◆ 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().