From 558f88cc500f07b37d8d2060608a0aa7745ab7df Mon Sep 17 00:00:00 2001 From: Rahix <rahix@rahix.de> Date: Thu, 4 Jul 2019 15:19:35 +0200 Subject: [PATCH] refactor(api): Use CMSIS flags instead of raw value Signed-off-by: Rahix <rahix@rahix.de> --- epicardium/api/dispatcher.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/epicardium/api/dispatcher.c b/epicardium/api/dispatcher.c index a6e5cf415..38b61149a 100644 --- a/epicardium/api/dispatcher.c +++ b/epicardium/api/dispatcher.c @@ -1,6 +1,7 @@ #include <stdlib.h> #include "sema.h" #include "api/dispatcher.h" +#include "max32665.h" int api_dispatcher_init() { @@ -13,7 +14,9 @@ int api_dispatcher_init() * Enable TX events for both cores. * TODO: Is this the right place? */ - MXC_GCR->evten |= 0x24; + MXC_GCR->evten |= 0 + | MXC_F_GCR_EVTEN_CPU0TXEVENT + | MXC_F_GCR_EVTEN_CPU1TXEVENT; return ret; } -- GitLab