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

30 lines
608 B
C++
Raw Normal View History

2024-06-03 18:59:42 +08:00
#ifndef ZC13_H
#define ZC13_H
/* Scheduler include files. */
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "queue.h"
2024-06-03 16:27:41 +08:00
2024-08-23 08:08:37 +08:00
#include <cstring>
2024-06-03 16:27:41 +08:00
#include <stdio.h>
#include <strings.h>
#include "pico/stdlib.h"
#include "hardware/watchdog.h"
2024-06-03 16:27:41 +08:00
#include "hardware/pio.h"
#include "uart_tx.pio.h"
2024-06-04 09:54:09 +08:00
#include "uart_rx.pio.h"
2024-06-03 16:27:41 +08:00
#define ZC13_PIO pio0
2024-06-04 09:54:09 +08:00
#define ZC13_PIO_TX_PIN 19 // 接ZC13 4 TX PIN
#define ZC13_PIO_RX_PIN 20 // 接ZC13 5 RX PIN
2024-06-03 16:27:41 +08:00
#define ZC13_PIO_SM_TX 0
#define ZC13_PIO_SM_RX 1
#define ZC13_PIO_SERIAL_BAUD 9600
#define BUFER 256
2024-06-03 18:59:42 +08:00
extern void CH4(void *pvParameters);
2024-06-03 16:27:41 +08:00
#endif