STM8S/A Standard Peripherals Firmware Library
|
Defines | |
#define | CCR1_Val ((uint16_t)976) |
#define | CCR2_Val ((uint16_t)488) |
#define | CCR3_Val ((uint16_t)244) |
Functions | |
static void | GPIO_Config (void) |
Configure GPIO. | |
INTERRUPT_HANDLER (TLI_IRQHandler, 0) | |
Top Level Interrupt routine. | |
INTERRUPT_HANDLER (AWU_IRQHandler, 1) | |
Auto Wake Up Interrupt routine. | |
INTERRUPT_HANDLER (CLK_IRQHandler, 2) | |
Clock Controller Interrupt routine. | |
INTERRUPT_HANDLER (EXTI_PORTA_IRQHandler, 3) | |
External Interrupt PORTA Interrupt routine. | |
INTERRUPT_HANDLER (EXTI_PORTB_IRQHandler, 4) | |
External Interrupt PORTB Interrupt routine. | |
INTERRUPT_HANDLER (EXTI_PORTC_IRQHandler, 5) | |
External Interrupt PORTC Interrupt routine. | |
INTERRUPT_HANDLER (EXTI_PORTD_IRQHandler, 6) | |
External Interrupt PORTD Interrupt routine. | |
INTERRUPT_HANDLER (EXTI_PORTE_IRQHandler, 7) | |
External Interrupt PORTE Interrupt routine. | |
INTERRUPT_HANDLER (SPI_IRQHandler, 10) | |
SPI Interrupt routine. | |
INTERRUPT_HANDLER (TIM1_UPD_OVF_TRG_BRK_IRQHandler, 11) | |
Timer1 Update/Overflow/Trigger/Break Interrupt routine. | |
INTERRUPT_HANDLER (TIM1_CAP_COM_IRQHandler, 12) | |
Timer1 Capture/Compare Interrupt routine. | |
INTERRUPT_HANDLER (TIM2_UPD_OVF_BRK_IRQHandler, 13) | |
Timer2 Update/Overflow/Break Interrupt routine. | |
INTERRUPT_HANDLER (TIM2_CAP_COM_IRQHandler, 14) | |
Timer2 Capture/Compare Interrupt routine. | |
INTERRUPT_HANDLER (I2C_IRQHandler, 19) | |
I2C Interrupt routine. | |
INTERRUPT_HANDLER (ADC1_IRQHandler, 22) | |
ADC1 interrupt routine. | |
INTERRUPT_HANDLER (TIM4_UPD_OVF_IRQHandler, 23) | |
Timer4 Update/Overflow Interrupt routine. | |
INTERRUPT_HANDLER (EEPROM_EEC_IRQHandler, 24) | |
Eeprom EEC Interrupt routine. | |
INTERRUPT_HANDLER_TRAP (TRAP_IRQHandler) | |
TRAP interrupt routine. | |
void | main (void) |
Main program. | |
static void | TIM2_Config (void) |
Configure Output Compare Active Mode for TIM2 Channel1, Channel2 and channel3. |
Define Documentation
Definition at line 38 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/main.c.
Definition at line 39 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/main.c.
Definition at line 40 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/main.c.
Function Documentation
static void GPIO_Config | ( | void | ) | [static] |
Configure GPIO.
- Parameters:
-
None
- Return values:
-
None
INTERRUPT_HANDLER | ( | TLI_IRQHandler | , |
0 | |||
) |
Top Level Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 73 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | AWU_IRQHandler | , |
1 | |||
) |
Auto Wake Up Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 85 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | CLK_IRQHandler | , |
2 | |||
) |
Clock Controller Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 97 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | EXTI_PORTA_IRQHandler | , |
3 | |||
) |
External Interrupt PORTA Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 109 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | EXTI_PORTB_IRQHandler | , |
4 | |||
) |
External Interrupt PORTB Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 121 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | EXTI_PORTC_IRQHandler | , |
5 | |||
) |
External Interrupt PORTC Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 133 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | EXTI_PORTD_IRQHandler | , |
6 | |||
) |
External Interrupt PORTD Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 145 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | EXTI_PORTE_IRQHandler | , |
7 | |||
) |
External Interrupt PORTE Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 157 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | SPI_IRQHandler | , |
10 | |||
) |
SPI Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 208 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | TIM1_UPD_OVF_TRG_BRK_IRQHandler | , |
11 | |||
) |
Timer1 Update/Overflow/Trigger/Break Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 220 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | TIM1_CAP_COM_IRQHandler | , |
12 | |||
) |
Timer1 Capture/Compare Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 232 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | TIM2_UPD_OVF_BRK_IRQHandler | , |
13 | |||
) |
Timer2 Update/Overflow/Break Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 269 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | TIM2_CAP_COM_IRQHandler | , |
14 | |||
) |
Timer2 Capture/Compare Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 281 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
References GPIO_PIN_5, GPIO_PIN_6, GPIO_PIN_7, GPIO_WriteLow(), RESET, TIM2_ClearITPendingBit(), TIM2_GetITStatus(), TIM2_IT_CC1, TIM2_IT_CC2, and TIM2_IT_CC3.
INTERRUPT_HANDLER | ( | I2C_IRQHandler | , |
19 | |||
) |
I2C Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 372 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | ADC1_IRQHandler | , |
22 | |||
) |
ADC1 interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 452 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | TIM4_UPD_OVF_IRQHandler | , |
23 | |||
) |
Timer4 Update/Overflow Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 481 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER | ( | EEPROM_EEC_IRQHandler | , |
24 | |||
) |
Eeprom EEC Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 494 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
INTERRUPT_HANDLER_TRAP | ( | TRAP_IRQHandler | ) |
TRAP interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 62 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.c.
void main | ( | void | ) |
Main program.
- Parameters:
-
None
- Return values:
-
None
Definition at line 54 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/main.c.
References enableInterrupts, GPIO_Config(), and TIM2_Config().
static void TIM2_Config | ( | void | ) | [static] |
Configure Output Compare Active Mode for TIM2 Channel1, Channel2 and channel3.
- Parameters:
-
None
- Return values:
-
None
Definition at line 87 of file STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/main.c.
References CCR1_Val, CCR2_Val, CCR3_Val, DISABLE, ENABLE, TIM2_ARRPreloadConfig(), TIM2_Cmd(), TIM2_IT_CC1, TIM2_IT_CC2, TIM2_IT_CC3, TIM2_ITConfig(), TIM2_OC1Init(), TIM2_OC1PreloadConfig(), TIM2_OC2Init(), TIM2_OC2PreloadConfig(), TIM2_OC3Init(), TIM2_OC3PreloadConfig(), TIM2_OCMODE_INACTIVE, TIM2_OCPOLARITY_HIGH, TIM2_OUTPUTSTATE_ENABLE, TIM2_PRESCALER_2048, TIM2_PrescalerConfig(), TIM2_PSCRELOADMODE_IMMEDIATE, and TIM2_TimeBaseInit().
Referenced by main().