T-Box Basic dev
Loading...
Searching...
No Matches
sys_gpio.h
Go to the documentation of this file.
1
10#ifndef SYS_GPIO_H
11#define SYS_GPIO_H
12
13#ifdef __cplusplus
14extern "C"
15{
16#endif
17
18// GPIO 定义
19#define SYS_GPIO_OUTPUT_HIGH 1
20#define SYS_GPIO_OUTPUT_LOW 0
21#define SYS_GPIO_MODULE_WAKEUP_MCU 54
22#define SYS_GPIO_MCU_WAKEUP_MODULE 50
23#define SYS_GPIO_MODULE_RESET_MCU 130
24#define SYS_GPIO_RESET_PA 129
25#define SYS_GPIO_MODULE_SDIO_DET 51
26#define SYS_GPIO_MODULE_UART_RTS1 31
27
28int sys_gpio_power_on_init(void);
29int sys_gpio_power_off_deinit(void);
30int sys_gpio_set_out_value(int gpio_num, int value);
31int sys_gpio_wakeup_mcu(void);
32int sys_gpio_reset_mcu(void);
33int sys_gpio_reset_pa_hard(void);
34
35#ifdef __cplusplus
36}
37#endif
38
39#endif /* SYS_GPIO_H */