better font rendering and start of z80 access
This commit is contained in:
20
core_comm.c
Normal file
20
core_comm.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "core_comm.h"
|
||||
|
||||
#include "pico/multicore.h"
|
||||
#include "pico/platform.h"
|
||||
|
||||
bool core1_to_core0_try_write(uint32_t data) {
|
||||
hard_assert(get_core_num() == 1);
|
||||
return multicore_fifo_push_timeout_us(data, 0);
|
||||
}
|
||||
|
||||
void core1_to_core0_write_blocking(uint32_t data) {
|
||||
hard_assert(get_core_num() == 1);
|
||||
multicore_fifo_push_blocking(data);
|
||||
}
|
||||
|
||||
bool core0_try_read_from_core1(uint32_t *data) {
|
||||
hard_assert(get_core_num() == 0);
|
||||
hard_assert(data != NULL);
|
||||
return multicore_fifo_pop_timeout_us(0, data);
|
||||
}
|
||||
Reference in New Issue
Block a user