#ifndef __SPI_H__ #define __SPI_H__ #ifdef __cplusplus extern "C" { #endif #include "stm32f4xx_hal.h" extern SPI_HandleTypeDef hspi1; #define SCLK_Pin GPIO_PIN_3 #define SCLK_GPIO_Port GPIOB #define DOUT1_Pin GPIO_PIN_4 #define DOUT1_GPIO_Port GPIOB void MX_SPI1_Init(void); uint8_t SPI_ReceiveData(SPI_HandleTypeDef* hspi); #ifdef __cplusplus } #endif #endif