diff options
Diffstat (limited to 'include/usb_charge.h')
-rw-r--r-- | include/usb_charge.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/usb_charge.h b/include/usb_charge.h index de65725d0a..46ba725b95 100644 --- a/include/usb_charge.h +++ b/include/usb_charge.h @@ -49,12 +49,12 @@ int usb_charge_set_mode(int usb_port_id, enum usb_charge_mode mode, enum usb_suspend_charge inhibit_charge); #ifdef HAS_TASK_USB_CHG_P0 -#define USB_CHG_EVENT_BC12 TASK_EVENT_CUSTOM(1) -#define USB_CHG_EVENT_VBUS TASK_EVENT_CUSTOM(2) -#define USB_CHG_EVENT_INTR TASK_EVENT_CUSTOM(4) -#define USB_CHG_EVENT_DR_UFP TASK_EVENT_CUSTOM(8) -#define USB_CHG_EVENT_DR_DFP TASK_EVENT_CUSTOM(16) -#define USB_CHG_EVENT_CC_OPEN TASK_EVENT_CUSTOM(32) +#define USB_CHG_EVENT_BC12 TASK_EVENT_CUSTOM_BIT(0) +#define USB_CHG_EVENT_VBUS TASK_EVENT_CUSTOM_BIT(1) +#define USB_CHG_EVENT_INTR TASK_EVENT_CUSTOM_BIT(2) +#define USB_CHG_EVENT_DR_UFP TASK_EVENT_CUSTOM_BIT(3) +#define USB_CHG_EVENT_DR_DFP TASK_EVENT_CUSTOM_BIT(4) +#define USB_CHG_EVENT_CC_OPEN TASK_EVENT_CUSTOM_BIT(5) #endif /* |