![]() |
Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
|
Macros | |
#define | MULTIPLIER_US_TO_TICKS SCU_fCPU_MHz |
Multiplier can use fCPU in MHz directly (Mhz <-> us) More... | |
Functions | |
void | SCU_init (void) |
Initialize the SCU module. More... | |
sint8 | SCU_initClk (void) |
Initialize the SCU clock. More... | |
sint8 | SCU_checkXTALDiagnosis (void) |
Check XTAL Diagnosis as describen in the User Manual. More... | |
void | SCU_delay_us (uint32 u32_time_us) |
Delays the regular program execution by a given number of Microseconds. More... | |
void | SCU_initSysTick (uint32 u32_value) |
Initialize the SysTick. More... | |
sint8 | SCU_enSafeSwitchOffSeq (void) |
Configure the Safe Switch-Off release sequence (SSO release sequence) More... | |
void | SCU_enterDeepSleepMode (void) |
Enter the Deep Sleep mode. More... | |
sint8 | SCU_enterStopMode (void) |
Enter the Stop mode. More... | |
void | SCU_enterSleepMode (void) |
Enter the Sleep mode. More... | |
INLINE uint8 | SCU_GetXTALFailSts (void) |
Get the XTAL Fail Status. More... | |
INLINE uint8 | SCU_GetPLL0LockSts (void) |
Get the PLL0 Lock Status. More... | |
INLINE uint8 | SCU_GetPLL1LockSts (void) |
Get the PLL1 Lock Status. More... | |
INLINE uint32 | SCU_getSysTickCntVal (void) |
Get the current SysTick Count Value. More... | |
INLINE uint32 | SCU_getSysTickRelVal (void) |
Get the current SysTick Reload Value. More... | |
INLINE void | CACHE_setCleanAll (void) |
Set Cache clean All. More... | |
INLINE void | CACHE_setLockBlock (uint32 u32_value) |
Set Address of Cache lock Block. More... | |
INLINE void | CACHE_setTouchBlock (uint32 u32_value) |
Set Address of Cache touch Block (load Block to Cache) More... | |
INLINE void | CACHE_setUnlockBlock (uint32 u32_value) |
Set Address of Cache unlock Block. More... | |
INLINE void | CACHE_setCleanSet (uint32 u32_value) |
Set Address of Cache clean Set. More... | |
Variables | |
sint8 | e_xtalSts |
XTAL status. More... | |
#define MULTIPLIER_US_TO_TICKS SCU_fCPU_MHz |
Multiplier can use fCPU in MHz directly (Mhz <-> us)
INLINE void CACHE_setCleanAll | ( | void | ) |
Set Cache clean All.
Set Address of Cache clean Set.
u32_value | Address of Cache clean Set |
Set Address of Cache lock Block.
u32_value | Address of Cache lock Block |
Set Address of Cache touch Block (load Block to Cache)
u32_value | Address of Cache touch Block (load Block to Cache) |
Set Address of Cache unlock Block.
u32_value | Address of Cache unlock Block |
sint8 SCU_checkXTALDiagnosis | ( | void | ) |
Check XTAL Diagnosis as describen in the User Manual.
void SCU_delay_us | ( | uint32 | u32_time_us | ) |
Delays the regular program execution by a given number of Microseconds.
the function returns if the given time has elapsed
Too small delay times are being falsified by execution time
of the function itself
u32_time_us | Delay time in Microseconds |
Example
This example sets a delay of 100 us.
sint8 SCU_enSafeSwitchOffSeq | ( | void | ) |
Configure the Safe Switch-Off release sequence (SSO release sequence)
void SCU_enterDeepSleepMode | ( | void | ) |
Enter the Deep Sleep mode.
void SCU_enterSleepMode | ( | void | ) |
Enter the Sleep mode.
sint8 SCU_enterStopMode | ( | void | ) |
Enter the Stop mode.
Get the PLL0 Lock Status.
Get the PLL1 Lock Status.
Get the current SysTick Count Value.
Get the current SysTick Reload Value.
Get the XTAL Fail Status.
void SCU_init | ( | void | ) |
Initialize the SCU module.
sint8 SCU_initClk | ( | void | ) |
Initialize the SCU clock.
If configured in Config Wizard, the function initializes
In case of an XTAL error, the XTAL error status is stored in the global variable e_xtalSts
The function always initializes
void SCU_initSysTick | ( | uint32 | u32_value | ) |
Initialize the SysTick.
u32_value | SysTick Reload Value |
|
extern |
XTAL status.