1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

11 Commits

Author SHA1 Message Date
Firas Hamdi
bc0d3f9de3 drivers/mcp2515: apply the filter to a target mailbox
sys/include/can: add the mailbox target as a member to the filter structure

drivers/mcp2515: cleanup defines
2022-06-30 10:07:24 +02:00
Firas Hamdi
3f9866e709 drivers/mcp2515: fix to add filters
drivers/mcp2515: enable filtering

The current driver implementation initializes the driver in a way to receive all the CAN messages without matching the filters. This commit changes that by adding a macro definition that will be enabling or disabling the filtering and accordingly set the appropriate mcp2515 acceptance mode
2022-06-26 17:38:23 +02:00
Daniel Lockau
257ffdb442 drivers/mcp2515: fix set bittiming
- apply hardware dependent parameters to bittiming struct before
  reinitializing the hardware with the new parameter set
2022-05-02 14:04:52 +02:00
Francisco Molina
6959f5eb78 drivers/mcp2515: use ztimer 2022-04-20 09:23:50 +02:00
Francisco Molina
babaa6ec4a drivers/mcp2515/candev_mcp2515: remove Illegal ID error
0x1fffffff marks and extended can id.
2022-04-19 15:57:57 +02:00
Francisco Molina
c07514ad3f drivers/mcp2515: allow for can_mask == 0, promiscuos
can_mask = 0 is a valid value to reaceive all frames
2022-04-19 15:56:45 +02:00
Francisco Molina
0c526f12c6 driver/mcp2515: clear irq masks after read
This fixes a bug where it triggers twice on e.g. tx isr
2022-04-19 15:55:29 +02:00
Marian Buschsieweke
c97a2119f3
drivers/mcp2515: use container_of()
This silences false positives of -Wcast-align
2021-12-03 10:12:35 +01:00
Bas Stottelaar
92b1dfc703 drivers/*: realign ENABLE_DEBUG 2020-10-23 01:26:09 +02:00
Wouter Symons
757f810118 drivers/mcp2515: complete driver + adapt to 2020 RIOT API 2020-10-03 15:20:42 +02:00
Vincent Dupont
62a9929f9b mcp2515: add a driver for the mcp2515 SPI CAN controller
This driver implements the candev interface
2020-10-03 15:20:42 +02:00