Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
558f88cc
Verified
Commit
558f88cc
authored
Jul 04, 2019
by
Rahix
Browse files
refactor(api): Use CMSIS flags instead of raw value
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
083c1064
Changes
1
Hide whitespace changes
Inline
Side-by-side
epicardium/api/dispatcher.c
View file @
558f88cc
#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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment