添加boot0获取唤醒源

This commit is contained in:
2025-02-24 17:04:54 +08:00
parent b10824bc07
commit 47d6d64341
5 changed files with 152 additions and 1 deletions

View File

@@ -3,6 +3,10 @@
#include <arch/gpio.h>
#ifdef CFG_SET_BACKLIGHT
#define CFG_SET_GPIO_NEW 1
#endif
#define OUPUT_HIGH_LEVEL (1)
#define OUPUT_LOW_LEVEL (0)
#define PORT_NO_USE (0xFF)

View File

@@ -40,6 +40,11 @@ typedef struct serial_hw
/* Data Length: 0 - 5bits; 1 - 6bits; 2 - 7bits; 3 - 8bit */
#define DLEN 3
#ifdef CFG_GET_WKSRC
void sunxi_serial_M0_init(int uart_port, void *gpio_cfg, int gpio_max);
int has_sunxi_serial_M0_send(unsigned char *buff, size_t len);
int has_sunxi_serial_M0_get(unsigned char *buff, size_t len);
#endif
void sunxi_serial_init(int uart_port, void *gpio_cfg, int gpio_max);
void sunxi_serial_putc (char c);