Contiki-NG

Driver for the cc2538 SoC. More...

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. More...
 
uint32_t soc_get_sram_size (void)
 Gets the SRAM size of the SoC. More...
 
uint32_t soc_get_features (void)
 Gets the hardware features of the SoC that are enabled. More...
 
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.