Commit Graph

36 Commits

Author SHA1 Message Date
Josh Stewart 0dd42a2303 Fix build on mega2560 2023-11-21 17:05:47 +11:00
Josh Stewart 36d22b4832 Allow secondary serial interface to be set on a per board basis rather than MCU only
Fixes #1135
2023-11-21 16:47:24 +11:00
tx_haggis b03db96ad7
Save 600+ bytes RAM (step 4 of 9) - deduplicate scheduler ISR functions (#1063) 2023-10-07 08:25:26 +11:00
Josh Stewart fc536d15f0 Rename all ino files to cpp (Excluding speeduino.ino).
Confirmed this compiles OK in Arduino IDE 2.x
Frees up 8 bytes of RAM
2023-10-06 18:10:20 +11:00
Josh Stewart 2fc29ceef5 MISRA cleanup rule: misra-c2012-8.2 2022-11-06 09:43:29 +11:00
Josh Stewart 16403b41bc Allow for float values in SD log where supported with FPU 2022-08-10 12:12:42 +10:00
Daniel Tobias 7020705dbe
fix typos in code documentation (#816)
* fix typos in code documentation

* minor reverts

* fix typos in ini

Co-authored-by: Josh Stewart <josh@noisymime.org>
2022-04-11 10:49:58 +10:00
Josh Stewart e2dd7a388e Fix for O2 calibration not working on mega2560 2022-01-09 17:05:05 +11:00
Josh Stewart 5051c55e84 Attempt to select correct Time library for avr2560 on PIO/Arduino IDE 2021-12-19 22:58:14 +11:00
Josh Stewart c172141da3 Compile warnings cleanup 2021-12-19 22:38:53 +11:00
Josh Stewart 2439883a69 Further SD compatibility work with new comms 2021-11-20 08:29:11 +11:00
Josh Stewart f62195d511 Hopeful fix for Github Actions not finding required library 2021-10-13 12:55:37 +11:00
Josh Stewart b7c97ce2b9 Add missing include for 2560 2021-10-13 12:42:52 +11:00
tx_haggis 5e409445a4
Use table iterator for EEPROM read/write (#620)
* refactor: use a loop for writeAllConfig.

Future proofing: new pages will get automatically
written

* Call existing [read|store]EEPROMVersion functions

* Common function to compute CRC address

* Bulk write calibration tables

* Use EEPROM get/put instead of hand rolled code

* Typedef the EEPROM address

I.e. the EEPROM.read() parameter type

* Encapsulate eepromWritesPending

* Remove C++ namespaces

* Use table iterators for read/write

* Rename storage.ino to .cpp

This fixes a warning
2021-09-14 16:51:26 +10:00
Josh Stewart ca6eef2b31 Initial layout work on RTC and SD 2021-01-22 16:16:30 +11:00
Vitor Moreno B. Sales 0760fa65d0
STM32 jump to DFU bootloader (#485)
* STM32 jump to DFU

This enable jumping to hardware bootloader with software command.
Based on @iLeeeZi previous work.

Co-Authored-By: iLeeeZi <3372213+iLeeeZi@users.noreply.github.com>
Co-Authored-By: Pasi Kemppainen <48950874+pazi88@users.noreply.github.com>

* lowercase functions fixes

Co-authored-by: iLeeeZi <3372213+iLeeeZi@users.noreply.github.com>
Co-authored-by: Pasi Kemppainen <48950874+pazi88@users.noreply.github.com>
2020-12-03 09:24:15 +11:00
Vitor Moreno B. Sales 00801ad82f
Added pinIsReserved macro (#479)
* Added pinIsReserved macro

Function used to don't initialize reserved pins such as USB on ARM boards, each pin must be defined on board.h file

* Update board_teensy35.h

Include Serial and CAN0 pins
2020-12-02 08:59:44 +11:00
iLeeeZi 8722065168
6 and 8 cylinder sequential injection (#280)
* 6 cyl sequential related cleanup

* disable 6cyl seq fuel trim tables for now

* add the over 2 squirts fix

* Add 5 and 6 cylinder semi and full sequential

* 5 cylinder changes

* fix priming pulse when using paired or semi-sequential injection

* add 5 cyl special case back

* Add missing 8 cyl stuff

* add missing PW8

* allow to change inj4Ang with non sequential 5 cylinder

* add missing helptext
2020-04-01 17:03:11 +11:00
Josh Stewart 984d52d5eb Minor cleanup of various files 2020-02-16 19:54:52 +11:00
Josh Stewart d4104ea9f2 Minor tweaks for better operation of higher sequential fuel counts 2020-01-21 16:57:26 +11:00
Josh Stewart 081b2071c6 Clear injector interrupt flag. Prevents false pulse at low RPM with seq. Fixes #266 2019-11-07 15:01:28 +11:00
Bruno Bousquet f1521b65d8 Fix MISRA violations (#268)
* improve misra checking

* fix 1600 misra violations

* fix mistyped pointer

* misra script was not filtering duplicates
2019-10-22 11:49:07 +10:00
Bruno Bousquet 9fec203c5b remove _SLOW versions of MAX_TIMER_PERIOD and uS_TO_TIMER_COMPARE 2019-08-22 20:18:07 -04:00
Josh Stewart 4357b1b4cf Clean compile on Teensy 4 2019-08-21 15:15:19 +10:00
Bruno Bousquet 7b6f5b5cff make all ignition and fuel timers run at same speed 2019-07-19 15:57:30 -04:00
Josh Stewart fa621ea071 Big MISRA cleanup 2019-07-08 17:56:02 +10:00
Josh Stewart 9101356c5a Workaround for potential stray spark signals on startup 2019-03-06 16:58:26 +11:00
Josh Stewart 942e4491c0 Add board variable to set where the EEPROM class will come from 2019-03-05 01:02:02 +11:00
Vitor_Boss 3532e1bfbc Fix PINMAKS_TYPE typo 2019-03-03 19:15:57 -03:00
Vitor_Boss e150936c71 PINMAKS_TYPE defined to all boards 2019-03-03 02:12:33 -03:00
Josh Stewart 85d2243c6e Move board specific code out of auxilliaries 2019-01-23 12:04:54 +13:00
Josh Stewart f4c0513c2f Begin moving board specific code out of timers.x 2019-01-22 12:04:21 +13:00
Josh Stewart 0fbab60841 Move most of the stm32 runtime into board file 2019-01-22 10:56:25 +13:00
Josh Stewart ef1fdc3a25 Minor MISRA cleanup (Will still fail) 2019-01-21 17:50:50 +13:00
Josh Stewart e24d32e111 Move a whole bunch of stuff in to the new moduler, board specific files 2019-01-20 16:57:16 +13:00
Josh Stewart 3b2967271d More portable version of the modular board handling 2019-01-20 15:46:33 +13:00