STM8L15x Standard Peripherals Drivers
|
ITC configuration and management functions. More...
Functions | |
void | ITC_DeInit (void) |
Deinitializes the ITC registers to their default reset value. | |
uint8_t | ITC_GetSoftIntStatus (void) |
Gets the interrupt software priority bits (I1, I0) value from CPU CC register. | |
ITC_PriorityLevel_TypeDef | ITC_GetSoftwarePriority (IRQn_TypeDef IRQn) |
Gets the software priority of the specified interrupt source. | |
void | ITC_SetSoftwarePriority (IRQn_TypeDef IRQn, ITC_PriorityLevel_TypeDef ITC_PriorityLevel) |
Sets the software priority of the specified interrupt source. |
Detailed Description
ITC configuration and management functions.
=============================================================================== ITC configuration and management functions ===============================================================================
Function Documentation
void ITC_DeInit | ( | void | ) |
Deinitializes the ITC registers to their default reset value.
Definition at line 81 of file stm8l15x_itc.c.
References ITC, and ITC_SPRX_RESET_VALUE.
uint8_t ITC_GetSoftIntStatus | ( | void | ) |
Gets the interrupt software priority bits (I1, I0) value from CPU CC register.
Definition at line 98 of file stm8l15x_itc.c.
References CPU_SOFT_INT_DISABLED, and ITC_GetCPUCC().
ITC_PriorityLevel_TypeDef ITC_GetSoftwarePriority | ( | IRQn_TypeDef | IRQn | ) |
Gets the software priority of the specified interrupt source.
Definition at line 108 of file stm8l15x_itc.c.
References ADC1_COMP_IRQn, DMA1_CHANNEL0_1_IRQn, DMA1_CHANNEL2_3_IRQn, EXTI0_IRQn, EXTI1_IRQn, EXTI2_IRQn, EXTI3_IRQn, EXTI4_IRQn, EXTI5_IRQn, EXTI6_IRQn, EXTI7_IRQn, EXTIE_F_PVD_IRQn, FLASH_IRQn, ITC, SPI1_IRQn, and TIM4_UPD_OVF_TRG_IRQn.
void ITC_SetSoftwarePriority | ( | IRQn_TypeDef | IRQn, |
ITC_PriorityLevel_TypeDef | ITC_PriorityLevel | ||
) |
Sets the software priority of the specified interrupt source.
- Note:
- The modification of the software priority is only possible when the interrupts are disabled.
- The normal behavior is to disable the interrupt before calling this function, and re-enable it after.
- The priority level 0 cannot be set (see product specification for more details).
Definition at line 241 of file stm8l15x_itc.c.
References ADC1_COMP_IRQn, DMA1_CHANNEL0_1_IRQn, DMA1_CHANNEL2_3_IRQn, EXTI0_IRQn, EXTI1_IRQn, EXTI2_IRQn, EXTI3_IRQn, EXTI4_IRQn, EXTI5_IRQn, EXTI6_IRQn, EXTI7_IRQn, EXTIE_F_PVD_IRQn, FLASH_IRQn, IS_ITC_INTERRUPTS_DISABLED, IS_ITC_PRIORITY, ITC, SPI1_IRQn, and TIM4_UPD_OVF_TRG_IRQn.