Files
mr-library/bsp/st/driver/drv_spi.h
2023-10-15 14:15:41 +08:00

34 lines
529 B
C

/*
* Copyright (c) 2023, mr-library Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2023-10-8 MacRsh first version
*/
#ifndef _DRV_SPI_H_
#define _DRV_SPI_H_
#include "device/spi.h"
#include "mrboard.h"
#if (MR_CFG_SPI == MR_CFG_ENABLE)
/**
* @struct Driver spi bus data
*/
struct drv_spi_bus_data
{
const char *name;
SPI_HandleTypeDef handle;
SPI_TypeDef *instance;
IRQn_Type irq_type;
};
#endif
#endif /* _DRV_SPI_H_ */