/** ****************************************************************************** * @file SPI/SPI_FullDuplex_AdvComPolling/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"stm32f4xx_nucleo_144.h"Includes/* Exported types ------------------------------------------------------------*//* Exported constants --------------------------------------------------------*//* User can use this section to tailor SPIx instance used and associated resources *//* ... *//* Definition for SPIx clock resources */#defineSPIxSPI1#defineSPIx_CLK_ENABLE()__HAL_RCC_SPI1_CLK_ENABLE()#defineSPIx_SCK_GPIO_CLK_ENABLE()__HAL_RCC_GPIOB_CLK_ENABLE()#defineSPIx_MISO_GPIO_CLK_ENABLE()__HAL_RCC_GPIOA_CLK_ENABLE()#defineSPIx_MOSI_GPIO_CLK_ENABLE()__HAL_RCC_GPIOA_CLK_ENABLE()#defineSPIx_FORCE_RESET()__HAL_RCC_SPI1_FORCE_RESET()#defineSPIx_RELEASE_RESET()__HAL_RCC_SPI1_RELEASE_RESET()/* Definition for SPIx Pins */#defineSPIx_SCK_PINGPIO_PIN_3#defineSPIx_SCK_GPIO_PORTGPIOB#defineSPIx_SCK_AFGPIO_AF5_SPI1#defineSPIx_MISO_PINGPIO_PIN_6#defineSPIx_MISO_GPIO_PORTGPIOA#defineSPIx_MISO_AFGPIO_AF5_SPI1#defineSPIx_MOSI_PINGPIO_PIN_7#defineSPIx_MOSI_GPIO_PORTGPIOA#defineSPIx_MOSI_AFGPIO_AF5_SPI1/* Definition for SPIx's NVIC */#defineSPIx_IRQnSPI1_IRQn#defineSPIx_IRQHandlerSPI1_IRQHandler/* Size of buffer */#defineBUFFERSIZE(COUNTOF(aTxBuffer)-1)/* Exported macro ------------------------------------------------------------*/#defineCOUNTOF(__BUFFER__)(sizeof(__BUFFER__)/sizeof(*(__BUFFER__)))20 defines/* Exported functions ------------------------------------------------------- *//* ... */#endif/* __MAIN_H */