mirror of
https://git.aixiao.me/aixiao/Danger-alarm.git
synced 2025-07-29 19:13:39 +08:00
Optimization of RP2040 C/C++SDK combined with FreeRTOS
This commit is contained in:
31
SOFTWARE-FreeRTOS/Source/ZE07CO.hpp
Normal file
31
SOFTWARE-FreeRTOS/Source/ZE07CO.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef ZE07CO_H
|
||||
#define ZE07CO_H
|
||||
|
||||
/* Scheduler include files. */
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "semphr.h"
|
||||
#include "queue.h"
|
||||
|
||||
#include "pico/stdlib.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 UART0 uart0
|
||||
#define BAUD_RATE 9600
|
||||
#define DATA_BITS 8
|
||||
#define STOP_BITS 1
|
||||
#define PARITY UART_PARITY_NONE
|
||||
#define UART0_TX_PIN 1 // T
|
||||
#define UART0_RX_PIN 0 // R
|
||||
|
||||
extern void CO(void *pvParameters);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user