Danger-alarm/SOFTWARE-FreeRTOS/Source/main.hpp
aixiao f4bd30a4dc 这次提交基于FreeRTOS能正常运行。
还存在微小问题,由于CO2传感器必须通过看门狗重启一次后才能正常,这个问题还没解决。(喂狗只在CO2函数内,保证能重启RP2040)
2024-08-11 22:11:50 +08:00

20 lines
372 B
C++

#ifndef MAIN_H
#define MAIN_H
#include <stdio.h>
#include <string.h>
#include "pico/stdlib.h"
#include "hardware/gpio.h"
#include "hardware/clocks.h"
#include "hardware/watchdog.h"
#include "pico/multicore.h"
#include "hardware/i2c.h"
#include "pico/binary_info.h"
#include "hardware/uart.h"
#include "hardware/pwm.h"
#include "hardware/adc.h"
#define BUFER 256
#endif