|
STM32F0xx Standard Peripherals Firmware Library
|
Enumerations | |
| enum | TestStatus { FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 1, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED } |
Functions | |
| void | HardFault_Handler (void) |
| This function handles Hard Fault exception. | |
| static void | I2S_Config (void) |
| Configures I2S peripheral. | |
| int | main (void) |
| Main program. | |
| void | NMI_Handler (void) |
| This function handles NMI exception. | |
| void | PendSV_Handler (void) |
| This function handles PendSVC exception. | |
| void | SPI1_IRQHandler (void) |
| This function handles SPI1 global interrupt request. | |
| void | SVC_Handler (void) |
| This function handles SVCall exception. | |
| void | SysTick_Handler (void) |
| This function handles SysTick Handler. | |
Variables | |
| uint16_t | I2S_Buffer_Rx [32] |
| uint16_t | I2S_Buffer_Rx [32] = {0} |
| const uint16_t | I2S_Buffer_Tx [32] |
| const uint16_t | I2S_Buffer_Tx [32] |
| __IO uint16_t | RxIdx |
| __IO uint16_t | RxIdx = 0 |
| TestStatus | TransferStatus = FAILED |
| __IO uint16_t | TxIdx |
| __IO uint16_t | TxIdx = 0 |
Enumeration Type Documentation
| enum TestStatus |
- Enumerator:
Definition at line 40 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/main.c.
Function Documentation
| void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 70 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/stm32f0xx_it.c.
| static void I2S_Config | ( | void | ) | [static] |
Configures I2S peripheral.
- Parameters:
-
None
- Return values:
-
None
Definition at line 131 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/main.c.
References GPIO_InitStructure, and NVIC_InitStructure.
Referenced by main().
| int main | ( | void | ) |
Main program.
- Parameters:
-
None
- Return values:
-
None
< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f0xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file
Definition at line 65 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/main.c.
References Buffercmp(), I2S_Buffer_Rx, I2S_Buffer_Tx, I2S_Config(), PASSED, RxIdx, TransferStatus, and TxIdx.
| void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 61 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/stm32f0xx_it.c.
| void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 92 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/stm32f0xx_it.c.
| void SPI1_IRQHandler | ( | void | ) |
This function handles SPI1 global interrupt request.
- Parameters:
-
None
- Return values:
-
: None
Definition at line 116 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/stm32f0xx_it.c.
| void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 83 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/stm32f0xx_it.c.
| void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 101 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/stm32f0xx_it.c.
Variable Documentation
| uint16_t I2S_Buffer_Rx[32] |
Definition at line 52 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/main.c.
Referenced by I2S_Config(), main(), and SPI1_IRQHandler().
| uint16_t I2S_Buffer_Rx[32] = {0} |
Definition at line 51 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/main.c.
| const uint16_t I2S_Buffer_Tx[32] |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeDMA/main.c.
Referenced by I2S_Config(), main(), and SPI1_IRQHandler().
| const uint16_t I2S_Buffer_Tx[32] |
{0x0102, 0x0304, 0x0506, 0x0708, 0x090A, 0x0B0C,
0x0D0E, 0x0F10, 0x1112, 0x1314, 0x1516, 0x1718,
0x191A, 0x1B1C, 0x1D1E, 0x1F20, 0x2122, 0x2324,
0x2526, 0x2728, 0x292A, 0x2B2C, 0x2D2E, 0x2F30,
0x3132, 0x3334, 0x3536, 0x3738, 0x393A, 0x3B3C,
0x3D3E, 0x3F40}
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/main.c.
| __IO uint16_t RxIdx |
Definition at line 50 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/main.c.
Referenced by main(), and SPI1_IRQHandler().
| __IO uint16_t RxIdx = 0 |
Definition at line 50 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/main.c.
Referenced by main(), and SPI1_IRQHandler().
| TestStatus TransferStatus = FAILED |
Definition at line 52 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/main.c.
| __IO uint16_t TxIdx |
Definition at line 50 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/main.c.
Referenced by main(), and SPI1_IRQHandler().
| __IO uint16_t TxIdx = 0 |
Definition at line 50 of file STM32F0xx_StdPeriph_Examples/I2S/I2S_DataExchangeInterrupt/main.c.
Referenced by main(), and SPI1_IRQHandler().