添加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

@@ -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);