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_hart.h

15 lines
601 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __APP_HART_H__
#define __APP_HART_H__
#include "lib.h"
#include "wl_flash.h"
#include "hart.h"
#include "app_hart_user.h"
#define HART_BASE_SECS (315532800U) // 1980-01-01 0:0:0
extern void app_hart_update_time(void); // 更新时间
extern BOOL app_hart_storage_is_written(uint32_t address, uint16_t length); // 是否已经写入过数据只检查前200个字节
extern void hart_write_test(void); // 测试写入
#endif // __APP_HART_H__