130 #include "scu_defines.h"
137 #define PASSWD_Open (0x98U)
139 #define PASSWD_Close (0xA8U)
142 #define NVM_DATA_WRITE (0U)
144 #define NVM_CODE_WRITE (1U)
146 #define NVM_DATA_READ (2U)
148 #define NVM_CODE_READ (3U)
151 #define PROTECTION_CLEAR (1U)
153 #define PROTECTION_SET (0U)
156 #define SLOWDOWN_PRESCALER_1 (0U)
157 #define SLOWDOWN_PRESCALER_2 (1U)
158 #define SLOWDOWN_PRESCALER_3 (2U)
159 #define SLOWDOWN_PRESCALER_4 (3U)
160 #define SLOWDOWN_PRESCALER_8 (4U)
161 #define SLOWDOWN_PRESCALER_16 (5U)
162 #define SLOWDOWN_PRESCALER_24 (6U)
163 #define SLOWDOWN_PRESCALER_32 (7U)
164 #define SLOWDOWN_PRESCALER_48 (8U)
165 #define SLOWDOWN_PRESCALER_64 (9U)
166 #define SLOWDOWN_PRESCALER_96 (10U)
167 #define SLOWDOWN_PRESCALER_128 (11U)
168 #define SLOWDOWN_PRESCALER_192 (12U)
169 #define SLOWDOWN_PRESCALER_256 (13U)
170 #define SLOWDOWN_PRESCALER_384 (14U)
171 #define SLOWDOWN_PRESCALER_512 (15U)
467 #if defined (__IAR_SYSTEMS_ICC__)
468 #pragma inline=forced
#define SCU
Definition: tle987x.h:6071
#define SCU_WDTCON_WDTRS_Msk
Definition: tle987x.h:9360
#define SCU_WDTCON_WDTEN_Pos
Definition: tle987x.h:9357
#define SCU_WDTCON_WDTEN_Msk
Definition: tle987x.h:9358
#define SCU_WDTCON_WDTRS_Pos
Definition: tle987x.h:9359
void SCU_ExitSlowMode(void)
Gets the device out of Slow Mode.
INLINE void SCU_Enable_Module(TScu_Mod Module)
Enables a given peripheral module in the Peripheral Management Control Registers.
Definition: scu.h:439
Scu_Mod
Definition: scu.h:181
@ Mod_Timer21
Definition: scu.h:188
@ Mod_SSC2
Definition: scu.h:187
@ Mod_CCU6
Definition: scu.h:184
@ Mod_GPT12
Definition: scu.h:186
@ Mod_Timer2
Definition: scu.h:185
@ Mod_SSC1
Definition: scu.h:183
@ Mod_Timer3
Definition: scu.h:189
@ Mod_ADC1
Definition: scu.h:182
#define PASSWD_Close
PASSWD Phrases, PASSWD Closed.
Definition: scu.h:139
void SCU_ClkInit(void)
Initializes the system clocks.
INLINE void SCU_Disable_Module(TScu_Mod Module)
Disables a given peripheral module in the Peripheral Management Control Registers.
Definition: scu.h:409
void SCU_Init(void)
Initializes the SCU based on the Config Wizard for MOTIX MCU configuration.
INLINE void SCU_WDT_Start(void)
Starts the Watchdog of SCU-DM in the Watchdog Timer Control Register The written bit is protected by ...
Definition: scu.h:350
INLINE void SCU_WDT_Service(void)
Services the Watchdog of SCU-DM in the Watchdog Timer Control Register.
Definition: scu.h:390
void SCU_EnterStopMode(void)
Sets the device into Stop Mode.
#define PASSWD_Open
PASSWD Phrases, PASSWD Opened.
Definition: scu.h:137
INLINE void SCU_OpenPASSWD(void)
Opens the bit protection by writing PASSWD_Open to the Bit Protection Register.
Definition: scu.h:470
INLINE void SCU_ClosePASSWD(void)
Closes the bit protection by writing PASSWD_Close to the Bit Protection Register.
Definition: scu.h:487
void SCU_EnterSlowMode(uint8 divider_scaled)
Sets the device into Slow Down Mode.
INLINE void SCU_WDT_Stop(void)
Stops the Watchdog of SCU-DM in the Watchdog Timer Control Register The written bit is protected by t...
Definition: scu.h:370
void SCU_EnterSleepMode(void)
Sets the device into Sleep Mode.
bool SCU_ChangeNVMProtection(uint32 mode, uint32 action)
Sets the Write/Read Protection for the Code/Data Flash.
SFR low level access library.
INLINE void Field_Wrt8all(volatile uint8 *reg, uint8 val)
This function writes an 8-bit register directly, no mask/position needed.
Definition: sfr_access.h:317
INLINE void Field_Mod8(volatile uint8 *reg, uint8 pos, uint8 msk, uint8 val)
This function writes a bit field in a 8-bit register.
Definition: sfr_access.h:337
CMSIS register HeaderFile.
General type declarations.
#define INLINE
Definition: types.h:132
uint8_t uint8
8 bit unsigned value
Definition: types.h:137
uint32_t uint32
32 bit unsigned value
Definition: types.h:139