|
STM8S/A Standard Peripherals Firmware Library
|
Functions | |
| 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. | |
| static void | LoadValueIntoSinStruct (void) |
| Init Sin Struct. | |
| void | main (void) |
| Main program. | |
| static void | TIM1_Config (void) |
| Configure TIM1 to allow sine wave generation. | |
Variables | |
| __IO uint8_t | counter = 0 |
| __IO MySin_Typedef | sin |
Function Documentation
| INTERRUPT_HANDLER | ( | TLI_IRQHandler | , |
| 0 | |||
| ) |
Top Level Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 75 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | AWU_IRQHandler | , |
| 1 | |||
| ) |
Auto Wake Up Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 87 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | CLK_IRQHandler | , |
| 2 | |||
| ) |
Clock Controller Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 99 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | EXTI_PORTA_IRQHandler | , |
| 3 | |||
| ) |
External Interrupt PORTA Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 111 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | EXTI_PORTB_IRQHandler | , |
| 4 | |||
| ) |
External Interrupt PORTB Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 123 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | EXTI_PORTC_IRQHandler | , |
| 5 | |||
| ) |
External Interrupt PORTC Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 135 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | EXTI_PORTD_IRQHandler | , |
| 6 | |||
| ) |
External Interrupt PORTD Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 147 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | EXTI_PORTE_IRQHandler | , |
| 7 | |||
| ) |
External Interrupt PORTE Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 159 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | SPI_IRQHandler | , |
| 10 | |||
| ) |
SPI Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 210 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/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 222 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
References AVERAGE_AMP, counter, COUNTER, MySin_Typedef::Index, nbr_of_samples_half, sin, TIM1_ClearITPendingBit(), TIM1_IT_UPDATE, TIM1_SetCompare1(), TRUE, MySin_Typedef::Up, and MySin_Typedef::Value.
| INTERRUPT_HANDLER | ( | TIM1_CAP_COM_IRQHandler | , |
| 12 | |||
| ) |
Timer1 Capture/Compare Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 265 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/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 302 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | TIM2_CAP_COM_IRQHandler | , |
| 14 | |||
| ) |
Timer2 Capture/Compare Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 314 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | I2C_IRQHandler | , |
| 19 | |||
| ) |
I2C Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 381 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | ADC1_IRQHandler | , |
| 22 | |||
| ) |
ADC1 interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 461 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | TIM4_UPD_OVF_IRQHandler | , |
| 23 | |||
| ) |
Timer4 Update/Overflow Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 490 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER | ( | EEPROM_EEC_IRQHandler | , |
| 24 | |||
| ) |
Eeprom EEC Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 503 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| INTERRUPT_HANDLER_TRAP | ( | TRAP_IRQHandler | ) |
TRAP interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 64 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.c.
| static void LoadValueIntoSinStruct | ( | void | ) | [static] |
Init Sin Struct.
- Parameters:
-
None
- Return values:
-
None
Definition at line 112 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/main.c.
References MySin_Typedef::Index, nbr_of_samples_half, sin, TRUE, MySin_Typedef::Up, and MySin_Typedef::Value.
Referenced by main().
| void main | ( | void | ) |
Main program.
- Parameters:
-
None
- Return values:
-
None
Definition at line 86 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/main.c.
References CLK_HSICmd(), CLK_PRESCALER_HSIDIV4, CLK_SYSCLKConfig(), counter, ENABLE, enableInterrupts, LoadValueIntoSinStruct(), and TIM1_Config().
| static void TIM1_Config | ( | void | ) | [static] |
Configure TIM1 to allow sine wave generation.
- Parameters:
-
None
- Return values:
-
None
Definition at line 140 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/main.c.
References ENABLE, INIT_TIM1_ARR, INIT_TIM1_CCR1, TIM1_ARRPreloadConfig(), TIM1_Cmd(), TIM1_COUNTERMODE_UP, TIM1_CtrlPWMOutputs(), TIM1_DeInit(), TIM1_IT_UPDATE, TIM1_ITConfig(), TIM1_OC1Init(), TIM1_OCIDLESTATE_RESET, TIM1_OCMODE_PWM1, TIM1_OCNIDLESTATE_RESET, TIM1_OCNPOLARITY_LOW, TIM1_OCPOLARITY_LOW, TIM1_OUTPUTNSTATE_DISABLE, TIM1_OUTPUTSTATE_ENABLE, and TIM1_TimeBaseInit().
Referenced by main().
Variable Documentation
Definition at line 43 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/main.c.
Referenced by INTERRUPT_HANDLER(), and main().
| __IO MySin_Typedef sin |
Definition at line 42 of file STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/main.c.
Referenced by INTERRUPT_HANDLER(), and LoadValueIntoSinStruct().