Skip to content

Commit 3eaf9d5

Browse files
committed
fixup! rp2350/riscv: multicore support
1 parent f1413d6 commit 3eaf9d5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cpu/rp2350_common/core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ void core1_init(core_1_fn_t function, void *arg) {
7676
/** We iterate through the cmd_sequence till we covered every param
7777
*(seq does not increase with each loop, thus we need to while loop this)
7878
*/
79-
while(seq < 6) {
79+
while (seq < 6) {
8080
uint32_t cmd = cmd_sequence[seq];
8181
/* If the cmd is 0 we need to drain the READ FIFO first*/
82-
if(cmd == 0) {
82+
if (cmd == 0) {
8383
/**
8484
* The official SDK does this
8585
* ```c
@@ -89,7 +89,7 @@ void core1_init(core_1_fn_t function, void *arg) {
8989
* fifo_rvalid checks whether rx fifo is empty and then the value
9090
* gets discarded (called multicore_fifo_drain in chapter 5.3)
9191
*/
92-
while(SIO->FIFO_ST & 1<<SIO_FIFO_READ_VALID_BIT) {
92+
while (SIO->FIFO_ST & 1<<SIO_FIFO_READ_VALID_BIT) {
9393
(void) SIO->FIFO_RD; /* Table 39 FIFO_RD*/
9494
};
9595

@@ -114,7 +114,7 @@ void core1_init(core_1_fn_t function, void *arg) {
114114

115115
/* This is eq. to the SDK multicore_fifo_pop_blocking_inline*/
116116
/* We check whether there are events */
117-
while(!(SIO->FIFO_ST & 1<<SIO_FIFO_READ_VALID_BIT)) {
117+
while (!(SIO->FIFO_ST & 1<<SIO_FIFO_READ_VALID_BIT)) {
118118
/* If not we simply wait,
119119
* fun fact, it appears like WFE is not optional in this scenario
120120
* not using wfe causes a double fault crash

cpu/rp2350_common/include/multicore.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* @author Tom Hert <[email protected]>
1616
*/
1717

18-
1918
#include "periph_cpu.h"
2019

2120
#ifdef __cplusplus

0 commit comments

Comments
 (0)