36 lines
707 B
C
36 lines
707 B
C
/*
|
|
* @Author: wujunchao wujunchao@wuxismart.com
|
|
* @Date: 2024-12-27 11:44:23
|
|
* @LastEditors: wujunchao wujunchao@wuxismart.com
|
|
* @LastEditTime: 2024-12-27 11:46:58
|
|
* @FilePath: \signal_generator\App\APP_WU\timer.c
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
#include "timer.h"
|
|
|
|
int heart_1000ms_flag = 0;
|
|
int heart_1000ms_cnt = 0;
|
|
|
|
void duty_tim3(void)
|
|
{
|
|
freq_signal.over_cnt++;
|
|
|
|
}
|
|
void duty_tim6(void)
|
|
{
|
|
lv_tick_inc(1);
|
|
|
|
heart_1000ms_cnt++;
|
|
if( heart_1000ms_cnt >= 1000)
|
|
{
|
|
heart_1000ms_cnt = 0;
|
|
heart_1000ms_flag = 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|