STM32F0xx Standard Peripherals Firmware Library
|
Header for main.c module. More...
#include "stm32f0xx.h"
#include "stm32072b_eval.h"
Go to the source code of this file.
Defines | |
#define | CMD_ACK 0x16 |
#define | CMD_DOWN 0x1C |
#define | CMD_DOWN_SIZE 0x1E |
#define | CMD_LEFT 0x1A |
#define | CMD_LEFT_SIZE 0x05 |
#define | CMD_RIGHT 0x15 |
#define | CMD_RIGHT_SIZE 0x01 |
#define | CMD_SEL 0x1F |
#define | CMD_SEL_SIZE TXBUFFERSIZE |
#define | CMD_UP 0x13 |
#define | CMD_UP_SIZE 0x14 |
#define | countof(a) (sizeof(a) / sizeof(*(a))) |
#define | DMAx_CLK RCC_AHBPeriph_DMA1 |
#define | RXBUFFERSIZE TXBUFFERSIZE |
#define | SPI_DATAMASK (uint8_t)0xFF |
#define | SPI_DATASIZE SPI_DataSize_8b |
#define | SPI_DATASIZE_8 |
#define | SPI_MASTER |
#define | SPIx SPI1 |
#define | SPIx_CLK RCC_APB2Periph_SPI1 |
#define | SPIx_DR_ADDRESS 0x4001300C |
#define | SPIx_IRQHandler SPI1_IRQHandler |
#define | SPIx_IRQn SPI1_IRQn |
#define | SPIx_MISO_AF GPIO_AF_1 |
#define | SPIx_MISO_GPIO_CLK RCC_AHBPeriph_GPIOE |
#define | SPIx_MISO_GPIO_PORT GPIOE |
#define | SPIx_MISO_PIN GPIO_Pin_14 |
#define | SPIx_MISO_SOURCE GPIO_PinSource14 |
#define | SPIx_MOSI_AF GPIO_AF_1 |
#define | SPIx_MOSI_GPIO_CLK RCC_AHBPeriph_GPIOE |
#define | SPIx_MOSI_GPIO_PORT GPIOE |
#define | SPIx_MOSI_PIN GPIO_Pin_15 |
#define | SPIx_MOSI_SOURCE GPIO_PinSource15 |
#define | SPIx_NSS_AF GPIO_AF_0 |
#define | SPIx_NSS_GPIO_CLK RCC_AHBPeriph_GPIOA |
#define | SPIx_NSS_GPIO_PORT GPIOA |
#define | SPIx_NSS_PIN GPIO_Pin_15 |
#define | SPIx_NSS_SOURCE GPIO_PinSource15 |
#define | SPIx_RX_DMA_CHANNEL DMA1_Channel2 |
#define | SPIx_RX_DMA_FLAG_GL DMA1_FLAG_GL2 |
#define | SPIx_RX_DMA_FLAG_TC DMA1_FLAG_TC2 |
#define | SPIx_SCK_AF GPIO_AF_0 |
#define | SPIx_SCK_GPIO_CLK RCC_AHBPeriph_GPIOB |
#define | SPIx_SCK_GPIO_PORT GPIOB |
#define | SPIx_SCK_PIN GPIO_Pin_3 |
#define | SPIx_SCK_SOURCE GPIO_PinSource3 |
#define | SPIx_TX_DMA_CHANNEL DMA1_Channel3 |
#define | SPIx_TX_DMA_FLAG_GL DMA1_FLAG_GL3 |
#define | SPIx_TX_DMA_FLAG_TC DMA1_FLAG_TC3 |
#define | TIM_ARR ((uint16_t)0x2EDF) |
#define | TIM_CCR ((uint16_t)0x1770) |
#define | TIMx TIM2 |
#define | TIMx_CHANNEL_DMA_CHANNEL DMA1_Channel3 |
#define | TIMx_CHANNEL_DMA_FLAG_GL DMA1_FLAG_GL3 |
#define | TIMx_CHANNEL_DMA_FLAG_TC DMA1_FLAG_TC3 |
#define | TIMx_CHANNEL_INIT TIM_OC2Init |
#define | TIMx_CLK RCC_APB1Periph_TIM2 |
#define | TIMx_DMA_CHANNEL TIM_DMA_CC2 |
#define | TIMx_TRIGGER_AF GPIO_AF_2 |
#define | TIMx_TRIGGER_GPIO_CLK RCC_AHBPeriph_GPIOA |
#define | TIMx_TRIGGER_GPIO_PORT GPIOA |
#define | TIMx_TRIGGER_PIN GPIO_Pin_1 |
#define | TIMx_TRIGGER_SOURCE GPIO_PinSource1 |
#define | TXBUFFERSIZE (countof(TxBuffer) - 1) |
#define | USER_TIMEOUT ((uint32_t)0x64) |
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 } |
Detailed Description
Header for main.c module.
- Author:
- MCD Application Team
- Version:
- V1.4.0
- Date:
- 24-July-2014
- Attention:
© COPYRIGHT 2014 STMicroelectronics
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Define Documentation
#define CMD_ACK 0x16 |
Definition at line 155 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define CMD_DOWN 0x1C |
Definition at line 152 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define CMD_DOWN_SIZE 0x1E |
Definition at line 161 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define CMD_LEFT 0x1A |
Definition at line 150 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define CMD_LEFT_SIZE 0x05 |
Definition at line 159 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define CMD_RIGHT 0x15 |
Definition at line 149 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define CMD_RIGHT_SIZE 0x01 |
Definition at line 158 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define CMD_SEL 0x1F |
Definition at line 153 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define CMD_SEL_SIZE TXBUFFERSIZE |
Definition at line 162 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define CMD_UP 0x13 |
Definition at line 151 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define CMD_UP_SIZE 0x14 |
Definition at line 160 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define countof | ( | a | ) | (sizeof(a) / sizeof(*(a))) |
Definition at line 41 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
#define DMAx_CLK RCC_AHBPeriph_DMA1 |
Definition at line 73 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config(), and USART_Config().
#define RXBUFFERSIZE TXBUFFERSIZE |
Definition at line 146 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
#define SPI_DATAMASK (uint8_t)0xFF |
Definition at line 167 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define SPI_DATASIZE SPI_DataSize_8b |
Definition at line 166 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPI_DATASIZE_8 |
Definition at line 52 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
#define SPI_MASTER |
Definition at line 47 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
#define SPIx SPI1 |
Definition at line 75 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main(), SPI1_IRQHandler(), and SPI_Config().
#define SPIx_CLK RCC_APB2Periph_SPI1 |
Definition at line 76 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_DR_ADDRESS 0x4001300C |
Definition at line 65 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define SPIx_IRQHandler SPI1_IRQHandler |
Definition at line 78 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
#define SPIx_IRQn SPI1_IRQn |
Definition at line 77 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_MISO_AF GPIO_AF_1 |
Definition at line 115 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_MISO_GPIO_CLK RCC_AHBPeriph_GPIOE |
Definition at line 113 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_MISO_GPIO_PORT GPIOE |
Definition at line 112 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_MISO_PIN GPIO_Pin_14 |
Definition at line 111 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_MISO_SOURCE GPIO_PinSource14 |
Definition at line 114 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_MOSI_AF GPIO_AF_1 |
Definition at line 121 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_MOSI_GPIO_CLK RCC_AHBPeriph_GPIOE |
Definition at line 119 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_MOSI_GPIO_PORT GPIOE |
Definition at line 118 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_MOSI_PIN GPIO_Pin_15 |
Definition at line 117 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_MOSI_SOURCE GPIO_PinSource15 |
Definition at line 120 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_NSS_AF GPIO_AF_0 |
Definition at line 127 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_NSS_GPIO_CLK RCC_AHBPeriph_GPIOA |
Definition at line 125 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_NSS_GPIO_PORT GPIOA |
Definition at line 124 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_NSS_PIN GPIO_Pin_15 |
Definition at line 123 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_NSS_SOURCE GPIO_PinSource15 |
Definition at line 126 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_RX_DMA_CHANNEL DMA1_Channel2 |
Definition at line 69 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define SPIx_RX_DMA_FLAG_GL DMA1_FLAG_GL2 |
Definition at line 71 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define SPIx_RX_DMA_FLAG_TC DMA1_FLAG_TC2 |
Definition at line 70 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define SPIx_SCK_AF GPIO_AF_0 |
Definition at line 109 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_SCK_GPIO_CLK RCC_AHBPeriph_GPIOB |
Definition at line 107 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_SCK_GPIO_PORT GPIOB |
Definition at line 106 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_SCK_PIN GPIO_Pin_3 |
Definition at line 105 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_SCK_SOURCE GPIO_PinSource3 |
Definition at line 108 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define SPIx_TX_DMA_CHANNEL DMA1_Channel3 |
Definition at line 66 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define SPIx_TX_DMA_FLAG_GL DMA1_FLAG_GL3 |
Definition at line 68 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define SPIx_TX_DMA_FLAG_TC DMA1_FLAG_TC3 |
Definition at line 67 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define TIM_ARR ((uint16_t)0x2EDF) |
Definition at line 182 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
#define TIM_CCR ((uint16_t)0x1770) |
Definition at line 183 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
#define TIMx TIM2 |
Definition at line 131 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define TIMx_CHANNEL_DMA_CHANNEL DMA1_Channel3 |
Definition at line 141 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define TIMx_CHANNEL_DMA_FLAG_GL DMA1_FLAG_GL3 |
Definition at line 143 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define TIMx_CHANNEL_DMA_FLAG_TC DMA1_FLAG_TC3 |
Definition at line 142 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
#define TIMx_CHANNEL_INIT TIM_OC2Init |
Definition at line 140 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
#define TIMx_CLK RCC_APB1Periph_TIM2 |
Definition at line 132 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define TIMx_DMA_CHANNEL TIM_DMA_CC2 |
Definition at line 133 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define TIMx_TRIGGER_AF GPIO_AF_2 |
Definition at line 139 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define TIMx_TRIGGER_GPIO_CLK RCC_AHBPeriph_GPIOA |
Definition at line 137 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define TIMx_TRIGGER_GPIO_PORT GPIOA |
Definition at line 136 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define TIMx_TRIGGER_PIN GPIO_Pin_1 |
Definition at line 135 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define TIMx_TRIGGER_SOURCE GPIO_PinSource1 |
Definition at line 138 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by SPI_Config().
#define TXBUFFERSIZE (countof(TxBuffer) - 1) |
Definition at line 145 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
#define USER_TIMEOUT ((uint32_t)0x64) |
Definition at line 62 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
Enumeration Type Documentation
enum TestStatus |
- Enumerator:
Definition at line 42 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.