2017-12-04 18:52:02 +08:00
|
|
|
/*
|
2021-03-29 07:20:47 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2017-12-04 18:52:02 +08:00
|
|
|
*
|
2021-03-29 07:20:47 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2017-12-04 18:52:02 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2017-12-04 Haley the first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SPI_H_
|
|
|
|
#define __SPI_H_
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
2021-03-29 07:20:47 +08:00
|
|
|
/* 片选信号结构声明 */
|
2017-12-04 18:52:02 +08:00
|
|
|
struct am_spi_cs
|
|
|
|
{
|
|
|
|
rt_uint32_t chip_select;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief External function definitions
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
int yr_hw_spi_init(void);
|
|
|
|
|
|
|
|
#endif // __SPI_H_
|