zephyr/drivers/can
Roman Vaughan 127e82e3b8 drivers: can: Wait for MCP2515 to reset
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>
2020-08-21 14:47:01 -05:00
..
can_common.c device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
can_handlers.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
can_loopback.c device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
can_loopback.h device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
can_mcp2515.c drivers: can: Wait for MCP2515 to reset 2020-08-21 14:47:01 -05:00
can_mcp2515.h device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
can_mcux_flexcan.c device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
can_net.c device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
can_shell.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
can_stm32.c device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
can_stm32.h device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
CMakeLists.txt
Kconfig shell: enable modules by default if shell is enabled 2020-06-24 21:37:12 -04:00
Kconfig.loopback
Kconfig.mcp2515
Kconfig.mcux
Kconfig.net
Kconfig.stm32 drivers/can: stm32: configure driver thanks to compatible 2020-04-28 14:49:55 -05:00
socket_can_generic.h device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00