Skip to content

Commit d928e45

Browse files
committed
Review improvements
1 parent 5551101 commit d928e45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rp2_common/pico_multicore/multicore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void multicore_launch_core1_raw(void (*entry)(void), uint32_t *sp, uint32_t vect
203203
}
204204

205205
static mutex_t lockout_mutex;
206-
static io_rw_32 lockout_request_id = 0;
206+
static volatile uint32_t lockout_request_id = 0;
207207

208208
// note this method is in RAM because lockout is used when writing to flash
209209
// it only makes inline calls
@@ -284,7 +284,7 @@ static bool multicore_lockout_handshake(uint32_t request_id, absolute_time_t unt
284284
return rc;
285285
}
286286

287-
static uint32_t update_lockout_request_id() {
287+
static uint32_t update_lockout_request_id(void) {
288288
// generate new number and then update shared variable
289289
uint32_t new_request_id = lockout_request_id + 1;
290290
lockout_request_id = new_request_id;

0 commit comments

Comments
 (0)