diff --git a/TC1/user_power.c b/TC1/user_power.c index ea42dc1..e4ab7c8 100644 --- a/TC1/user_power.c +++ b/TC1/user_power.c @@ -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; @@ -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) { @@ -114,7 +114,7 @@ static void PowerIrqHandler(void* arg) } else { - //一般不会出现这个情况, 所以不管了...哈哈哈~ + //涓鑸笉浼氬嚭鐜拌繖涓儏鍐, 鎵浠ヤ笉绠′簡...鍝堝搱鍝垀 SetPowerRecord(&power_record, 123456); SetPowerRecord(&power_record, past_ms); SetPowerRecord(&power_record, t_x);