fix vbus unplug detection
authorSnickerSun <snickersun@163.com>
Tue, 30 Jan 2024 07:30:27 +0000 (15:30 +0800)
committerSnickerSun <snickersun@163.com>
Tue, 30 Jan 2024 07:30:27 +0000 (15:30 +0800)
code/sdk/drivers/chips/brandy/porting/include/button_porting.h

index 1c2337b..31f0e4c 100755 (executable)
@@ -46,8 +46,8 @@ extern "C" {
 #define WKUP_SYSTICK_MASK       0x2
 #define WKUP_PWRON_MASK         0x3
 #define WKUP_VBUS_EN_MASK       0x4
-#define ULP_WKUP_INT_EN_MASK    0x1C
-#define ULP_WKUP_INT_CLR_MASK   0x1C
+#define ULP_WKUP_INT_EN_MASK    0x3C
+#define ULP_WKUP_INT_CLR_MASK   0x3C
 #define ULP_INT_CLEAR_DELAY     100
 #define PWRON_PD_MODE_POS4      0x4
 #define PWRON_TM_MODE_POS0      0x0