2022-08-14 10:29:05 +08:00
|
|
|
/*
|
2022-08-17 00:43:24 +08:00
|
|
|
* Copyright (c) 2006-2022, Synwit Technology Co.,Ltd.
|
2022-08-14 10:29:05 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
2022-08-17 00:43:24 +08:00
|
|
|
* 2018-12-10 Zohar_Lee first version
|
|
|
|
* 2020-07-10 lik rewrite
|
2022-08-14 10:29:05 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DRV_SPI_H__
|
|
|
|
#define __DRV_SPI_H__
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
|
|
|
|
//cannot be used before completion init
|
|
|
|
rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name, GPIO_TypeDef *GPIOx, uint32_t n);
|
|
|
|
int swm_spi_init(void);
|
|
|
|
|
|
|
|
#endif /* __DRV_SPI_H__ */
|