STM8L15x Standard Peripherals Drivers: stm8l15x_itc.h File Reference

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

stm8l15x_itc.h File Reference

This file contains all the functions prototypes for the ITC firmware library. More...

#include "stm8l15x.h"

Go to the source code of this file.

Defines

#define CPU_SOFT_INT_DISABLED   ((uint8_t)0x28)
#define IS_ITC_INTERRUPTS_DISABLED   (ITC_GetSoftIntStatus() == CPU_SOFT_INT_DISABLED)
#define IS_ITC_PRIORITY(PriorityValue)

Enumerations

enum  IRQn_TypeDef {
  FLASH_IRQn = (uint8_t)1, DMA1_CHANNEL0_1_IRQn = (uint8_t)2, DMA1_CHANNEL2_3_IRQn = (uint8_t)3, EXTIE_F_PVD_IRQn = (uint8_t)5,
  EXTI0_IRQn = (uint8_t)8, EXTI1_IRQn = (uint8_t)9, EXTI2_IRQn = (uint8_t)10, EXTI3_IRQn = (uint8_t)11,
  EXTI4_IRQn = (uint8_t)12, EXTI5_IRQn = (uint8_t)13, EXTI6_IRQn = (uint8_t)14, EXTI7_IRQn = (uint8_t)15,
  ADC1_COMP_IRQn = (uint8_t)18, TIM4_UPD_OVF_TRG_IRQn = (uint8_t)25, SPI1_IRQn = (uint8_t)26
}
enum  ITC_PriorityLevel_TypeDef { ITC_PriorityLevel_0 = (uint8_t)0x02, ITC_PriorityLevel_1 = (uint8_t)0x01, ITC_PriorityLevel_2 = (uint8_t)0x00, ITC_PriorityLevel_3 = (uint8_t)0x03 }

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

This file contains all the functions prototypes for the ITC firmware library.

Author:
MCD Application Team
Version:
V1.5.0
Date:
13-May-2011
Attention:

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2011 STMicroelectronics

Definition in file stm8l15x_itc.h.

STM8S Firmware Library: Overview

 

 

 

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