#ifndef BSP_SPI_H #define BSP_SPI_H #include "struct_typedef.h" #include "stm32f4xx_hal.h" extern SPI_HandleTypeDef hspi2; extern void SPI1_DMA_init(uint32_t tx_buf, uint32_t rx_buf, uint16_t num); extern void SPI1_DMA_enable(uint32_t tx_buf, uint32_t rx_buf, uint16_t ndtr); #endif