add more files
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user