add more files

This commit is contained in:
wmano
2025-08-30 23:48:55 +08:00
parent e26e47548f
commit 050eb19fc8
33 changed files with 820 additions and 479 deletions
+1 -4
View File
@@ -4,10 +4,7 @@
#include "chrg_tmr.h"
#define LOG_TAG "chrg.tmr"
#define DBG_ENABLE
#define DBG_SECTION_NAME LOG_TAG
#define DBG_LEVEL DBG_LOG
#define DBG_COLOR
#include <rtdbg.h>
struct chrg_tmr_t chrgtmr[TOTAL_TMRS] = {
@@ -91,7 +88,7 @@ rt_err_t chrg_tmr_start (eIDX_TMR index, uint32_t timeo)
pTMR->timeout.usec = timeo%1000000;
if (rt_device_write(pTMR->dev, 0, &pTMR->timeout, sizeof(rt_hwtimerval_t)) != sizeof(rt_hwtimerval_t)) {
rt_kprintf("set '%s' timeout failed.\r\n", pTMR->name);
LOG_E("set timer '%s' timeout failed.", pTMR->name);
return ret;
}