Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
PetePriority
firmware
Commits
2b731698
Verified
Commit
2b731698
authored
Jun 13, 2019
by
Rahix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(dual-core): Don't use a SysTick based delay
parent
b4a2c87c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
hw-tests/dual-core/core1.c
hw-tests/dual-core/core1.c
+2
-2
No files found.
hw-tests/dual-core/core1.c
View file @
2b731698
#include "board.h"
#include "gpio.h"
#include "
mxc_delay
.h"
#include "
tmr_utils
.h"
static
const
gpio_cfg_t
motor_pin
=
{
PORT_0
,
PIN_8
,
GPIO_FUNC_OUT
,
GPIO_PAD_NONE
};
...
...
@@ -11,7 +11,7 @@ int main(void)
for
(
int
i
=
0
;
1
;
i
++
)
{
__asm
volatile
(
"wfe"
);
printf
(
"core1: Hello! %d
\n
"
,
i
);
mxc_delay
(
300000
0
);
TMR_Delay
(
MXC_TMR1
,
SEC
(
1
),
0
);
printf
(
"core1: Waking up core0
\n
"
);
__asm
volatile
(
"sev"
);
__asm
volatile
(
"wfe"
);
...
...
Write
Preview
Markdown
is supported
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