-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a-b-c-efficient-dual-core.ino
- Loading branch information
1 parent
de32984
commit 73f4392
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...portentaH7-examples/a-b-utilities/a-b-c-efficient-dual-core/a-b-c-efficient-dual-core.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Efficient Dual Core program setup | ||
// Good if lots of the code is duplicated | ||
// If uploaded to the M7 Core erases what was on it and boots the M4 core | ||
// If uploaded to the M4 Core erases what was on it. | ||
|
||
//////////////////// Mixed M7 and M4 Core Programing ///////////////////// | ||
|
||
void setup() { | ||
|
||
#ifdef CORE_CM7 | ||
bootM4(); | ||
#endif | ||
|
||
#ifdef CORE_CM4 | ||
// only M4 here | ||
#endif | ||
|
||
} | ||
|
||
void loop() { | ||
|
||
#ifdef CORE_CM7 | ||
// only M7 Here | ||
#endif | ||
|
||
#ifdef CORE_CM4 | ||
// only M4 here | ||
#endif | ||
|
||
} |