STM32F0xx Standard Peripherals Firmware Library: main.h File Reference

STM32F0xx Standard Peripherals Library

STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h File Reference

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
#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)

Enumeration Type Documentation

enum TestStatus
Enumerator:
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 

Definition at line 42 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeDMA/main.h.

STM32L1xx Standard Peripherals Library: Footer

 

 

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