STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups

MISC driver modules. More...

Modules

 MISC_Exported_Constants
 
 MISC_Private_Functions
 

Data Structures

struct  NVIC_InitTypeDef
 NVIC Init Structure definition. More...
 

Functions

void NVIC_Init (NVIC_InitTypeDef *NVIC_InitStruct)
 Initializes the NVIC peripheral according to the specified parameters in the NVIC_InitStruct. More...
 
void NVIC_SystemLPConfig (uint8_t LowPowerMode, FunctionalState NewState)
 Selects the condition for the system to enter low power mode. More...
 
void SysTick_CLKSourceConfig (uint32_t SysTick_CLKSource)
 Configures the SysTick clock source. More...
 

Detailed Description

MISC driver modules.

Function Documentation

void NVIC_Init ( NVIC_InitTypeDef NVIC_InitStruct)

Initializes the NVIC peripheral according to the specified parameters in the NVIC_InitStruct.

 *******************************************************************************
                   ##### Interrupts configuration functions #####
 *******************************************************************************
    [..] This section provide functions allowing to configure the NVIC interrupts
        (IRQ). The Cortex-M0 exceptions are managed by CMSIS functions.
         (#) Enable and Configure the priority of the selected IRQ Channels. 
             The priority can be 0..3. 

        -@- Lower priority values gives higher priority.
        -@- Priority Order:
            (#@) Lowest priority.
            (#@) Lowest hardware priority (IRQn position).  
Note
To configure interrupts priority correctly, the NVIC_PriorityGroupConfig() function should be called before.
Parameters
NVIC_InitStruct,:pointer to a NVIC_InitTypeDef structure that contains the configuration information for the specified NVIC peripheral.
Return values
None
void NVIC_SystemLPConfig ( uint8_t  LowPowerMode,
FunctionalState  NewState 
)

Selects the condition for the system to enter low power mode.

Parameters
LowPowerMode,:Specifies the new mode for the system to enter low power mode. This parameter can be one of the following values:
  • NVIC_LP_SEVONPEND: Low Power SEV on Pend.
  • NVIC_LP_SLEEPDEEP: Low Power DEEPSLEEP request.
  • NVIC_LP_SLEEPONEXIT: Low Power Sleep on Exit.
NewState,:new state of LP condition. This parameter can be: ENABLE or DISABLE.
Return values
None
void SysTick_CLKSourceConfig ( uint32_t  SysTick_CLKSource)

Configures the SysTick clock source.

Parameters
SysTick_CLKSource,:specifies the SysTick clock source. This parameter can be one of the following values:
  • SysTick_CLKSource_HCLK_Div8: AHB clock divided by 8 selected as SysTick clock source.
  • SysTick_CLKSource_HCLK: AHB clock selected as SysTick clock source.
Return values
None