STM32F0xx Standard Peripherals Firmware Library
|
STM32F0xx_StdPeriph_Examples/USART/USART_TwoBoards/DataExchangeDMA/main.c File Reference
Main program body. More...
#include "main.h"
Go to the source code of this file.
Functions | |
static TestStatus | Buffercmp (uint8_t *pBuffer1, uint8_t *pBuffer2, uint16_t BufferLength) |
Compares two buffers. | |
static void | Fill_Buffer (uint8_t *pBuffer, uint16_t BufferLength) |
Fills buffer. | |
int | main (void) |
Main program. | |
static JOYState_TypeDef | Read_Joystick (void) |
Reads key from evaluationboard. | |
static void | SysTickConfig (void) |
Configure a SysTick Base time to 10 ms. | |
static void | TimeOut_UserCallback (void) |
Basic management of the timeout situation. | |
static void | USART_Config (void) |
Configures the USART Peripheral. | |
Variables | |
uint8_t | AckBuffer [0x02] = {0x00, 0x00} |
uint8_t | CmdBuffer [0x02] = {0x00, 0x00} |
DMA_InitTypeDef | DMA_InitStructure |
__IO JOYState_TypeDef | PressedButton = JOY_NONE |
uint8_t | RxBuffer [RXBUFFERSIZE] |
__IO uint32_t | TimeOut = 0x0 |
uint8_t | TxBuffer [] = "USART DMA Example: Communication between two USART using DMA" |
Detailed Description
Main program body.
- 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.c.