1.新增ST驱动。

This commit is contained in:
MacRsh
2023-12-03 02:18:25 +08:00
parent c984ade934
commit 36ad8be702
8 changed files with 1491 additions and 0 deletions

34
bsp/st/driver/drv_spi.h Normal file
View File

@@ -0,0 +1,34 @@
/*
* @copyright (c) 2023, MR Development Team
*
* @license SPDX-License-Identifier: Apache-2.0
*
* @date 2023-11-10 MacRsh First version
*/
#ifndef _DRV_SPI_H_
#define _DRV_SPI_H_
#include "include/device/spi.h"
#include "mr_board.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifdef MR_USING_SPI
struct drv_spi_bus_data
{
SPI_HandleTypeDef handle;
SPI_TypeDef *instance;
IRQn_Type irq;
};
#endif /* MR_USING_SPI */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _DRV_SPI_H_ */