STM8S/A Standard Peripherals Drivers: stm8s_itc.h File Reference

STM8S/A Standard Peripherals Library

stm8s_itc.h File Reference

This file contains all functions prototype and macros for the ITC peripheral. More...

#include "stm8s.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_IRQ_OK(IRQ)   ((IRQ) <= (uint8_t)24)
#define IS_ITC_PRIORITY_OK(PriorityValue)

Enumerations

enum  ITC_Irq_TypeDef {
  ITC_IRQ_TLI = (uint8_t)0, ITC_IRQ_AWU = (uint8_t)1, ITC_IRQ_CLK = (uint8_t)2, ITC_IRQ_PORTA = (uint8_t)3,
  ITC_IRQ_PORTB = (uint8_t)4, ITC_IRQ_PORTC = (uint8_t)5, ITC_IRQ_PORTD = (uint8_t)6, ITC_IRQ_PORTE = (uint8_t)7,
  ITC_IRQ_SPI = (uint8_t)10, ITC_IRQ_TIM1_OVF = (uint8_t)11, ITC_IRQ_TIM1_CAPCOM = (uint8_t)12, ITC_IRQ_TIM2_OVF = (uint8_t)13,
  ITC_IRQ_TIM2_CAPCOM = (uint8_t)14, ITC_IRQ_TIM3_OVF = (uint8_t)15, ITC_IRQ_TIM3_CAPCOM = (uint8_t)16, ITC_IRQ_I2C = (uint8_t)19,
  ITC_IRQ_TIM4_OVF = (uint8_t)23, ITC_IRQ_EEPROM_EEC = (uint8_t)24
}
 ITC Interrupt Lines selection. More...
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 }
 ITC Priority Levels selection. More...

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 (ITC_Irq_TypeDef IrqNum)
 Gets the software priority of the specified interrupt source.
void ITC_SetSoftwarePriority (ITC_Irq_TypeDef IrqNum, ITC_PriorityLevel_TypeDef PriorityValue)
 Sets the software priority of the specified interrupt source.

Detailed Description

This file contains all functions prototype and macros for the ITC peripheral.

Author:
MCD Application Team
Version:
V2.2.0
Date:
30-September-2014
Attention:

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file stm8s_itc.h.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com