STM8S/A Standard Peripherals Firmware Library
|
Functions | |
static void | GPIO_Config (void) |
Configures the Multiplexer on the evaluation board to select the IrDA and initialize GPIO for LEDs. | |
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 | UART1_Config (void) |
Configure UART1 for the communication with IrDA. | |
Variables | |
uint8_t | ReceivedData = 0 |
Function Documentation
static void GPIO_Config | ( | void | ) | [static] |
Configures the Multiplexer on the evaluation board to select the IrDA and initialize GPIO for LEDs.
- 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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/stm8s_it.c.
INTERRUPT_HANDLER | ( | I2C_IRQHandler | , |
19 | |||
) |
I2C Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 348 of file STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/stm8s_it.c.
INTERRUPT_HANDLER | ( | ADC1_IRQHandler | , |
22 | |||
) |
ADC1 interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 428 of file STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/stm8s_it.c.
INTERRUPT_HANDLER | ( | TIM4_UPD_OVF_IRQHandler | , |
23 | |||
) |
Timer4 Update/Overflow Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 457 of file STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/stm8s_it.c.
INTERRUPT_HANDLER | ( | EEPROM_EEC_IRQHandler | , |
24 | |||
) |
Eeprom EEC Interrupt routine.
- Parameters:
-
None
- Return values:
-
None
Definition at line 470 of file STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/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/UART1/UART1_IrDA/Receive/stm8s_it.c.
void main | ( | void | ) |
Main program.
- Parameters:
-
None
- Return values:
-
None
Definition at line 50 of file STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/main.c.
References GPIO_Config(), JOY_DOWN, JOY_LEFT, JOY_RIGHT, JOY_SEL, JOY_UP, LED1, LED2, LED3, LED4, ReceivedData, RESET, STM_EVAL_LEDToggle(), UART1_Config(), UART1_FLAG_RXNE, UART1_GetFlagStatus(), and UART1_ReceiveData8().
static void UART1_Config | ( | void | ) | [static] |
Configure UART1 for the communication with IrDA.
- Parameters:
-
None
- Return values:
-
None
Definition at line 128 of file STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/main.c.
References ENABLE, UART1_DeInit(), UART1_Init(), UART1_IrDACmd(), UART1_IrDAConfig(), UART1_IRDAMODE_NORMAL, UART1_MODE_TXRX_ENABLE, UART1_PARITY_NO, UART1_SetPrescaler(), UART1_STOPBITS_1, UART1_SYNCMODE_CLOCK_DISABLE, and UART1_WORDLENGTH_8D.
Referenced by main().
Variable Documentation
uint8_t ReceivedData = 0 |
Definition at line 38 of file STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/main.c.
Referenced by main().