STM8S/A Standard Peripherals Firmware Library
|
Functions | |
static void | CLK_Config (void) |
Configure system clock to run at 16Mhz and output the system clock on CCO pin. | |
static void | GPIO_Config (void) |
Configure GPIO for buttons available on the evaluation board. | |
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 | LCD_Config (void) |
Configure the LCD available on the evaluation board. | |
void | main (void) |
Example main entry point. | |
Variables | |
__IO uint8_t | OscillatorStatus = 0x00 |
Function Documentation
static void CLK_Config | ( | void | ) | [static] |
Configure system clock to run at 16Mhz and output the system clock on CCO pin.
- Parameters:
-
None
- Return values:
-
None
static void GPIO_Config | ( | void | ) | [static] |
Configure GPIO for buttons available on the evaluation board.
- Parameters:
-
None
- Return values:
-
None
INTERRUPT_HANDLER | ( | TLI_IRQHandler | , |
0 | |||
) |
Top Level Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 76 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | AWU_IRQHandler | , |
1 | |||
) |
Auto Wake Up Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 88 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | CLK_IRQHandler | , |
2 | |||
) |
Clock Controller Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 100 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | EXTI_PORTA_IRQHandler | , |
3 | |||
) |
External Interrupt PORTA Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 112 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | EXTI_PORTB_IRQHandler | , |
4 | |||
) |
External Interrupt PORTB Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 124 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
References BUTTON_DOWN, BUTTON_RIGHT, BUTTON_UP, OscillatorStatus, and STM_EVAL_PBGetState().
INTERRUPT_HANDLER | ( | EXTI_PORTC_IRQHandler | , |
5 | |||
) |
External Interrupt PORTC Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 148 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | EXTI_PORTD_IRQHandler | , |
6 | |||
) |
External Interrupt PORTD Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 160 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | EXTI_PORTE_IRQHandler | , |
7 | |||
) |
External Interrupt PORTE Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 172 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | SPI_IRQHandler | , |
10 | |||
) |
SPI Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 223 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/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 235 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | TIM1_CAP_COM_IRQHandler | , |
12 | |||
) |
Timer1 Capture/Compare Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 247 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/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 284 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | TIM2_CAP_COM_IRQHandler | , |
14 | |||
) |
Timer2 Capture/Compare Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 296 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | I2C_IRQHandler | , |
19 | |||
) |
I2C Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 363 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | ADC1_IRQHandler | , |
22 | |||
) |
ADC1 interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 443 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | TIM4_UPD_OVF_IRQHandler | , |
23 | |||
) |
Timer4 Update/Overflow Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 472 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER | ( | EEPROM_EEC_IRQHandler | , |
24 | |||
) |
Eeprom EEC Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 485 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
INTERRUPT_HANDLER_TRAP | ( | TRAP_IRQHandler | ) |
TRAP interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 65 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.c.
static void LCD_Config | ( | void | ) | [static] |
Configure the LCD available on the evaluation board.
- Parameters:
-
None
- Return values:
-
None
void main | ( | void | ) |
Example main entry point.
- Parameters:
-
None
- Return values:
-
None
Definition at line 54 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/main.c.
References CLK_ClockSwitchConfig(), CLK_Config(), CLK_CURRENTCLOCKSTATE_DISABLE, CLK_SOURCE_HSE, CLK_SOURCE_HSI, CLK_SOURCE_LSI, CLK_SWITCHMODE_AUTO, DISABLE, enableInterrupts, GPIO_Config(), LCD_Config(), LCD_LINE2, LCD_Print(), LCD_SetCursorPos(), and OscillatorStatus.
Variable Documentation
__IO uint8_t OscillatorStatus = 0x00 |
Definition at line 42 of file STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/main.c.
Referenced by INTERRUPT_HANDLER(), and main().