|
void | SetupTrimDevice (void) |
| Performs the necessary trim of the device which is not done in ROM boot code. More...
|
|
This module contains functions for device setup which is not done in boot code.
void SetupTrimDevice |
( |
void |
| ) |
|
Performs the necessary trim of the device which is not done in ROM boot code.
This function should only execute coming from ROM boot.
The following is handled by this function:
- Checks if the driverlib variant used by the application is supported by the device. Execution is halted in case of unsupported driverlib variant.
- Configures VIMS cache mode based on setting in CCFG.
- Configures functionalities like DCDC and XOSC dependent on startup modes like cold reset, wakeup from shutdown and wakeup from from powerdown.
- Configures VIMS power domain control.
- Configures optimal wait time for flash FSM in cases where flash pump wakes up from sleep.
- Note
- The current implementation does not take soft reset into account. However, it does no damage to execute it again. It only consumes time.
-
This function is called by the compiler specific device startup codes that are integrated in the SimpleLink SDKs for CC13xx/CC26XX devices.
- Returns
- None
115 uint32_t ui32Fcfg1Revision;
116 uint32_t ui32AonSysResetctl;
121 if ( ui32Fcfg1Revision == 0xFFFFFFFF ) {
122 ui32Fcfg1Revision = 0;
136 NOROM_SetupSetCacheModeAccordingToCcfgSetting();
148 if( ! ( HWREGBITW(
AON_IOC_BASE + AON_IOC_O_IOCLATCH, AON_IOC_IOCLATCH_EN_BITN )))
static void TrimAfterColdResetWakeupFromShutDownWakeupFromPowerDown(void)
Trims to be applied when coming from POWER_DOWN (also called when coming from SHUTDOWN and PIN_RESET)...
Definition: setup.c:226
static void TrimAfterColdResetWakeupFromShutDown(uint32_t ui32Fcfg1Revision)
Trims to be applied when coming from SHUTDOWN (also called when coming from PIN_RESET).
Definition: setup.c:242
void SetupSetCacheModeAccordingToCcfgSetting(void)
Set correct VIMS_MODE according to CCFG setting (CACHE or GPRAM)
Definition: setup_rom.c:884
void ThisLibraryIsFor_CC13x2_CC26x2_HwRev20AndLater_HaltIfViolated(void)
Verifies that current chip is CC13x2 or CC26x2 PG2.0 or later and never returns if violated...
Definition: chipinfo.c:223
static void TrimAfterColdReset(void)
Trims to be applied when coming from PIN_RESET.
Definition: setup.c:341