mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-06 10:26:00 +00:00
The device may be prematurely configured before it is ready during reset without first checking. After the driver writes to the registers and normal mode gets selected, CANSTAT is read back to ensure the device is now configured in normal mode (0x00). However, an unresponsive device will be read as 0x00, the driver then assumes it is configured correctly. The MCP2515 will reset into configuration mode (0x04) to allow bit timings to be configured. Adding a check for this mode prevents the device from being misconfigured. Signed-off-by: Roman Vaughan <nzsmartie@gmail.com> |
||
---|---|---|
.. | ||
can_common.c | ||
can_handlers.c | ||
can_loopback.c | ||
can_loopback.h | ||
can_mcp2515.c | ||
can_mcp2515.h | ||
can_mcux_flexcan.c | ||
can_net.c | ||
can_shell.c | ||
can_stm32.c | ||
can_stm32.h | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.loopback | ||
Kconfig.mcp2515 | ||
Kconfig.mcux | ||
Kconfig.net | ||
Kconfig.stm32 | ||
socket_can_generic.h |