drivers: can: use separate log modules for each driver
Use separate log modules for each CAN driver similar to other sub-systems/driver classes. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
c9effd0ff9
commit
de45e8ec72
10 changed files with 23 additions and 22 deletions
|
@ -10,9 +10,9 @@
|
|||
#include <drivers/can.h>
|
||||
#include "can_mcan.h"
|
||||
#include "can_mcan_int.h"
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_DECLARE(can_driver, CONFIG_CAN_LOG_LEVEL);
|
||||
|
||||
LOG_MODULE_REGISTER(can_mcan, CONFIG_CAN_LOG_LEVEL);
|
||||
|
||||
#define CAN_INIT_TIMEOUT (100)
|
||||
#define CAN_DIV_CEIL(val, div) (((val) + (div) - 1) / (div))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue