/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-08-23 Mr.Tiger first version * 2022-12-7 Vandoul ADD sci spi */ #ifndef __DRV_SCI_SPI_H__ #define __DRV_SCI_SPI_H__ #include #include #include "hal_data.h" #include "board.h" #include #include #include #ifdef __cplusplus extern "C" { #endif #ifdef R_SCI_SPI_H struct ra_sci_spi_handle { const char bus_name[RT_NAME_MAX]; const spi_cfg_t *spi_cfg_t; const sci_spi_instance_ctrl_t *spi_ctrl_t; }; struct ra_sci_spi { rt_uint32_t cs_pin; struct ra_sci_spi_handle *ra_spi_handle_t; struct rt_spi_configuration *rt_spi_cfg_t; struct rt_spi_bus bus; }; #endif #ifdef __cplusplus } #endif /* stm32 spi dirver class */ #endif /*__DRV_SPI_H__ */