Add PMU IRQ handling
This commit is contained in:
+4
-2
@@ -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
|
||||
/*
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user