添加boot0获取唤醒源
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user