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

53 lines
1.2 KiB
C

/**
* @file app.h
* @author: xxx
* @date: 2023-06-29 13:21:02
* @brief 应用层
* @copyright: Copyright (c) 2023 by xxx, All Rights Reserved.
*/
#ifndef __APP_H__
#define __APP_H__
#include "main.h"
#include "lib.h"
#include "board.h"
#include "delay.h"
#include "pid.h"
#include "entity.h"
#include "hart_frame.h"
#include "hart_frame_user.h"
#include "key.h" // 按键
#include "params.h" // 参数
#include "convert.h" // 转换
#include "diagnosis.h" // 诊断
#include "mode.h" // 工作模式
typedef enum
{
APP_UART_1,
APP_UART_2,
APP_UART_MAX,
} app_uart_e;
INTERNAL_EXTERN file_storage_t nvm1_file_storage; // 保存报警日志
extern void app_init(void);
extern void app_dinit(void);
extern void app_start(void);
extern void flow_init(void);
extern void flow_start(void);
extern void bootload_flow_start(void);
extern BOOL app_hart_init(void);
extern void app_hart_inspection(void);
extern void hart_uart_init(void);
extern void hart_uart_dinit(void);
extern void hart_ble_init(void);
extern void hart_ble_dinit(void);
extern void hart_rx_process(void);
extern void bluetooth_work(uint8_t index);
extern void scheduler_time_irqhandler(uint8_t cycle);
#endif // __APP_H__