Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob
firmware
Commits
2b731698
Verified
Commit
2b731698
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
fix(dual-core): Don't use a SysTick based delay
parent
b4a2c87c
Branches
ch3/dual-core
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hw-tests/dual-core/core1.c
+2
-2
2 additions, 2 deletions
hw-tests/dual-core/core1.c
with
2 additions
and
2 deletions
hw-tests/dual-core/core1.c
+
2
−
2
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"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment