aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/fdcan.c
Commit message (Collapse)AuthorAgeFilesLines
* stm32: Fix RESERVE_PINS_CAN pin ordering in fdcan.cKevin O'Connor2025-04-011-1/+1
| | | | | | Always report the reserved pins in the same order (rx,tx). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Added PH13/14 CAN pin option for stm32h743 (#6857)FrY Sennberg2025-03-271-0/+4
| | | | | Added the option to select PH13/PH14 as CAN pins. Signed-off-by: Christoph Frei <fryakatkop@gmail.com>
* stm32: Add support for reporting canbus state from fdcan.cKevin O'Connor2025-02-021-2/+47
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add FDCAN2 channel needed for stm32g4 alternate pinsDropeffect GmbH2024-05-141-2/+9
| | | | | | | | Some of the alternate pins defined are routed to FDCAN2 instead of FDCAN1, this commit uses the correct IRQ register and peripheral clock enable bit to enable FDCAN on those pins. Signed-off-by: Amr Elsayed from Dropeffect GmbH <code@dropeffect.com>
* stm32: Fix CAN for STM32G4Alex Maclean2023-12-211-3/+3
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* stm32: add PB5/PB6 as CAN pins - required for BTT U2C v2.xStefan Dej2023-05-201-1/+5
| | | | Signed-off-by: Stefan Dej <meteyou@gmail.com>
* stm32: add PB12/PB13 FDCAN2 support STM32G0B1bigtreetech2023-02-031-1/+6
| | | | | Signed-off-by: Alan.Ma from BigTreeTech tech@biqu3d.com Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* canbus: Rename canbus_send() to canhw_send()Kevin O'Connor2022-12-141-3/+3
| | | | | | | | Rename canbus_send() to canhw_send() and rename canbus_set_filter() to canhw_set_filter(). This makes it more clear where the code should reside. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32g4: implement build,usb,can,i2c,spi,serial,adc.Matt Baker2022-12-021-3/+7
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* fdcan: Remove spurious executable flag on fdcan.cKevin O'Connor2022-11-041-0/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Protect message ram with barrier() calls instead of voltaile in fdcan.cKevin O'Connor2022-10-131-22/+25
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: No need for fdcan_ram global pointer in fdcan.cKevin O'Connor2022-10-131-24/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Minor code movement in fdcan.cKevin O'Connor2022-10-131-37/+41
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: add FDCAN support for STM32H743 (SKR-3 Series) (#5668)BIGTREETECH2022-08-231-3/+49
| | | Signed-off-by: Chen.BJ from BigTreeTech <chenbj@biqu3d.com>
* canserial: Rename canbus.c to canserial.cKevin O'Connor2022-06-271-0/+1
| | | | | | | | | | Rename the canbus.c code to canserial.c and introduce new wrapper functions in canbus.c that connect the low-level canbus hardware code to the high-level canserial.c code. This is in preparation for adding "usb to canbus bridge mode". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add support for disabling the canbus filterKevin O'Connor2022-06-271-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* canbus: Move canbus uuid calculation to canbus.cKevin O'Connor2022-06-161-5/+0
| | | | | | | | Move the uuid hash calculation to canbus.c and call canbus_set_uuid() from src/stm32/chipid.c . This simplifies the low-level canbus hardware code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Support passing through RTR and EFF canbus framesKevin O'Connor2022-06-161-26/+23
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Support PA11/PA12 and PB8/PB9 on fdcanKevin O'Connor2022-06-161-14/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Simplify fdcan tx irq handlingKevin O'Connor2022-06-161-8/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* canbus: Use single method for reading canbus messagesKevin O'Connor2022-06-161-90/+32
| | | | | | | | | | | | Previously the code had canbus_read() which was called from task context (for admin messages), and canbus_process_data() which was called from irq context (used for data messages). Change that to a single canbus_process_data() function that is called from irq context (used for all messages). This simplifies the low-level hardware specific canbus code and should make it easier to support other hardware implementations. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Enable Automatic retransmission feature to avoid data loss caused by ↵BIGTREETECH2022-06-061-2/+0
| | | | | bus conflict for STM32G0B1 fdcan (#5550) Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
* stm32: stm32g0b1 fdcan support (#5488)BIGTREETECH2022-06-011-0/+331
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>