GPIO for SPI communication ST example is not set?
Dear ST Hello,
I am using the ST example for SPI communication for getting started with STM32F429i-discovery.
This the header of the main file.
******************************************************************************
* @file SPI/SPI_FullDuplex_ComPolling/Src/main.c
* @author MCD Application Team
* @brief This sample code shows how to use STM32F4xx SPI HAL API to transmit
* and receive a data buffer with a communication process based on
* Polling transfer.
* The communication is done using 2 Boards.
******************************************************************************This the link to the project:
STM32Cube_FW_F4_V1.24.0\Projects\STM32F429I-Discovery\Examples\SPI\SPI_FullDuplex_ComPolling\SW4STM32
My question is:
1/Does ST has configured the GPIO for Clk MOSI MISO and CS?
2/In the main.h file, there no definition for CS,
/* Definition for SPIx Pins */
#define SPIx_SCK_PIN GPIO_PIN_2
#define SPIx_SCK_GPIO_PORT GPIOE
#define SPIx_SCK_AF GPIO_AF5_SPI4
#define SPIx_MISO_PIN GPIO_PIN_5
#define SPIx_MISO_GPIO_PORT GPIOE
#define SPIx_MISO_AF GPIO_AF5_SPI4
#define SPIx_MOSI_PIN GPIO_PIN_6
#define SPIx_MOSI_GPIO_PORT GPIOE
#define SPIx_MOSI_AF GPIO_AF5_SPI4Does the CS for this device is an automatic CS?
Thank you in advance,
S.Tarik,
