summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/usb_pd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 6950e8065b..227e53f9e2 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -21,6 +21,8 @@
#if CONFIG_USB_PD_PORT_COUNT == 1
#ifdef HAS_TASK_PD
#define PD_PORT_TO_TASK_ID(port) TASK_ID_PD
+#elif defined(HAS_TASK_PD_C0)
+#define PD_PORT_TO_TASK_ID(port) TASK_ID_PD_C0
#else
#define PD_PORT_TO_TASK_ID(port) -1 /* dummy task ID */
#endif