Skip to content
Snippets Groups Projects
Verified Commit 558f88cc authored by rahix's avatar rahix
Browse files

refactor(api): Use CMSIS flags instead of raw value


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 083c1064
No related branches found
No related tags found
No related merge requests found
#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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment