This commit is contained in:
zogodo
2020-02-17 21:48:39 +08:00
parent a6ec6cb8c0
commit 90ef982c29
3 changed files with 13 additions and 12 deletions

View File

@@ -69,7 +69,7 @@ static void PowerIrqHandler(void* arg)
void PowerInit(void)
{
ota_log("user_power_init");
power_log("PowerInit");
MicoGpioInitialize(POWER, INPUT_PULL_UP);
MicoGpioEnableIRQ(POWER, IRQ_TRIGGER_FALLING_EDGE, PowerIrqHandler, NULL);
}