23 lines
679 B
C
23 lines
679 B
C
#pragma once
|
||
|
||
|
||
/* Includes ----------------------------------------------------------------- */
|
||
#include <spi.h>
|
||
|
||
#include "bsp/bsp.h"
|
||
|
||
/* Exported constants ------------------------------------------------------- */
|
||
/* Exported macro ----------------------------------------------------------- */
|
||
/* Exported types ----------------------------------------------------------- */
|
||
|
||
/* 要添加使用SPI的新设备,需要先在此添加对应的枚举值 */
|
||
|
||
/* SPI实体枚举,与设备对应 */
|
||
typedef enum {
|
||
BSP_SPI_ADC,
|
||
} BSP_SPI_t;
|
||
|
||
/* Exported functions prototypes -------------------------------------------- */
|
||
SPI_HandleTypeDef *BSP_SPI_GetHandle(BSP_SPI_t spi);
|
||
|