mirror of
https://git.aixiao.me/aixiao/Danger-alarm.git
synced 2025-07-29 19:13:39 +08:00
Add FreeRTOS
This commit is contained in:
22
SOFTWARE-FreeRTOS/Source/DS18B20.hpp
Normal file
22
SOFTWARE-FreeRTOS/Source/DS18B20.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef DS18B20_H
|
||||
#define DS18B20_H
|
||||
|
||||
/* Scheduler include files. */
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "semphr.h"
|
||||
#include "queue.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdbool.h>
|
||||
#include "pico/stdlib.h"
|
||||
#include "hardware/gpio.h"
|
||||
#include "../../SOFTWARE/Lib/pico-onewire/api/one_wire.h"
|
||||
|
||||
#define DS18B20_PIN 15 // DS18B20 引脚
|
||||
|
||||
|
||||
extern QueueHandle_t xQueue;
|
||||
extern void DS18B20(void *pvParameters);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user