STM8L15x Standard Peripherals Drivers: CLK_Peripherals

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Defines

#define IS_CLK_PERIPHERAL(PERIPHERAL)

Enumerations

enum  CLK_Peripheral_TypeDef {
  CLK_Peripheral_TIM2 = (uint8_t)0x00, CLK_Peripheral_TIM3 = (uint8_t)0x01, CLK_Peripheral_TIM4 = (uint8_t)0x02, CLK_Peripheral_I2C1 = (uint8_t)0x03,
  CLK_Peripheral_SPI1 = (uint8_t)0x04, CLK_Peripheral_USART1 = (uint8_t)0x05, CLK_Peripheral_BEEP = (uint8_t)0x06, CLK_Peripheral_DAC = (uint8_t)0x07,
  CLK_Peripheral_ADC1 = (uint8_t)0x10, CLK_Peripheral_TIM1 = (uint8_t)0x11, CLK_Peripheral_RTC = (uint8_t)0x12, CLK_Peripheral_LCD = (uint8_t)0x13,
  CLK_Peripheral_DMA1 = (uint8_t)0x14, CLK_Peripheral_COMP = (uint8_t)0x15, CLK_Peripheral_BOOTROM = (uint8_t)0x17, CLK_Peripheral_AES = (uint8_t)0x20,
  CLK_Peripheral_TIM5 = (uint8_t)0x21, CLK_Peripheral_SPI2 = (uint8_t)0x22, CLK_Peripheral_USART2 = (uint8_t)0x23, CLK_Peripheral_USART3 = (uint8_t)0x24,
  CLK_Peripheral_CSSLSE = (uint8_t)0x25
}

Define Documentation

#define IS_CLK_PERIPHERAL (   PERIPHERAL)
Value:
(((PERIPHERAL) == CLK_Peripheral_DAC)     ||\
                                       ((PERIPHERAL) == CLK_Peripheral_ADC1)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_DMA1)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_RTC)     ||\
                                       ((PERIPHERAL) == CLK_Peripheral_LCD)     ||\
                                       ((PERIPHERAL) == CLK_Peripheral_COMP)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_TIM1)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_USART1)  ||\
                                       ((PERIPHERAL) == CLK_Peripheral_SPI1)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_I2C1)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_TIM4)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_TIM3)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_BEEP)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_BOOTROM) ||\
                                       ((PERIPHERAL) == CLK_Peripheral_AES)     ||\
                                       ((PERIPHERAL) == CLK_Peripheral_TIM5)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_SPI2)    ||\
                                       ((PERIPHERAL) == CLK_Peripheral_USART2)  ||\
                                       ((PERIPHERAL) == CLK_Peripheral_USART3)  ||\
                                       ((PERIPHERAL) == CLK_Peripheral_CSSLSE)  ||\
                                       ((PERIPHERAL) == CLK_Peripheral_TIM2))

Definition at line 232 of file stm8l15x_clk.h.

Referenced by CLK_PeripheralClockConfig().


Enumeration Type Documentation

Enumerator:
CLK_Peripheral_TIM2 

Peripheral Clock Enable 1, TIM2

CLK_Peripheral_TIM3 

Peripheral Clock Enable 1, TIM3

CLK_Peripheral_TIM4 

Peripheral Clock Enable 1, TIM4

CLK_Peripheral_I2C1 

Peripheral Clock Enable 1, I2C1

CLK_Peripheral_SPI1 

Peripheral Clock Enable 1, SPI1

CLK_Peripheral_USART1 

Peripheral Clock Enable 1, USART1

CLK_Peripheral_BEEP 

Peripheral Clock Enable 1, BEEP

CLK_Peripheral_DAC 

Peripheral Clock Enable 1, DAC

CLK_Peripheral_ADC1 

Peripheral Clock Enable 2, ADC1

CLK_Peripheral_TIM1 

Peripheral Clock Enable 2, TIM1

CLK_Peripheral_RTC 

Peripheral Clock Enable 2, RTC

CLK_Peripheral_LCD 

Peripheral Clock Enable 2, LCD

CLK_Peripheral_DMA1 

Peripheral Clock Enable 2, DMA1

CLK_Peripheral_COMP 

Peripheral Clock Enable 2, COMP1 and COMP2

CLK_Peripheral_BOOTROM 

Peripheral Clock Enable 2, Boot ROM

CLK_Peripheral_AES 

Peripheral Clock Enable 3, AES

CLK_Peripheral_TIM5 

Peripheral Clock Enable 3, TIM5

CLK_Peripheral_SPI2 

Peripheral Clock Enable 3, SPI2

CLK_Peripheral_USART2 

Peripheral Clock Enable 3, USART2

CLK_Peripheral_USART3 

Peripheral Clock Enable 3, USART3

CLK_Peripheral_CSSLSE 

Peripheral Clock Enable 3, CSS on LSE

Definition at line 208 of file stm8l15x_clk.h.

STM8S Firmware Library: Overview

 

 

 

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