1.loader升级改为插入usb时可以使用test升级
This commit is contained in:
parent
a115f9483c
commit
97ca9623e3
|
@ -40,6 +40,7 @@
|
||||||
#define GPIO_FASTBOOT_KEY GPIO_KEY_TEST
|
#define GPIO_FASTBOOT_KEY GPIO_KEY_TEST
|
||||||
#define GPIO_SPECIAL_KEY GPIO_KEY_TEST
|
#define GPIO_SPECIAL_KEY GPIO_KEY_TEST
|
||||||
#define GPIO_SPECIAL_KEY2 GPIO_ISP_KEY_DET
|
#define GPIO_SPECIAL_KEY2 GPIO_ISP_KEY_DET
|
||||||
|
#define GPIO_SPECIAL_USB D_GPIO_7
|
||||||
/* Unknown */
|
/* Unknown */
|
||||||
#else
|
#else
|
||||||
#error "Unknown Model"
|
#error "Unknown Model"
|
||||||
|
@ -106,7 +107,7 @@ static BOOL prj_isSpecialKeyPressed(void)
|
||||||
debug_msg("GPIO_SPECIAL_KEY2 0\r\n");
|
debug_msg("GPIO_SPECIAL_KEY2 0\r\n");
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
if (!gpio_getPin(GPIO_SPECIAL_KEY)) {
|
if ((!gpio_getPin(GPIO_SPECIAL_KEY)) && (gpio_getPin(GPIO_SPECIAL_USB))) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else if(!(gpio_getPin(GPIO_SPECIAL_KEY2))){
|
else if(!(gpio_getPin(GPIO_SPECIAL_KEY2))){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user