STM8L15x Standard Peripherals Drivers: Low power clock configuration functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Low power clock configuration functions

Low power clock configuration functions. More...

Functions

void CLK_HaltConfig (CLK_Halt_TypeDef CLK_Halt, FunctionalState NewState)
 Configures clock during halt and active halt modes.
void CLK_MainRegulatorCmd (FunctionalState NewState)
 Configures the main voltage regulator.

Detailed Description

Low power clock configuration functions.

 ===============================================================================
                      Low power clock configuration functions
 ===============================================================================


Function Documentation

void CLK_HaltConfig ( CLK_Halt_TypeDef  CLK_Halt,
FunctionalState  NewState 
)

Configures clock during halt and active halt modes.

Parameters:
CLK_Halt: Specifies the clock state and wake-up mode from halt way. This parameter can be a value of CLK_Halt_TypeDef.
NewState: Specifies the System clock (SYSCLK) state in active halt mode. This parameter can be ENABLE or DISABLE.
Return values:
None

Definition at line 801 of file stm8l15x_clk.c.

References CLK, DISABLE, IS_CLK_HALT, and IS_FUNCTIONAL_STATE.

void CLK_MainRegulatorCmd ( FunctionalState  NewState)

Configures the main voltage regulator.

Parameters:
NewState,:specifies the MVR state. This parameter can be one of the following values:
  • DISABLE: MVR disabled;
  • ENABLE: MVR enabled.
Return values:
None

Definition at line 825 of file stm8l15x_clk.c.

References CLK, CLK_REGCSR_REGOFF, DISABLE, and IS_FUNCTIONAL_STATE.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com