STM32F0xx Standard Peripherals Firmware Library: main.h File Reference

STM32F0xx Standard Peripherals Library

STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h File Reference

Header for main.c module. More...

#include "stm32f0xx.h"

Go to the source code of this file.

Defines

#define countof(a)   (sizeof(a) / sizeof(*(a)))
#define MODE_TRANSMITTER
#define RXBUFFERSIZE   TXBUFFERSIZE + 1
#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_RX_AF   GPIO_AF_0
#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_TX_AF   GPIO_AF_0
#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

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/CRC/CRC_TwoBoards/main.h.


Define Documentation

#define countof (   a)    (sizeof(a) / sizeof(*(a)))
#define MODE_TRANSMITTER
#define RXBUFFERSIZE   TXBUFFERSIZE + 1

Definition at line 67 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by main().

#define TXBUFFERSIZE   (countof(TxBuffer) - 1)

Definition at line 66 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by main().

#define USARTx   USART2
#define USARTx_APBPERIPHCLOCK   RCC_APB1PeriphClockCmd

Definition at line 50 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_CLK   RCC_APB1Periph_USART2

Definition at line 49 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_IRQHandler   USART2_IRQHandler
#define USARTx_IRQn   USART2_IRQn

Definition at line 51 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_RX_AF   GPIO_AF_0

Definition at line 64 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_RX_GPIO_CLK   RCC_AHBPeriph_GPIOD

Definition at line 62 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_RX_GPIO_PORT   GPIOD

Definition at line 61 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_RX_PIN   GPIO_Pin_6

Definition at line 60 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_RX_SOURCE   GPIO_PinSource6

Definition at line 63 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_TX_AF   GPIO_AF_0

Definition at line 58 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_TX_GPIO_CLK   RCC_AHBPeriph_GPIOD

Definition at line 56 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_TX_GPIO_PORT   GPIOD

Definition at line 55 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_TX_PIN   GPIO_Pin_5

Definition at line 54 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

#define USARTx_TX_SOURCE   GPIO_PinSource5

Definition at line 57 of file STM32F0xx_StdPeriph_Examples/CRC/CRC_TwoBoards/main.h.

Referenced by USART_Config().

STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32