STM8S/A Standard Peripherals Drivers: CLK_Registers_Bits_Definition

STM8S/A

STM8S/A Standard Peripherals Drivers
CLK_Registers_Bits_Definition

Defines

#define CLK_CCOR_CCOBSY   ((uint8_t)0x40)
#define CLK_CCOR_CCOEN   ((uint8_t)0x01)
#define CLK_CCOR_CCORDY   ((uint8_t)0x20)
#define CLK_CCOR_CCOSEL   ((uint8_t)0x1E)
#define CLK_CKDIVR_CPUDIV   ((uint8_t)0x07)
#define CLK_CKDIVR_HSIDIV   ((uint8_t)0x18)
#define CLK_CMSR_CKM   ((uint8_t)0xFF)
#define CLK_CSSR_AUX   ((uint8_t)0x02)
#define CLK_CSSR_CSSD   ((uint8_t)0x08)
#define CLK_CSSR_CSSDIE   ((uint8_t)0x04)
#define CLK_CSSR_CSSEN   ((uint8_t)0x01)
#define CLK_ECKR_HSEEN   ((uint8_t)0x01)
#define CLK_ECKR_HSERDY   ((uint8_t)0x02)
#define CLK_HSITRIMR_HSITRIM   ((uint8_t)0x07)
#define CLK_ICKR_FHWU   ((uint8_t)0x04)
#define CLK_ICKR_HSIEN   ((uint8_t)0x01)
#define CLK_ICKR_HSIRDY   ((uint8_t)0x02)
#define CLK_ICKR_LSIEN   ((uint8_t)0x08)
#define CLK_ICKR_LSIRDY   ((uint8_t)0x10)
#define CLK_ICKR_SWUAH   ((uint8_t)0x20)
#define CLK_PCKENR1_I2C   ((uint8_t)0x01)
#define CLK_PCKENR1_SPI   ((uint8_t)0x02)
#define CLK_PCKENR1_TIM1   ((uint8_t)0x80)
#define CLK_PCKENR1_TIM2   ((uint8_t)0x20)
#define CLK_PCKENR1_TIM3   ((uint8_t)0x40)
#define CLK_PCKENR1_TIM4   ((uint8_t)0x10)
#define CLK_PCKENR1_TIM5   ((uint8_t)0x20)
#define CLK_PCKENR1_TIM6   ((uint8_t)0x10)
#define CLK_PCKENR1_UART1   ((uint8_t)0x04)
#define CLK_PCKENR1_UART2   ((uint8_t)0x08)
#define CLK_PCKENR1_UART3   ((uint8_t)0x08)
#define CLK_PCKENR2_ADC   ((uint8_t)0x08)
#define CLK_PCKENR2_AWU   ((uint8_t)0x04)
#define CLK_PCKENR2_CAN   ((uint8_t)0x80)
#define CLK_SWCR_SWBSY   ((uint8_t)0x01)
#define CLK_SWCR_SWEN   ((uint8_t)0x02)
#define CLK_SWCR_SWIEN   ((uint8_t)0x04)
#define CLK_SWCR_SWIF   ((uint8_t)0x08)
#define CLK_SWIMCCR_SWIMDIV   ((uint8_t)0x01)
#define CLK_SWR_SWI   ((uint8_t)0xFF)

Define Documentation

#define CLK_CCOR_CCOBSY   ((uint8_t)0x40)

Configurable clock output busy

Definition at line 594 of file stm8s.h.

#define CLK_CCOR_CCOEN   ((uint8_t)0x01)

Configurable clock output enable

Definition at line 597 of file stm8s.h.

Referenced by CLK_CCOCmd(), CLK_CCOConfig(), and CLK_DeInit().

#define CLK_CCOR_CCORDY   ((uint8_t)0x20)

Configurable clock output ready

Definition at line 595 of file stm8s.h.

#define CLK_CCOR_CCOSEL   ((uint8_t)0x1E)

Configurable clock output selection

Definition at line 596 of file stm8s.h.

Referenced by CLK_CCOConfig().

#define CLK_CKDIVR_CPUDIV   ((uint8_t)0x07)

CPU clock prescaler

Definition at line 571 of file stm8s.h.

Referenced by CLK_SYSCLKConfig().

#define CLK_CKDIVR_HSIDIV   ((uint8_t)0x18)

High speed internal clock prescaler

Definition at line 570 of file stm8s.h.

Referenced by CLK_GetClockFreq(), CLK_HSIPrescalerConfig(), and CLK_SYSCLKConfig().

#define CLK_CMSR_CKM   ((uint8_t)0xFF)

Clock master status bits

Definition at line 561 of file stm8s.h.

#define CLK_CSSR_AUX   ((uint8_t)0x02)

Auxiliary oscillator connected to master clock

Definition at line 591 of file stm8s.h.

#define CLK_CSSR_CSSD   ((uint8_t)0x08)

Clock security system detection

Definition at line 589 of file stm8s.h.

Referenced by CLK_ClearITPendingBit().

#define CLK_CSSR_CSSDIE   ((uint8_t)0x04)

Clock security system detection interrupt enable

Definition at line 590 of file stm8s.h.

Referenced by CLK_ITConfig().

#define CLK_CSSR_CSSEN   ((uint8_t)0x01)

Clock security system enable

Definition at line 592 of file stm8s.h.

Referenced by CLK_ClockSecuritySystemEnable().

#define CLK_ECKR_HSEEN   ((uint8_t)0x01)

High speed external crystal oscillator enable

Definition at line 559 of file stm8s.h.

Referenced by CLK_ClockSwitchConfig(), and CLK_HSECmd().

#define CLK_ECKR_HSERDY   ((uint8_t)0x02)

High speed external crystal oscillator ready

Definition at line 558 of file stm8s.h.

#define CLK_HSITRIMR_HSITRIM   ((uint8_t)0x07)

High speed internal oscillator trimmer

Definition at line 599 of file stm8s.h.

Referenced by CLK_AdjustHSICalibrationValue().

#define CLK_ICKR_FHWU   ((uint8_t)0x04)

Fast Wake-up from Active Halt/Halt mode

Definition at line 554 of file stm8s.h.

Referenced by CLK_FastHaltWakeUpCmd().

#define CLK_ICKR_HSIEN   ((uint8_t)0x01)

High speed internal RC oscillator enable

Definition at line 556 of file stm8s.h.

Referenced by CLK_ClockSwitchConfig(), and CLK_HSICmd().

#define CLK_ICKR_HSIRDY   ((uint8_t)0x02)

High speed internal RC oscillator ready

Definition at line 555 of file stm8s.h.

#define CLK_ICKR_LSIEN   ((uint8_t)0x08)

Low speed internal RC oscillator enable

Definition at line 553 of file stm8s.h.

Referenced by CLK_ClockSwitchConfig(), and CLK_LSICmd().

#define CLK_ICKR_LSIRDY   ((uint8_t)0x10)

Low speed internal oscillator ready

Definition at line 552 of file stm8s.h.

#define CLK_ICKR_SWUAH   ((uint8_t)0x20)

Slow Wake-up from Active Halt/Halt modes

Definition at line 551 of file stm8s.h.

Referenced by CLK_SlowActiveHaltWakeUpCmd().

#define CLK_PCKENR1_I2C   ((uint8_t)0x01)

I2C clock enable

Definition at line 583 of file stm8s.h.

#define CLK_PCKENR1_SPI   ((uint8_t)0x02)

SPI clock enable

Definition at line 582 of file stm8s.h.

#define CLK_PCKENR1_TIM1   ((uint8_t)0x80)

Timer 1 clock enable

Definition at line 573 of file stm8s.h.

#define CLK_PCKENR1_TIM2   ((uint8_t)0x20)

Timer 2 clock enable

Definition at line 575 of file stm8s.h.

#define CLK_PCKENR1_TIM3   ((uint8_t)0x40)

Timer 3 clock enable

Definition at line 574 of file stm8s.h.

#define CLK_PCKENR1_TIM4   ((uint8_t)0x10)

Timer 4 clock enable

Definition at line 577 of file stm8s.h.

#define CLK_PCKENR1_TIM5   ((uint8_t)0x20)

Timer 5 clock enable

Definition at line 576 of file stm8s.h.

#define CLK_PCKENR1_TIM6   ((uint8_t)0x10)

Timer 6 clock enable

Definition at line 578 of file stm8s.h.

#define CLK_PCKENR1_UART1   ((uint8_t)0x04)

UART1 clock enable

Definition at line 581 of file stm8s.h.

#define CLK_PCKENR1_UART2   ((uint8_t)0x08)

UART2 clock enable

Definition at line 580 of file stm8s.h.

#define CLK_PCKENR1_UART3   ((uint8_t)0x08)

UART3 clock enable

Definition at line 579 of file stm8s.h.

#define CLK_PCKENR2_ADC   ((uint8_t)0x08)

ADC clock enable

Definition at line 586 of file stm8s.h.

#define CLK_PCKENR2_AWU   ((uint8_t)0x04)

AWU clock enable

Definition at line 587 of file stm8s.h.

#define CLK_PCKENR2_CAN   ((uint8_t)0x80)

CAN clock enable

Definition at line 585 of file stm8s.h.

#define CLK_SWCR_SWBSY   ((uint8_t)0x01)

Switch busy flag

Definition at line 568 of file stm8s.h.

Referenced by CLK_ClockSwitchConfig(), and CLK_SYSCLKEmergencyClear().

#define CLK_SWCR_SWEN   ((uint8_t)0x02)

Switch start/stop

Definition at line 567 of file stm8s.h.

Referenced by CLK_ClockSwitchCmd(), and CLK_ClockSwitchConfig().

#define CLK_SWCR_SWIEN   ((uint8_t)0x04)

Clock switch interrupt enable

Definition at line 566 of file stm8s.h.

Referenced by CLK_ClockSwitchConfig(), and CLK_ITConfig().

#define CLK_SWCR_SWIF   ((uint8_t)0x08)

Clock switch interrupt flag

Definition at line 565 of file stm8s.h.

Referenced by CLK_ClearITPendingBit(), and CLK_ClockSwitchConfig().

#define CLK_SWIMCCR_SWIMDIV   ((uint8_t)0x01)

SWIM Clock Dividing Factor

Definition at line 601 of file stm8s.h.

Referenced by CLK_SWIMConfig().

#define CLK_SWR_SWI   ((uint8_t)0xFF)

Clock master selection bits

Definition at line 563 of file stm8s.h.

STM8 Standard Peripherals Library: Footer

 

 

 

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