修复RGB在按键提示的时候导致的RGB指示问题,以及将功能性函数分离开来

This commit is contained in:
OPTOC
2025-10-20 12:00:32 +08:00
parent a3e823c57a
commit ce9fac6b32
5 changed files with 93 additions and 43 deletions

24
app/drivers/sertrf/tool.h Normal file
View File

@@ -0,0 +1,24 @@
#pragma once
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "os/os.h"
#include "sys_log.h"
/**
* @brief 超时判断
*
*/
int time_out(uint32_t* time_start, uint32_t timeout_ms);
/**
* @brief 打印时间间隔
*/
void printf_chill_time(uint8_t chill_time, uint16_t type);
/**
* @brief 字符串转十进制
*/
uint32_t parse_hex_or_dec(const char *s);