mirror of
https://git.aixiao.me/aixiao/Danger-alarm.git
synced 2025-07-29 19:13:39 +08:00
initial
This commit is contained in:
21
SOFTWARE-FreeRTOS/Source/ZC13.hpp
Normal file
21
SOFTWARE-FreeRTOS/Source/ZC13.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef ZC13_HPP
|
||||
#define ZC13_HPP
|
||||
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include "pico/stdlib.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 int ZC13_INIT();
|
||||
extern int ZC13(const char *model);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user