/** ****************************************************************************** * @file SPI/SPI_FullDuplex_ComDMA/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()#defineDMAx_CLK_ENABLE()__HAL_RCC_DMA2_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 DMA */#defineSPIx_TX_DMA_CHANNELDMA_CHANNEL_4#defineSPIx_TX_DMA_STREAMDMA2_Stream1#defineSPIx_RX_DMA_CHANNELDMA_CHANNEL_4#defineSPIx_RX_DMA_STREAMDMA2_Stream0/* Definition for SPIx's NVIC */#defineSPIx_IRQnSPI2_IRQn#defineSPIx_IRQHandlerSPI2_IRQHandler#defineSPIx_DMA_TX_IRQnDMA2_Stream1_IRQn#defineSPIx_DMA_RX_IRQnDMA2_Stream0_IRQn#defineSPIx_DMA_TX_IRQHandlerDMA2_Stream1_IRQHandler#defineSPIx_DMA_RX_IRQHandlerDMA2_Stream0_IRQHandler/* Size of buffer */#defineBUFFERSIZE(COUNTOF(aTxBuffer)-1)/* Exported macro ------------------------------------------------------------*/#defineCOUNTOF(__BUFFER__)(sizeof(__BUFFER__)/sizeof(*(__BUFFER__)))29 defines/* Exported functions ------------------------------------------------------- *//* ... */#endif/* __MAIN_H */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.