STM32F0xx Standard Peripherals Firmware Library: main.h File Reference

STM32F0xx Standard Peripherals Library

STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/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_LEFT   0x1A
#define CMD_RIGHT   0x15
#define CMD_SEL   0x1F
#define CMD_UP   0x13
#define countof(a)   (sizeof(a) / sizeof(*(a)))
#define DATA_SIZE   TXBUFFERSIZE
#define RXBUFFERSIZE   TXBUFFERSIZE
#define SPI_DATASIZE_8
#define SPI_MASTER
#define SPIx   SPI1
#define SPIx_CLK   RCC_APB2Periph_SPI1
#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_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 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
}

Functions

uint8_t GetVar_NbrOfData (void)
 Returns NbrOfDataToTransfer value.

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


Define Documentation

#define CMD_ACK   0x16
#define CMD_DOWN   0x1C
#define CMD_LEFT   0x1A
#define CMD_RIGHT   0x15
#define CMD_SEL   0x1F
#define CMD_UP   0x13
#define countof (   a)    (sizeof(a) / sizeof(*(a)))
#define DATA_SIZE   TXBUFFERSIZE
#define RXBUFFERSIZE   TXBUFFERSIZE
#define SPI_DATASIZE_8
#define SPIx   SPI1
#define SPIx_CLK   RCC_APB2Periph_SPI1
#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_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 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/DataExchangeInterrupt/main.h.

STM32L1xx Standard Peripherals Library: Footer

 

 

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