STM8L15x Standard Peripherals Drivers: ITC

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

ITC driver modules. More...

Modules

 ITC_Exported_Types
 ITC_Exported_Constants
 ITC_Private_Functions

Functions

void ITC_DeInit (void)
 Deinitializes the ITC registers to their default reset value.
uint8_t ITC_GetCPUCC (void)
 Utility function used to read CC register.
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 driver modules.


Function Documentation

void ITC_DeInit ( void  )

Deinitializes the ITC registers to their default reset value.

Parameters:
None
Return values:
None

Definition at line 81 of file stm8l15x_itc.c.

References ITC, and ITC_SPRX_RESET_VALUE.

uint8_t ITC_GetCPUCC ( void  )

Utility function used to read CC register.

Parameters:
None
Return values:
CPUCC register value

Definition at line 50 of file stm8l15x_itc.c.

Referenced by ITC_GetSoftIntStatus().

uint8_t ITC_GetSoftIntStatus ( void  )

Gets the interrupt software priority bits (I1, I0) value from CPU CC register.

Parameters:
None
Return values:
Theinterrupt software priority bits value.

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.

Parameters:
IRQn: Specifies the peripheral interrupt source.
Return values:
Specifiesthe software priority of the 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).
Parameters:
IRQn: Specifies the peripheral interrupt source.
ITC_PriorityLevel: Specifies the software priority value to set This parameter can be one of the following values:
  • ITC_PriorityLevel_0: Software priority level 0 (cannot be written)
  • ITC_PriorityLevel_1: Software priority level 1
  • ITC_PriorityLevel_2: Software priority level 2
  • ITC_PriorityLevel_3: Software priority level 3
Return values:
None

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.

STM8S Firmware Library: Overview

 

 

 

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