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 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 |
Definition at line 119 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define CMD_DOWN 0x1C |
Definition at line 116 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define CMD_LEFT 0x1A |
Definition at line 114 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define CMD_RIGHT 0x15 |
Definition at line 113 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define CMD_SEL 0x1F |
Definition at line 117 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define CMD_UP 0x13 |
Definition at line 115 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define countof | ( | a | ) | (sizeof(a) / sizeof(*(a))) |
Definition at line 41 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define DATA_SIZE TXBUFFERSIZE |
Definition at line 122 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
Referenced by GetVar_NbrOfData(), and main().
#define RXBUFFERSIZE TXBUFFERSIZE |
Definition at line 110 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPI_DATASIZE_8 |
Definition at line 52 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPI_MASTER |
Definition at line 47 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx SPI1 |
Definition at line 66 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_CLK RCC_APB2Periph_SPI1 |
Definition at line 67 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_IRQHandler SPI1_IRQHandler |
Definition at line 69 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_IRQn SPI1_IRQn |
Definition at line 68 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_MISO_AF GPIO_AF_1 |
Definition at line 100 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_MISO_GPIO_CLK RCC_AHBPeriph_GPIOE |
Definition at line 98 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_MISO_GPIO_PORT GPIOE |
Definition at line 97 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_MISO_PIN GPIO_Pin_14 |
Definition at line 96 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_MISO_SOURCE GPIO_PinSource14 |
Definition at line 99 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_MOSI_AF GPIO_AF_1 |
Definition at line 106 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_MOSI_GPIO_CLK RCC_AHBPeriph_GPIOE |
Definition at line 104 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_MOSI_GPIO_PORT GPIOE |
Definition at line 103 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_MOSI_PIN GPIO_Pin_15 |
Definition at line 102 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_MOSI_SOURCE GPIO_PinSource15 |
Definition at line 105 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_SCK_AF GPIO_AF_0 |
Definition at line 94 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_SCK_GPIO_CLK RCC_AHBPeriph_GPIOB |
Definition at line 92 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_SCK_GPIO_PORT GPIOB |
Definition at line 91 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_SCK_PIN GPIO_Pin_3 |
Definition at line 90 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define SPIx_SCK_SOURCE GPIO_PinSource3 |
Definition at line 93 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define TXBUFFERSIZE (countof(TxBuffer) - 1) |
Definition at line 109 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
#define USER_TIMEOUT ((uint32_t)0x64) |
Definition at line 63 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.
Enumeration Type Documentation
enum TestStatus |
- Enumerator:
Definition at line 42 of file STM32F0xx_StdPeriph_Examples/SPI/SPI_TwoBoards/DataExchangeInterrupt/main.h.