@@ -41,6 +41,12 @@ void rp2040.resumeOtherCore()
41
41
42
42
Resumes processing in the other core, where it left off.
43
43
44
+
45
+ void rp2040.restartCore1()
46
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
47
+
48
+ Hard resets Core1 from Core 0 and restarts its operation from ``setup1() ``.
49
+
44
50
Communicating Between Cores
45
51
---------------------------
46
52
@@ -50,23 +56,23 @@ use the following functions to access a software-managed, multicore safe
50
56
FIFO.
51
57
52
58
void rp2040.fifo.push(uint32_t)
53
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
59
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54
60
55
61
Pushes a value to the other core. Will block if the FIFO is full.
56
62
57
63
bool rp2040.fifo.push_nb(uint32_t)
58
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59
65
60
66
Pushes a value to the other core. If the FIFO is full, returns ``false ``
61
67
immediately and doesn't block. If the push is successful, returns ``true ``.
62
68
63
69
uint32_t rp2040.fifo.pop()
64
- ~~~~~~~~~~~~~~~~~~~~~
70
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
65
71
66
72
Reads a value from this core's FIFO. Blocks until one is available.
67
73
68
74
bool rp2040.fifo.pop_nb(uint32_t *dest)
69
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
75
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70
76
71
77
Reads a value from this core's FIFO and places it in dest. Will return
72
78
``true `` if successful, or ``false `` if the pop would block.
0 commit comments