aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/fdcan.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>