mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
总功耗
This commit is contained in:
@@ -16,6 +16,7 @@ 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;
|
||||
uint32_t p_count = 0;
|
||||
|
||||
char power_record_str[1101] = { 0 };
|
||||
|
||||
@@ -77,6 +78,7 @@ static void PowerIrqHandler(void* arg)
|
||||
clock_count = mico_nanosecond_clock_value();
|
||||
if (timer_irq_count == 0) clock_count_last = clock_count;
|
||||
timer_irq_count++;
|
||||
p_count++;
|
||||
}
|
||||
|
||||
void PowerInit(void)
|
||||
|
||||
Reference in New Issue
Block a user