144 #include "scu_defines.h"
151 #define PASSWD_Open (0x98U)
153 #define PASSWD_Close (0xA8U)
156 #define NVM_DATA_WRITE (0U)
158 #define NVM_CODE_WRITE (1U)
160 #define NVM_DATA_READ (2U)
162 #define NVM_CODE_READ (3U)
165 #define PROTECTION_CLEAR (1U)
167 #define PROTECTION_SET (0U)
170 #define SLOWDOWN_PRESCALER_1 (0U)
171 #define SLOWDOWN_PRESCALER_2 (1U)
172 #define SLOWDOWN_PRESCALER_3 (2U)
173 #define SLOWDOWN_PRESCALER_4 (3U)
174 #define SLOWDOWN_PRESCALER_8 (4U)
175 #define SLOWDOWN_PRESCALER_16 (5U)
176 #define SLOWDOWN_PRESCALER_24 (6U)
177 #define SLOWDOWN_PRESCALER_32 (7U)
178 #define SLOWDOWN_PRESCALER_48 (8U)
179 #define SLOWDOWN_PRESCALER_64 (9U)
180 #define SLOWDOWN_PRESCALER_96 (10U)
181 #define SLOWDOWN_PRESCALER_128 (11U)
182 #define SLOWDOWN_PRESCALER_192 (12U)
183 #define SLOWDOWN_PRESCALER_256 (13U)
184 #define SLOWDOWN_PRESCALER_384 (14U)
185 #define SLOWDOWN_PRESCALER_512 (15U)
481 #if defined (__IAR_SYSTEMS_ICC__)
482 #pragma inline=forced
#define SCU
Definition: tle987x.h:6097
#define SCU_WDTCON_WDTRS_Msk
Definition: tle987x.h:9386
#define SCU_WDTCON_WDTEN_Pos
Definition: tle987x.h:9383
#define SCU_WDTCON_WDTEN_Msk
Definition: tle987x.h:9384
#define SCU_WDTCON_WDTRS_Pos
Definition: tle987x.h:9385
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:453
Scu_Mod
Definition: scu.h:195
@ Mod_Timer21
Definition: scu.h:202
@ Mod_SSC2
Definition: scu.h:201
@ Mod_CCU6
Definition: scu.h:198
@ Mod_GPT12
Definition: scu.h:200
@ Mod_Timer2
Definition: scu.h:199
@ Mod_SSC1
Definition: scu.h:197
@ Mod_Timer3
Definition: scu.h:203
@ Mod_ADC1
Definition: scu.h:196
#define PASSWD_Close
PASSWD Phrases, PASSWD Closed.
Definition: scu.h:153
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:423
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:364
INLINE void SCU_WDT_Service(void)
Services the Watchdog of SCU-DM in the Watchdog Timer Control Register.
Definition: scu.h:404
void SCU_EnterStopMode(void)
Sets the device into Stop Mode.
#define PASSWD_Open
PASSWD Phrases, PASSWD Opened.
Definition: scu.h:151
INLINE void SCU_OpenPASSWD(void)
Opens the bit protection by writing PASSWD_Open to the Bit Protection Register.
Definition: scu.h:484
INLINE void SCU_ClosePASSWD(void)
Closes the bit protection by writing PASSWD_Close to the Bit Protection Register.
Definition: scu.h:501
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:384
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:332
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:352
CMSIS register HeaderFile.
General type declarations.
#define INLINE
Definition: types.h:148
uint8_t uint8
8 bit unsigned value
Definition: types.h:153
uint32_t uint32
32 bit unsigned value
Definition: types.h:155