Verified Commit 558f88cc authored by Rahix's avatar Rahix
Browse files

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


Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 083c1064
#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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment