2018-11-29 17:00:22 +08:00
|
|
|
/*
|
2023-01-09 10:20:16 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2018-11-29 17:00:22 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
2019-01-22 10:00:45 +08:00
|
|
|
* 2018-11-27 zylx first version
|
2018-11-29 17:00:22 +08:00
|
|
|
*/
|
2021-03-08 22:40:39 +08:00
|
|
|
|
2020-09-03 14:59:18 +08:00
|
|
|
#ifndef __DRV_QSPI_H__
|
|
|
|
#define __DRV_QSPI_H__
|
|
|
|
|
2018-11-29 17:00:22 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
|
2020-09-03 14:59:18 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-11-29 17:00:22 +08:00
|
|
|
rt_err_t stm32_qspi_bus_attach_device(const char *bus_name, const char *device_name, rt_uint32_t pin, rt_uint8_t data_line_width, void (*enter_qspi_mode)(), void (*exit_qspi_mode)());
|
|
|
|
|
2020-09-03 14:59:18 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2020-09-04 07:59:37 +08:00
|
|
|
#endif /* __DRV_QSPI_H__ */
|