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 0x66 |
#define | CMD_DOWN 0xCC |
#define | CMD_DOWN_SIZE 0x1E |
#define | CMD_LEFT 0xAA |
#define | CMD_LEFT_SIZE 0x05 |
#define | CMD_RIGHT 0x55 |
#define | CMD_RIGHT_SIZE 0x01 |
#define | CMD_SEL 0xFF |
#define | CMD_SEL_SIZE TXBUFFERSIZE |
#define | CMD_UP 0x33 |
#define | CMD_UP_SIZE 0x14 |
#define | countof(a) (sizeof(a) / sizeof(*(a))) |
#define | DMAx_CLK RCC_AHBPeriph_DMA1 |
#define | RXBUFFERSIZE TXBUFFERSIZE |
#define | TXBUFFERSIZE (countof(TxBuffer) - 1) |
#define | USARTx USART2 |
#define | USARTx_APBPERIPHCLOCK RCC_APB1PeriphClockCmd |
#define | USARTx_CLK RCC_APB1Periph_USART2 |
#define | USARTx_IRQHandler USART2_IRQHandler |
#define | USARTx_IRQn USART2_IRQn |
#define | USARTx_RDR_ADDRESS 0x40004424 |
#define | USARTx_RX_AF GPIO_AF_0 |
#define | USARTx_RX_DMA_CHANNEL DMA1_Channel5 |
#define | USARTx_RX_DMA_FLAG_GL DMA1_FLAG_GL5 |
#define | USARTx_RX_DMA_FLAG_TC DMA1_FLAG_TC5 |
#define | USARTx_RX_GPIO_CLK RCC_AHBPeriph_GPIOD |
#define | USARTx_RX_GPIO_PORT GPIOD |
#define | USARTx_RX_PIN GPIO_Pin_6 |
#define | USARTx_RX_SOURCE GPIO_PinSource6 |
#define | USARTx_TDR_ADDRESS 0x40004428 |
#define | USARTx_TX_AF GPIO_AF_0 |
#define | USARTx_TX_DMA_CHANNEL DMA1_Channel4 |
#define | USARTx_TX_DMA_FLAG_GL DMA1_FLAG_GL4 |
#define | USARTx_TX_DMA_FLAG_TC DMA1_FLAG_TC4 |
#define | USARTx_TX_GPIO_CLK RCC_AHBPeriph_GPIOD |
#define | USARTx_TX_GPIO_PORT GPIOD |
#define | USARTx_TX_PIN GPIO_Pin_5 |
#define | USARTx_TX_SOURCE GPIO_PinSource5 |
#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/USART/USART_TwoBoards/DataExchangeDMA/main.h.
Define Documentation
#define CMD_ACK 0x66 |
Definition at line 127 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define CMD_DOWN 0xCC |
Definition at line 124 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define CMD_DOWN_SIZE 0x1E |
Definition at line 133 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define CMD_LEFT 0xAA |
Definition at line 122 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define CMD_LEFT_SIZE 0x05 |
Definition at line 131 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define CMD_RIGHT 0x55 |
Definition at line 121 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define CMD_RIGHT_SIZE 0x01 |
Definition at line 130 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define CMD_SEL 0xFF |
Definition at line 125 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define CMD_SEL_SIZE TXBUFFERSIZE |
Definition at line 134 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define CMD_UP 0x33 |
Definition at line 123 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define CMD_UP_SIZE 0x14 |
Definition at line 132 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define countof | ( | a | ) | (sizeof(a) / sizeof(*(a))) |
Definition at line 41 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define DMAx_CLK RCC_AHBPeriph_DMA1 |
Definition at line 76 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define RXBUFFERSIZE TXBUFFERSIZE |
Definition at line 118 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define TXBUFFERSIZE (countof(TxBuffer) - 1) |
Definition at line 117 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx USART2 |
Definition at line 98 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_APBPERIPHCLOCK RCC_APB1PeriphClockCmd |
Definition at line 100 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_CLK RCC_APB1Periph_USART2 |
Definition at line 99 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_IRQHandler USART2_IRQHandler |
Definition at line 102 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_IRQn USART2_IRQn |
Definition at line 101 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_RDR_ADDRESS 0x40004424 |
Definition at line 66 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define USARTx_RX_AF GPIO_AF_0 |
Definition at line 114 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_RX_DMA_CHANNEL DMA1_Channel5 |
Definition at line 71 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define USARTx_RX_DMA_FLAG_GL DMA1_FLAG_GL5 |
Definition at line 73 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define USARTx_RX_DMA_FLAG_TC DMA1_FLAG_TC5 |
Definition at line 72 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define USARTx_RX_GPIO_CLK RCC_AHBPeriph_GPIOD |
Definition at line 112 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_RX_GPIO_PORT GPIOD |
Definition at line 111 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_RX_PIN GPIO_Pin_6 |
Definition at line 110 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_RX_SOURCE GPIO_PinSource6 |
Definition at line 113 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_TDR_ADDRESS 0x40004428 |
Definition at line 65 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define USARTx_TX_AF GPIO_AF_0 |
Definition at line 108 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_TX_DMA_CHANNEL DMA1_Channel4 |
Definition at line 68 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define USARTx_TX_DMA_FLAG_GL DMA1_FLAG_GL4 |
Definition at line 70 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define USARTx_TX_DMA_FLAG_TC DMA1_FLAG_TC4 |
Definition at line 69 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
Referenced by main().
#define USARTx_TX_GPIO_CLK RCC_AHBPeriph_GPIOD |
Definition at line 106 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_TX_GPIO_PORT GPIOD |
Definition at line 105 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_TX_PIN GPIO_Pin_5 |
Definition at line 104 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USARTx_TX_SOURCE GPIO_PinSource5 |
Definition at line 107 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
#define USER_TIMEOUT ((uint32_t)0x64) |
Definition at line 51 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.
Enumeration Type Documentation
enum TestStatus |
- Enumerator:
Definition at line 42 of file STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.h.