Skip to content

Commit

Permalink
Create a-b-c-efficient-dual-core.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
hpssjellis authored May 28, 2021
1 parent de32984 commit 73f4392
Showing 1 changed file with 30 additions and 0 deletions.
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

}

0 comments on commit 73f4392

Please sign in to comment.