File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/rp2_common/pico_multicore/include/pico Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ uint32_t multicore_fifo_pop_blocking(void);
119
119
120
120
bool multicore_fifo_pop_timeout_us (uint64_t timeout_us , uint32_t * out );
121
121
122
- /*! \brief Flush any data in the outgoing FIFO
122
+ /*! \brief Flush any data in the incoming FIFO
123
123
* \ingroup multicore_fifo
124
124
*
125
125
*/
@@ -130,9 +130,12 @@ static inline void multicore_fifo_drain(void) {
130
130
131
131
/*! \brief Clear FIFO interrupt
132
132
* \ingroup multicore_fifo
133
+ *
134
+ * Note that this only clears an interrupt that was caused by the ROE or WOF flags.
135
+ * To clear the VLD flag you need to use one of the 'pop' or 'drain' functions.
133
136
*/
134
137
static inline void multicore_fifo_clear_irq (void ) {
135
- // Write any value to clear any interrupts
138
+ // Write any value to clear the error flags
136
139
sio_hw -> fifo_st = 0xff ;
137
140
}
138
141
You can’t perform that action at this time.
0 commit comments