Danger-alarm/SOFTWARE/Source/common.h
2024-06-03 16:27:41 +08:00

13 lines
184 B
C

#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