添加了不同等级的日志

This commit is contained in:
NeoZng
2023-03-19 11:11:40 +08:00
parent 6f7bf8e9d7
commit eefc0883ed
11 changed files with 53 additions and 26 deletions

View File

@@ -6,6 +6,7 @@
/* can instance ptrs storage, used for recv callback */
// 在CAN产生接收中断会遍历数组,选出hcan和rxid与发生中断的实例相同的那个,调用其回调函数
// @todo: 后续为每个CAN总线单独添加一个can_instance指针数组,提高回调查找的性能
static CANInstance *can_instance[CAN_MX_REGISTER_CNT] = {NULL};
static uint8_t idx; // 全局CAN实例索引,每次有新的模块注册会自增