Files
Simba-ELCT-FrameWork/bsp/boards/bsp_spi.h
2026-04-12 20:34:47 +08:00

12 lines
286 B
C

#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