Danger-alarm/SOFTWARE-FreeRTOS/Source/common.hpp

24 lines
488 B
C++
Raw Normal View History

2024-06-03 16:27:41 +08:00
#ifndef COMMOM_H
#define COMMOM_H
/* Scheduler include files. */
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
2024-06-03 18:59:42 +08:00
#include "queue.h"
2024-06-03 16:27:41 +08:00
#include <stdio.h>
#include "hardware/pio.h"
#define BUILD(fmt...) do { fprintf(stderr,"%s %s ",__DATE__,__TIME__); fprintf(stderr, ##fmt); } while(0)
static inline bool uart_rx_program_available(PIO pio, uint sm)
{
return !pio_sm_is_rx_fifo_empty(pio, sm);
}
2024-06-03 18:59:42 +08:00
extern void _printTaskStackHighWaterMark(const char *task_name);
2024-06-03 16:27:41 +08:00
#endif