This repository has been archived on 2025-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
torsion/User/app.c

23 lines
364 B
C

#include "app.h"
#include "board.h"
#include "uarts.h"
#include "sys.h"
#include <stdio.h>
#include <stdlib.h>
__IO app_t app; // APP全局变量
uint8_t cpu_percent = 0; // CPU使用率
uint8_t mem_percent = 0; // 内存使用率
void app_init(void)
{
motor_process_init();
flow_init(); // 流程初始化
}
void app_start(void)
{
flow_start();
}