添加发送失败信息记录

This commit is contained in:
ranchuan
2024-01-13 11:52:04 +08:00
parent bd2a270fae
commit c3c172717d
6 changed files with 57 additions and 19 deletions

View File

@@ -64,6 +64,8 @@ typedef struct __timer_def{
int (*deinit)(struct __timer_def *u);
uint32_t (*read)(struct __timer_def *u);
int (*write)(struct __timer_def *u,const uint32_t value);
int (*stop)(struct __timer_def *u);
int (*start)(struct __timer_def *u);
void *private_data;
}timer_def;
@@ -150,7 +152,7 @@ typedef struct __timer_def{
#define timer_init_export(name_,init_,deinit_,read_,write_,priv_) \
#define timer_init_export(name_,init_,deinit_,read_,write_,stop_,start_,priv_) \
const static char __dev_##name_##_name[] SECTION(".rodata.devstr") = #name_; \
RT_USED static timer_def _timer_##name_={\
.name=__dev_##name_##_name,\
@@ -158,6 +160,8 @@ typedef struct __timer_def{
.deinit=deinit_,\
.read=read_,\
.write=write_,\
.stop=stop_,\
.start=start_,\
.private_data=priv_,\
};\
RT_USED static const struct dev_struct __dev_##name_ SECTION("devstruct")= \