加入大疆C板例程bsp
This commit is contained in:
11
bsp/boards/bsp_spi.h
Normal file
11
bsp/boards/bsp_spi.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user