/** ****************************************************************************** * @file SPI/SPI_FullDuplex_ComIT/Inc/main.h * @author MCD Application Team * @brief Header for main.c module ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... *//* Define to prevent recursive inclusion -------------------------------------*/#ifndef__MAIN_H#define__MAIN_H/* Includes ------------------------------------------------------------------*/#include"stm32f429i_discovery.h"Includes/* Exported types ------------------------------------------------------------*//* Exported constants --------------------------------------------------------*//* User can use this section to tailor SPIx instance used and associated resources *//* ... *//* Definition for SPIx clock resources */#defineSPIxSPI4#defineSPIx_CLK_ENABLE()__HAL_RCC_SPI4_CLK_ENABLE()#defineSPIx_SCK_GPIO_CLK_ENABLE()__HAL_RCC_GPIOE_CLK_ENABLE()#defineSPIx_MISO_GPIO_CLK_ENABLE()__HAL_RCC_GPIOE_CLK_ENABLE()#defineSPIx_MOSI_GPIO_CLK_ENABLE()__HAL_RCC_GPIOE_CLK_ENABLE()#defineSPIx_FORCE_RESET()__HAL_RCC_SPI4_FORCE_RESET()#defineSPIx_RELEASE_RESET()__HAL_RCC_SPI4_RELEASE_RESET()/* Definition for SPIx Pins */#defineSPIx_SCK_PINGPIO_PIN_2#defineSPIx_SCK_GPIO_PORTGPIOE#defineSPIx_SCK_AFGPIO_AF5_SPI4#defineSPIx_MISO_PINGPIO_PIN_5#defineSPIx_MISO_GPIO_PORTGPIOE#defineSPIx_MISO_AFGPIO_AF5_SPI4#defineSPIx_MOSI_PINGPIO_PIN_6#defineSPIx_MOSI_GPIO_PORTGPIOE#defineSPIx_MOSI_AFGPIO_AF5_SPI4/* Definition for SPIx's NVIC */#defineSPIx_IRQnSPI4_IRQn#defineSPIx_IRQHandlerSPI4_IRQHandler/* Size of buffer */#defineBUFFERSIZE(COUNTOF(aTxBuffer)-1)/* Exported macro ------------------------------------------------------------*/#defineCOUNTOF(__BUFFER__)(sizeof(__BUFFER__)/sizeof(*(__BUFFER__)))20 defines/* Exported functions ------------------------------------------------------- *//* ... */#endif/* __MAIN_H */