This commit is contained in:
2024-06-03 16:27:41 +08:00
commit b7ab42dd94
625 changed files with 214806 additions and 0 deletions

12
SOFTWARE/Source/common.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef COMMOM_H
#define COMMOM_H
#include "hardware/pio.h"
static inline bool uart_rx_program_available(PIO pio, uint sm)
{
return !pio_sm_is_rx_fifo_empty(pio, sm);
}
#endif