Commit Graph

20 Commits

Author SHA1 Message Date
eeeck 0b05331fff Fix error handling for CAN bus 2026-06-10 13:01:43 +02:00
eeeck 6c4a1368be Use more clear names for RTOS function prototypes 2026-06-10 11:28:42 +02:00
eeeck 87e8ffc6fa Adapt error handler to log CAN errors and toggle error LED 2026-06-09 10:43:32 +02:00
eeeck c891681b94 Minor comment clarifications 2026-06-09 09:51:10 +02:00
eeeck 770e97ccd9 Move include declaration to private includes 2026-06-09 09:50:00 +02:00
eeeck 5d3c8c0ec0 Refactor task function name 2026-06-09 09:12:11 +02:00
eeeck 495c9cb377 Enable auto wake up on CAN traffic for future sleep mode 2026-06-09 00:33:14 +02:00
eeeck b92b26b026 Remove trailing newlines 2026-06-09 00:24:41 +02:00
eeeck 9f3d681134 Remove explicit cast 2026-06-09 00:00:42 +02:00
eeeck 41084eb4d2 Move thread creation inside comment block
- Avoid overwrites from STM32CubeMX
2026-06-09 00:00:17 +02:00
eeeck 714ca43d45 Pass LED pin to thread arguments
- Create typedef for LED (port:pin)
- Define two LED as private variables
- Pass them to threads
2026-06-08 23:50:14 +02:00
eeeck 29284ceb87 Move thread handles and attributes to related file
- Better separation of concerns
2026-06-08 23:38:38 +02:00
eeeck a82734cef0 Use correct thread arguments for CANrx threads 2026-06-08 23:28:54 +02:00
eeeck e24f57e77f Move CAN prototypes to relative include file 2026-06-08 23:19:27 +02:00
eeeck 13de1b6c47 Initialize CAN related tasks for logging and signaling
Initialize tasks for:
- CAN log incoming frames
- CAN blink on CANrx
2026-06-08 23:18:00 +02:00
eeeck 74cc33d0a9 Move CAN bus related tasks and definition to canlog.h 2026-06-03 23:34:10 +02:00
eeeck 1ed727fa9e Create tasks for hcan1 and hcan2 2026-06-03 23:01:29 +02:00
eeeck d50aab1497 Correct CAN baud rates for SAEJ1939 and enable silent mode
- Silent mode is also enabled by hardware (TJA1050) but better safe than
  sorry
- Baud rates are 500kbps for primary bus and 250kpbs for secondary bus
2026-06-03 22:32:20 +02:00
eeeck 2a80477cab Enable SDIO and relative clock changes 2026-06-02 22:02:00 +02:00
eeeck 5f5721c712 Add boilerplate generated from STM32CubeMX 2026-05-27 22:33:28 +02:00