Add PMU IRQ handling

This commit is contained in:
Jonathan Bennett
2026-06-23 09:05:39 -05:00
parent 7808c81649
commit da5ed9f6e9
2 changed files with 6 additions and 3 deletions
+4 -2
View File
@@ -1063,8 +1063,10 @@ int32_t Power::runOnce()
// cancel action also turns the screen on and off.
if (PMU->isPekeyShortPressIrq()) {
LOG_INFO("Input: Corona Button Click");
InputEvent event = {.inputEvent = (input_broker_event)INPUT_BROKER_CANCEL, .kbchar = 0, .touchX = 0, .touchY = 0};
inputBroker->injectInputEvent(&event);
if (inputBroker) {
InputEvent event = {.inputEvent = (input_broker_event)INPUT_BROKER_CANCEL, .kbchar = 0, .touchX = 0, .touchY = 0};
inputBroker->injectInputEvent(&event);
}
}
#endif
/*
+2 -1
View File
@@ -48,7 +48,8 @@
#define DAC_I2S_MCLK -1 // TODO
#define HAS_AXP2101
// #define PMU_IRQ 7
#define PMU_IRQ 7
#define PMU_POWER_BUTTON_IS_CANCEL
#define HAS_DRV2605 1
#define I2C_SDA 3