配置BUTTON2 functionKey
authorSnickerSun <snickersun@163.com>
Tue, 26 Dec 2023 09:00:45 +0000 (17:00 +0800)
committerSnickerSun <snickersun@163.com>
Tue, 26 Dec 2023 09:00:45 +0000 (17:00 +0800)
code/sdk/application/brandy/brandy_recovery/input_app.c
code/sdk/application/brandy/brandy_standard/input_app.c
code/sdk/application/brandy/brandy_testsuite/input_app.c

index 4ee2132..40a1e9e 100755 (executable)
@@ -109,7 +109,7 @@ uint32_t g_button_press_time = BUTTON_DEFAULT_PRESS_TIME_1S;
 
 button_map_t g_brandy_button_pin_map[BUTTON_PIN_MAP_MAX] = {
     { PIN_NONE, BUTTON_PWR },
-    { PIN_NONE, BUTTON_1 },
+    { S_AGPIO_R10, BUTTON_1 },
     { PIN_NONE, BUTTON_2 },
     { PIN_NONE, BUTTON_3 },
     { PIN_NONE, BUTTON_4 },
index cf27bee..7c794d7 100755 (executable)
@@ -109,7 +109,7 @@ uint32_t g_button_press_time = BUTTON_DEFAULT_PRESS_TIME_1S;
 
 button_map_t g_brandy_button_pin_map[BUTTON_PIN_MAP_MAX] = {
     { PIN_NONE, BUTTON_PWR },
-    { PIN_NONE, BUTTON_1 },
+    { S_AGPIO_R10, BUTTON_1 },
     { PIN_NONE, BUTTON_2 },
     { PIN_NONE, BUTTON_3 },
     { PIN_NONE, BUTTON_4 },
index 1486c81..6ad0395 100755 (executable)
@@ -109,7 +109,7 @@ uint32_t g_button_press_time = BUTTON_DEFAULT_PRESS_TIME_1S;
 
 button_map_t g_brandy_button_pin_map[BUTTON_PIN_MAP_MAX] = {
     { PIN_NONE, BUTTON_PWR },
-    { PIN_NONE, BUTTON_1 },
+    { S_AGPIO_R10, BUTTON_1 },
     { PIN_NONE, BUTTON_2 },
     { PIN_NONE, BUTTON_3 },
     { PIN_NONE, BUTTON_4 },