framework/module.c的编码转换为gb2312编译(和别的文件匹配)

This commit is contained in:
kong_ling_chun 2021-08-26 09:47:25 +08:00
parent b955f3dbf5
commit 1b9527b7ae

View File

@ -1,5 +1,5 @@
/******************************************************************************
* @brief (,)
* @brief ϵͳģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>,ʱ<EFBFBD><EFBFBD>Ƭ<EFBFBD><EFBFBD>ѯϵͳ)
*
* Copyright (c) 2017~2020, <morro_luo@163.com>
*
@ -7,19 +7,19 @@
*
* Change Logs:
* Date Author Notes
* 2016-06-24 Morro
* 2020-05-23 Morro ,
* 2020-06-28 Morro is_timeout超时判断接口
* 2020-09-28 Morro timer
* 2016-06-24 Morro <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* 2020-05-23 Morro <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD>ֹģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* 2020-06-28 Morro <EFBFBD><EFBFBD><EFBFBD><EFBFBD>is_timeout<EFBFBD><EFBFBD>ʱ<EFBFBD>жϽӿ<EFBFBD>
* 2020-09-28 Morro <EFBFBD><EFBFBD><EFBFBD><EFBFBD>α<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>timer<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˿<EFBFBD>ָ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
******************************************************************************/
#include "module.h"
static volatile unsigned int tick; //系统滴答计时
static volatile unsigned int tick; //ϵͳ<EFBFBD>δ<EFBFBD><EFBFBD><EFBFBD>ʱ
/*
* @brief (,1ms 1)
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><EFBFBD>е<EFBFBD><EFBFBD><EFBFBD>,1ms 1<EFBFBD><EFBFBD>)
*/
void systick_increase(unsigned int ms)
{
@ -27,7 +27,7 @@ void systick_increase(unsigned int ms)
}
/*
* @brief (1ms)
* @brief <EFBFBD><EFBFBD>ȡϵͳ<EFBFBD>δ<EFBFBD>ʱ<EFBFBD><EFBFBD>ֵ(ͨ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>1ms)
*/
unsigned int get_tick(void)
{
@ -35,9 +35,9 @@ unsigned int get_tick(void)
}
/*
* @brief
* @param[in] start -
* @param[in] timeout - (ms)
* @brief <EFBFBD><EFBFBD>ʱ<EFBFBD>ж<EFBFBD>
* @param[in] start - <EFBFBD><EFBFBD>ʼʱ<EFBFBD><EFBFBD>
* @param[in] timeout - <EFBFBD><EFBFBD>ʱʱ<EFBFBD><EFBFBD>(ms)
*/
bool is_timeout(unsigned int start, unsigned int timeout)
{
@ -45,31 +45,31 @@ bool is_timeout(unsigned int start, unsigned int timeout)
}
/*
* @brief ,
* @brief <EFBFBD>մ<EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
static void nop_process(void) {}
//第一个初始化项
//<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
const init_item_t init_tbl_start SECTION("init.item.0") = {
"", nop_process
};
//最后个初始化项
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
const init_item_t init_tbl_end SECTION("init.item.4") = {
"", nop_process
};
//第一个任务项
//<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
const task_item_t task_tbl_start SECTION("task.item.0") = {
"", nop_process
};
//最后个任务项
//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
const task_item_t task_tbl_end SECTION("task.item.2") = {
"", nop_process
};
/*
* @brief
* system_init > driver_init > module_init
* @brief ģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD>Ż<EFBFBD><EFBFBD><EFBFBD> system_init > driver_init > module_init
* @param[in] none
* @return none
*/
@ -82,7 +82,7 @@ void module_task_init(void)
}
/*
* @brief
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param[in] none
* @return none
*/