mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-11 01:38:26 +02:00
card_init_core1() shall be called from every thread launched on core1.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -150,15 +150,14 @@ static int usb_event_handle() {
|
||||
}
|
||||
|
||||
extern void low_flash_init();
|
||||
static void card_init_core1(void) {
|
||||
low_flash_init();
|
||||
void card_init_core1() {
|
||||
low_flash_init_core1();
|
||||
}
|
||||
|
||||
size_t finished_data_size = 0;
|
||||
|
||||
void card_start(void (*func)(void)) {
|
||||
multicore_reset_core1();
|
||||
card_init_core1();
|
||||
multicore_launch_core1(func);
|
||||
led_set_blink(BLINK_MOUNTED);
|
||||
}
|
||||
|
||||
@@ -58,5 +58,6 @@ extern uint32_t usb_write_offset(uint16_t len, uint16_t offset);
|
||||
extern void usb_clear_rx();
|
||||
extern size_t finished_data_size;
|
||||
extern void usb_set_timeout_counter(uint32_t v);
|
||||
extern void card_init_core1();
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user