blob: aeb051b29bef6e241a79eb64df228c6b249a4e81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-10-19 Nations first version
*/
#ifndef __DRV_SPI_H__
#define __DRV_SPI_H__
#include <rthw.h>
#include <rtthread.h>
#include <board.h>
#ifdef __cplusplus
extern "C" {
#endif
struct n32_spi_cs
{
GPIO_Module* GPIOx;
uint32_t GPIO_Pin;
};
int rt_hw_spi_init(void);
#ifdef __cplusplus
}
#endif
#endif /* __DRV_SPI_H__ */
|