2024-04-03 10:05:55 +08:00

29 lines
483 B
C

#include <stdio.h>
#include "config.h"
#include "ADC.h"
#include "Exti.h"
#include "GPIO.h"
#include "UART.h"
#include "WDT.h"
#include "queue.h"
#include "timer.h"
#include "PWM.h"
#include "task.h"
int main() { // MCU STC8G1K08A 晶振频率 24Mhz
ADC_config();
Exti_config();
GPIO_config();
InitQueue(&ntcQueue);
PWM_config();
Timer_config();
UART_config();
WDT_config();
EA = 1;
while (1) {
task_handle();
WDT_Clear(); // 喂狗
}
}