28 lines
571 B
C++
28 lines
571 B
C++
#ifndef ZC13_H
|
|
#define ZC13_H
|
|
|
|
/* Scheduler include files. */
|
|
#include "FreeRTOS.h"
|
|
#include "task.h"
|
|
#include "semphr.h"
|
|
#include "queue.h"
|
|
|
|
#include <stdio.h>
|
|
#include <strings.h>
|
|
#include "pico/stdlib.h"
|
|
#include "hardware/watchdog.h"
|
|
#include "hardware/pio.h"
|
|
#include "uart_tx.pio.h"
|
|
#include "uart_rx.pio.h"
|
|
|
|
#define ZC13_PIO pio0
|
|
#define ZC13_PIO_TX_PIN 19 // 接ZC13 4 TX PIN
|
|
#define ZC13_PIO_RX_PIN 20 // 接ZC13 5 RX PIN
|
|
#define ZC13_PIO_SM_TX 0
|
|
#define ZC13_PIO_SM_RX 1
|
|
#define ZC13_PIO_SERIAL_BAUD 9600
|
|
|
|
extern void CH4(void *pvParameters);
|
|
|
|
#endif
|