Skip to content

Commit

Permalink
utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
zogodo committed Nov 9, 2019
1 parent b310362 commit 3122ce7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions TC1/user_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ PowerRecord power_record = { 1, { 0 } };

/*
static uint32_t clock_count_last = 0;
static uint32_t clock_count = 0; //纳秒数
static uint32_t timer_count = 0; //一秒定时器
static uint32_t timer_irq_count = 0; //功率中断数
static uint32_t clock_count = 0; //纳秒数
static uint32_t timer_count = 0; //一秒定时器
static uint32_t timer_irq_count = 0; //功率中断数
*/
uint32_t p_count = 0;

Expand Down Expand Up @@ -77,11 +77,11 @@ static void PowerTimerHandler(void* arg)
}
*/

float n_1s = 0; //功率中断次数
mico_time_t t_x = 0; //当前秒*1000
mico_time_t past_ms = 0; //系统运行的毫秒数
mico_time_t rest_x_ms = 0; //距离当前秒走过的毫秒数
mico_time_t rest_y_ms = 0; //距离下一秒差的秒数
float n_1s = 0; //功率中断次数
mico_time_t t_x = 0; //当前秒*1000
mico_time_t past_ms = 0; //系统运行的毫秒数
mico_time_t rest_x_ms = 0; //距离当前秒走过的毫秒数
mico_time_t rest_y_ms = 0; //距离下一秒差的秒数

static void PowerIrqHandler(void* arg)
{
Expand Down Expand Up @@ -114,7 +114,7 @@ static void PowerIrqHandler(void* arg)
}
else
{
//一般不会出现这个情况, 所以不管了...哈哈哈~
//一般不会出现这个情况, 所以不管了...哈哈哈~
SetPowerRecord(&power_record, 123456);
SetPowerRecord(&power_record, past_ms);
SetPowerRecord(&power_record, t_x);
Expand Down

0 comments on commit 3122ce7

Please sign in to comment.