summaryrefslogtreecommitdiff
path: root/common/usbc/usbc_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/usbc/usbc_task.c')
-rw-r--r--common/usbc/usbc_task.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/usbc/usbc_task.c b/common/usbc/usbc_task.c
index f34bdee088..48c53af3d2 100644
--- a/common/usbc/usbc_task.c
+++ b/common/usbc/usbc_task.c
@@ -32,6 +32,8 @@
#include "usbc_ppc.h"
#include "version.h"
+#define USBC_EVENT_TIMEOUT (5 * MSEC)
+
int tc_restart_tcpc(int port)
{
return tcpm_init(port);
@@ -162,7 +164,7 @@ void pd_task(void *u)
while (1) {
/* wait for next event/packet or timeout expiration */
- const uint32_t evt = task_wait_event(tc_get_timeout(port));
+ const uint32_t evt = task_wait_event(USBC_EVENT_TIMEOUT);
/* handle events that affect the state machine as a whole */
tc_event_check(port, evt);