* the TS_CMD_VSS_RATIO* id values overflow signed 16 bit int on avr
switch to unsigned 16 bit value
define TS_CMD_VSS_60KMH 39168 //0x99x00
define TS_CMD_VSS_RATIO1 39169
define TS_CMD_VSS_RATIO2 39170
define TS_CMD_VSS_RATIO3 39171
define TS_CMD_VSS_RATIO4 39172
define TS_CMD_VSS_RATIO5 39173
define TS_CMD_VSS_RATIO6 39174
* make sure we don't overflow and accidentally set negative timing
currentStatus.advance can only hold a signed 8 bit value
* make sure we can't have a negative multiplier
* Pin definition for the Juice Box board
Ignition-only user board
* Update platformio.ini
Formatting corrections.
* Added JUICEBOX user board
User board and pin mappings
* Updated platformio.ini to reflect noisymime
* Add platformio.ini to gitignore
* Updated pin mappings
Pin mappings updated. Serial 2 now working
* Removed platformio.ini
* Match noisymime version
* Match noisymime version (2nd attempt)
* Update speeduino.ini
Match noisymime version to allow merge.
* JuiceBox pin layout added back in
* refactor: parameterize the MISRA checking script
The script contained hardcoded paths, which made it difficult
to use as part of the development workflow.
* ci!: use script relative path to pick source folder
* ci!: default output folder within source tree
* refactor: have cppcheck run the misra script
* refactor: use "rm -f" - remove existence check
* refactor: encapsulate into functions
* ci!: merge git MISRA logic into check_misra.sh
* ci!: count true errors, not style violations
* ci: use common MISRA check script
Co-authored-by: adbancroft <adbancroft@users.noreply.github.com>
preventing the value sent from TS to the firmware from being zero when
a value of 1 is selected in the dropdown. Note the original change
set the minimum value to 1; this has been retained.
Co-authored-by: Richard Metcalfe <richard@richmet.com>
* CAN-bus library for STM32
This adds CAN-bus library for STM32. Mainly for STM32F4, but others can be added later.
* CAN2 and F446 support added for STM32 CAN library
Adds support for second can interface and F446 bit timings.
* Fix STM32 CAN pin selection and STM32F1 support
The previous way to select CAN pins wasn't actually working, so this fixes that problem and also the F1 support too.
* Fix building for Mega/Teensy
* Update cancomms.ino
* Update speeduino.ino
* STM32 CAN library fixes
* TX mailbox addition
Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
* CAN-bus library for STM32
This adds CAN-bus library for STM32. Mainly for STM32F4, but others can be added later.
* CAN2 and F446 support added for STM32 CAN library
Adds support for second can interface and F446 bit timings.
* Fix STM32 CAN pin selection and STM32F1 support
The previous way to select CAN pins wasn't actually working, so this fixes that problem and also the F1 support too.
* Fix building for Mega/Teensy
* Update cancomms.ino
* Update speeduino.ino
* STM32 CAN library fixes
Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
* fix building for STM32F401CC and general macro cleanup
* Now building for all generic STM32F4x7 boards in arduino IDE is ok.
* buildflag cleanup
Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
* 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>