Commit Graph

  • 7d5b3f9be2 Increase all queue sizes and double the UART queue eeeck 2026-06-16 22:29:00 +02:00
  • c540ff7800 Remove dead code eeeck 2026-06-16 22:13:52 +02:00
  • dfc116b2e9 Fix linker error by moving RTOS thread declaration to global scope eeeck 2026-06-16 22:12:40 +02:00
  • 59b0aca092 Refactor: implement data relay from vCANLoggerListen to xUARTQueue eeeck 2026-06-16 22:09:49 +02:00
  • 5f11cf5213 Revert decision on moving CAN event flag outside ISR eeeck 2026-06-16 21:34:43 +02:00
  • 74bf4bde77 Implement identical queue drain for CAN2 to that of CAN1 eeeck 2026-06-16 21:29:32 +02:00
  • 3691918196 Non-blocking on CAN1 queue check eeeck 2026-06-16 21:24:58 +02:00
  • 79f317cec5 Wait until CAN1 or CAN2 save anything to FIFO buffer eeeck 2026-06-16 21:04:43 +02:00
  • da1c13fcb0 Fix comment blocks and function descriptions eeeck 2026-06-16 21:02:15 +02:00
  • 59274272d3 Remove not useful comment blocks eeeck 2026-06-16 20:25:21 +02:00
  • bc71cd7371 Add comment headers eeeck 2026-06-16 20:06:21 +02:00
  • 84980d2378 Implement hex converter eeeck 2026-06-16 19:53:41 +02:00
  • 8b1b3b7ff3 Implement safe UART semaphore release inside ISR eeeck 2026-06-16 19:49:13 +02:00
  • 0d0e485193 Initialize cansend headers eeeck 2026-06-16 19:12:04 +02:00
  • ac5d9f6a72 Set CAN event flag and LED thread flag in ISR eeeck 2026-06-16 19:11:38 +02:00
  • 76628dec90 Initialize UART task and semaphore and CAN event flags eeeck 2026-06-16 19:10:53 +02:00
  • cedd6cc0f8 Merge pull request 'Switch to task notification from semaphore' (#20) from dev_task-notification into dev_serial-send eeeck 2026-06-16 18:23:18 +02:00
  • f260dfe972 Use define instead of hardcoded value eeeck 2026-06-16 18:11:12 +02:00
  • 12ef44d3d8 Use clearer variable name eeeck 2026-06-16 18:06:26 +02:00
  • af4ce2f9e8 Remove unecessary MXCube comments eeeck 2026-06-16 18:01:54 +02:00
  • 34df5e51b7 Remove LED contexts eeeck 2026-06-16 17:59:57 +02:00
  • 266efdfa7c Fix spacing eeeck 2026-06-16 17:57:42 +02:00
  • 7d40531250 Return instead of critical error eeeck 2026-06-16 17:57:35 +02:00
  • 6446f5209b Remove semaphores in favor of task notifications eeeck 2026-06-16 17:56:11 +02:00
  • cc3a37ba4b Increase UART baudrate eeeck 2026-06-16 16:16:51 +02:00
  • 990a85c002 Enable UART interface from MXCube eeeck 2026-06-16 16:00:59 +02:00
  • 7f461970f2 Fix allocation on wrong line dev_ccram eeeck 2026-06-16 00:57:48 +02:00
  • e8ffa4cd05 Fix array bound not integer error eeeck 2026-06-16 00:56:32 +02:00
  • 498d19fd90 Add queue attributes eeeck 2026-06-16 00:56:22 +02:00
  • 52b373c82e Put control banks and queue memories into CCRAM eeeck 2026-06-16 00:45:22 +02:00
  • a9e6bbecba Use private define for queue length eeeck 2026-06-16 00:41:40 +02:00
  • 92b59615d5 Configure thread attributes to use memory stacks in CCRAM eeeck 2026-06-16 00:35:33 +02:00
  • d348159c20 Allocate CAN stack arrays into CCMRAM eeeck 2026-06-16 00:33:56 +02:00
  • b737c27b49 Merge pull request 'Remove complex timer based toggling and switch to RTOS task with semaphore based delay' (#18) from dev-rtos-semaphore into main v0.0.2 dev_j1939 eeeck 2026-06-15 14:33:38 +02:00
  • 2c14d095f7 Better way to avoid race condition, only notification lives in CAN task eeeck 2026-06-15 14:30:35 +02:00
  • 975acb8c3e Indentation fixes eeeck 2026-06-15 14:27:05 +02:00
  • b1744ce941 Fix double semaphore release eeeck 2026-06-15 14:17:12 +02:00
  • c1d2e65e20 Move to RTOS_THREADS eeeck 2026-06-15 14:12:47 +02:00
  • ce85e473b3 Move before starting scheduler to avoid race condition eeeck 2026-06-15 14:11:11 +02:00
  • 8c8fe93d5b Release CANrx semaphore in ISR eeeck 2026-06-15 14:09:51 +02:00
  • ab8b68313b Transition from timer based to task based LED signal eeeck 2026-06-15 14:06:15 +02:00
  • 70cead28d7 Re-add newlib lock glue to Src eeeck 2026-06-15 10:37:01 +02:00
  • 31bf55fed4 Merge pull request 'Implement CAN read RTOS' (#14) from j1939 into main eeeck 2026-06-15 10:30:34 +02:00
  • ac212c4a0a Merge pull request 'Change headers with better copyright comments' (#13) from code-licensing into j1939 eeeck 2026-06-14 21:36:06 +02:00
  • 9fc2f0b73b Remove files that were misteriously duplicated... eeeck 2026-06-14 21:32:29 +02:00
  • 3c66a39a5d Fix variable name mismatch eeeck 2026-06-14 21:24:01 +02:00
  • 54eae2d63e Add Debug directory to ignores eeeck 2026-06-14 20:55:25 +02:00
  • 4305399d44 Untrack Debug directory eeeck 2026-06-14 20:51:08 +02:00
  • 19eefc288b Fix scope error by moving declaration eeeck 2026-06-14 20:48:11 +02:00
  • 17febf569a Use a more generic name as semaphore will be used by other tasks eeeck 2026-06-14 17:10:34 +02:00
  • 5a3223af29 Merge pull request 'Use semaphores and one shot RTOS timers to better manage LEDs for incoming CAN message on FIFO buffer' (#8) from led-semaphore into j1939 eeeck 2026-06-14 16:49:17 +02:00
  • 53772ccb7d Remove error handling as it would cause crash on full queue eeeck 2026-06-14 16:45:02 +02:00
  • 9d4d807cfb Fix race condition that could cause a hard fault eeeck 2026-06-14 16:21:55 +02:00
  • 5ec806ffea Add CMSIS include eeeck 2026-06-14 16:16:14 +02:00
  • 8777f742ac Move typedef to header eeeck 2026-06-14 16:15:33 +02:00
  • 4aafa81009 Change CODE BEGIN N value eeeck 2026-06-14 16:14:20 +02:00
  • ac16f8150e Use a more sensible number of semaphores eeeck 2026-06-14 16:10:18 +02:00
  • f0d2990b8d Move below timer setup eeeck 2026-06-14 16:10:00 +02:00
  • 72ffb2644e Use more clear variable names eeeck 2026-06-14 16:09:45 +02:00
  • 2a3d5d17b3 Remove unnecessary declarations eeeck 2026-06-14 16:08:37 +02:00
  • 151bac7a13 Fix typo eeeck 2026-06-14 16:08:21 +02:00
  • 75efc4840d Use new context structure instead of direct pass eeeck 2026-06-14 15:17:03 +02:00
  • a75d42faeb Create context structure for timer callback eeeck 2026-06-14 15:16:23 +02:00
  • 5b500d72ff Avoid having to declare additional variable eeeck 2026-06-14 14:56:32 +02:00
  • 5f1695dc0d Start timer once for automatic rearming with semaphore release eeeck 2026-06-14 14:51:46 +02:00
  • de6dc24dd3 Acquire semaphore and restart timer if new message incoming eeeck 2026-06-14 14:51:33 +02:00
  • 1b38c0f29a Release semaphore on incoming message eeeck 2026-06-14 14:50:43 +02:00
  • 7ece650f72 Move declaration on top eeeck 2026-06-14 14:49:54 +02:00
  • ebbd1816fa Write LOW status on LED when timer triggers eeeck 2026-06-14 14:19:44 +02:00
  • 2e2150ebd2 Write HIGH status on LED on incoming CAN message and start 25ms timer eeeck 2026-06-14 14:19:30 +02:00
  • d6ea04e33e Change variable name eeeck 2026-06-14 14:18:40 +02:00
  • 7c7d774522 Create semaphores for signalling new message in FIFO buffer eeeck 2026-06-14 14:18:28 +02:00
  • c65341c662 Change periodic timers to one shot timers eeeck 2026-06-14 14:18:07 +02:00
  • d42e5fce46 Read CAN messages from FIFO buffer eeeck 2026-06-14 13:55:05 +02:00
  • 8ef0980510 Handle ISR for CANrx by saving message in FIFO buffer eeeck 2026-06-14 13:53:40 +02:00
  • dc3688d3d7 Change error check structure eeeck 2026-06-14 12:25:31 +02:00
  • 34553af0a7 Create message queues for saving CAN frames eeeck 2026-06-14 11:11:34 +02:00
  • 2cce753716 Remove duplicate declaration eeeck 2026-06-14 10:47:12 +02:00
  • 19eaee2674 Enable interrupt when CAN frame received and stored in FIFO buffer eeeck 2026-06-14 10:42:26 +02:00
  • 8e37c44eae Refactor naming conventions following FREERTOS guidelines eeeck 2026-06-14 09:50:47 +02:00
  • c101c77ba4 Refactor: move RTOS task definition back to main.c eeeck 2026-06-14 00:36:41 +02:00
  • ce995602e4 Merge branch 'rtos-timers' into j1939 eeeck 2026-06-13 23:02:22 +02:00
  • e55b7f2b3a Do CI when pushing to main ci eeeck 2026-06-13 21:47:19 +02:00
  • 0e4b41647f Change headers with better copyright comments eeeck 2026-06-13 20:02:44 +02:00
  • 7b913c8ab9 Simplify CAN error code handler eeeck 2026-06-10 13:15:01 +02:00
  • de7c817471 Reset LEDs in error handler eeeck 2026-06-10 14:27:39 +02:00
  • 59a58d1f1f Implement LED heartbeat with RTOS timers instead of threads eeeck 2026-06-10 13:56:52 +02:00
  • 0c3c93040b Simplify CAN error code handler eeeck 2026-06-10 13:15:01 +02:00
  • d641c8b915 Simplify CAN error code handler eeeck 2026-06-10 13:15:01 +02:00
  • b38d4d5403 Remove static declare eeeck 2026-06-10 13:07:24 +02:00
  • d32c03c8f0 Update function prototype names eeeck 2026-06-10 13:07:15 +02:00
  • 0b05331fff Fix error handling for CAN bus eeeck 2026-06-10 13:01:43 +02:00
  • 0f6011d05b Use CMSIS-RTOS2 instead of FreeRTOS for consistency eeeck 2026-06-10 11:38:30 +02:00
  • 6c4a1368be Use more clear names for RTOS function prototypes eeeck 2026-06-10 11:28:34 +02:00
  • e2b6d13364 Clarify function prototype description eeeck 2026-06-10 11:25:31 +02:00
  • b14cdfaccb Lower priority for LED heartbeat eeeck 2026-06-10 11:25:01 +02:00
  • 7bb401762a Add headers for better code regeneration compatibility with STM32CubeMX eeeck 2026-06-10 11:24:43 +02:00
  • 87e8ffc6fa Adapt error handler to log CAN errors and toggle error LED eeeck 2026-06-09 10:43:32 +02:00
  • 91385d00cf Configure filter banks and start CAN eeeck 2026-06-09 10:42:40 +02:00
  • 30b7538e26 Use HAL WritePin func instead of TogglePin eeeck 2026-06-09 10:05:25 +02:00