Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting committed Feb 8, 2025
1 parent 8d7e843 commit 138dc37
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sw/example/demo_dual_core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ int main_core1(void) {
neorv32_rte_setup();

// print message from core 0
while(1) {
spin_lock();
neorv32_uart0_printf("Hello world! This is core 1 running!\n");
spin_unlock();
}

return 0; // return to crt0 and halt
}
Expand Down Expand Up @@ -111,11 +109,9 @@ int main(void) {

// UART0 is used by both cores so it is a shared resource. We need to ensure exclusive
// access by using a simple spinlock (based on atomic memory operations).
while(1){
spin_lock();
neorv32_uart0_printf("This is a message from core 0!\n");
spin_unlock();
}


return 0; // return to crt0 and halt
Expand Down

0 comments on commit 138dc37

Please sign in to comment.