Commit Graph

338 Commits

Author SHA1 Message Date
rusefi 2738fefa48 that's how we can move all fields one by one from boardConfiguration to engineConfiguration
my approach is to move fields from the bottom of BC struct
2019-11-30 10:24:37 -05:00
rusefi 349eac34de better state validation, better error codes 2019-11-29 23:41:26 -05:00
andreika-git 7220735530 Starter relay + Hardcoded 'FSIO' + simulator fix (#1032)
* Starter Relay: gui + built-in FSIO impl.

* Hardcoded 'FSIO' replacement for RAM-limited boards

* fix simulator
2019-11-25 20:08:01 -05:00
andreika-git 53eeb79ea9 unregisterOutput() + isPinOrModeChanged() + Stepper::stepPin+enablePin + Kinetis fix (#1029)
* Fix isConfigurationChanged() for EFI_ACTIVE_CONFIGURATION_IN_FLASH

* unregisterOutput() -> unregisterOutputIfPinOrModeChanged()

* clutchUpPinMode for unregisterPin()

* Fix Kinetis: EFI_ACTIVE_CONFIGURATION_IN_FLASH & EFI_MAIN_RELAY_CONTROL

* Stepper: enablePin & stepPin with modes support
2019-11-25 00:02:53 -05:00
Matthew Kennedy 8fd603dca9 Merge remote-tracking branch 'origin/master' into perf-tracing 2019-11-19 16:28:58 -08:00
rusefi db24091933 60/2 VW trigger has running issue on 19/10/19 snapshot fix #986 2019-10-30 20:51:20 -04:00
rusefi 26fc391ffe half-solution would not pass CI, have to merge full solution without real HW test
#975
2019-10-19 07:35:21 -04:00
rusefi 1602bdbebc steps towards #975 2019-10-18 19:45:32 -04:00
rusefi eff84bcfeb steps towards #975 2019-10-18 18:54:32 -04:00
Matthew Kennedy eb418f764b trace all the things 2019-10-14 23:34:12 -07:00
Matthew Kennedy 076b10fcb6 experiment 2019-10-11 17:43:21 -07:00
Matthew Kennedy 9471a23484 low hanging performance fruit (#969) 2019-10-08 20:44:59 -04:00
rusEfi 0fd1f27e1b ETB target is using integer values #945
first we will write a unit test
2019-09-22 00:36:13 -04:00
rusefi 0952b84aad unit tests progress 2019-09-19 21:41:52 -04:00
rusefi d57779b686 F7 nucleo does not work?
funny, it was about some very unused feature
2019-08-02 01:36:02 -04:00
rusefi 5d2afd2331 refactoring: better file name 2019-07-06 20:15:49 -04:00
rusefi bad507558a Refactoring: OS access should be explicit #867 2019-07-04 03:25:35 -04:00
rusefi 2164661274 undoing wrong fix & better fix for #805
also generator logging improvements
This reverts commit 96270758c9.
2019-06-30 14:28:47 -04:00
Matthew Kennedy 90cc375f22 Fix F7 ADC #854 (#855)
* invalidate before reading ADC

* fix degree signs

* comment

* remove unecessary alignments, add comments
2019-06-23 09:21:12 -04:00
rusefi 96270758c9 "Calibrate TPS" broken in TS fix #805 2019-06-17 22:00:34 -04:00
rusefi ccc9a23deb code style 2019-06-05 21:39:12 -04:00
rusefi 93c182a269 Trigger: warning code on normal engine start up #669 2019-05-11 10:46:17 -04:00
dron0gus 1b19a36b9e Smart gpios fixes 3 (#795)
* pin_repository: provide readable pin names in error cases

* io_pins: remove getBrain_pin_eExt

We have getBrain_pin_eExt in io_pins.cpp and hwPortname in
pin_repository.cpp.
First uses auto-generated enums, second one uses runtime data to
provide name of hw pin.
Removing first saves us about 2K of flash couse big auto-generated
switch with pin names no more used by anyone and gets optimized out.

* gpios: mc33972: CS pin is now requested at smart_gpios.pcc

* getSpiDevice: support SPI4

* smart_gpios.cpp: startSmartCsPins set CSs to inactive state

OutputPin:initPin initializes pin with false value. This is active
state for SPI Chip Selects. Set to 1 to deselect all chips.
2019-05-09 18:09:24 -04:00
rusefi 2c24571ddb dreams of two ETBs 2019-05-05 12:02:42 -04:00
andreika-git 20b6a17695 EFI_CONSOLE_UART_DEVICE, flash->hw_ports, Fix TLE6240 and misc.fixes (#793)
* rename EFI_CONSOLE_UART_DEVICE -> EFI_CONSOLE_SERIAL_DEVICE

* Impl. EFI_CONSOLE_UART_DEVICE

* Move flash source files to ports/stm32/ & hw_ports.mk

* Fix TLE6240

* Fix EFI_NO_CONFIG_WORKING_COPY

* EFI_PRINT_MESSAGES_TO_TERMINAL
2019-05-05 11:06:27 -04:00
rusEfi 71976df42f MC33816 integraion #784
bare bones skeleton
2019-05-03 21:13:25 -04:00
rusefi 255a25974d refactoring - reducing duplication 2019-04-21 00:04:46 -04:00
rusefi d6cccf7615 USB and TLE8888 not working for F4 or F767 #764 2019-04-20 23:49:26 -04:00
rusefi c12be46861 USB and TLE8888 not working for F4 or F767 #764 2019-04-19 15:11:00 -04:00
rusefi 4ac6fb2216 USB and TLE8888 not working for F4 or F767 #764 2019-04-19 14:22:49 -04:00
rusefi 334b5d1992 steps towards smarter gpio 2019-04-13 12:02:34 -04:00
rusefi 50c481924e steps towards smarter gpio 2019-04-13 10:58:52 -04:00
rusefi fe1f871a69 defined(__DOXYGEN__) ? #748 2019-04-12 20:52:51 -04:00
rusefi 19917361a2 FATAL error loading TS project
fix #736
2019-04-09 22:15:55 -04:00
dron0gus 69df5d4b50 gpios rework (#739)
* Some more include fixes for linux

* Pass cross-compile path through CROSS_COMPILE

* Lower-upper case conversion fixes for linux

* Rename unmarkPin to brain_pin_markUnused

This is part of external gpiochip integration

* Add gpio_pin prefix to markUsed and markUnused

To distinguish from similar functions using brain_pin

* pin_repository: add helpers

this is part of gpio chips integration

* efi_gpio: simplify getHwPin using brain_pin_is_onchip
2019-04-10 01:31:10 +02:00
rusefi acf1216ab0 rusEfi settings editor is broken for one byte enums fix #709 2019-04-08 11:57:16 -04:00
rusefi 05c7baa7a1 CONFIG_RESET_SWITCH_PORT flexibility 2019-04-06 08:41:37 -04:00
rusefi b23f9e9cf4 we need TLE8888 driver #714 2019-04-04 19:56:03 -04:00
dron0gus 3163d04dfb console vs ts cleanup and compilation fix for linux (#728)
* console vs ts cleanup

* include is case-sensetive in linux
2019-04-01 23:04:49 +02:00
andreika-git c7b1bb1ff1 More portability & bootloader fix (#720)
* fix bootloader

* EFI_FSIO

* EFI_EMULATE_POSITION_SENSORS, EFI_BOARD_TEST, EFI_AUX_PID, EFI_JOYSTICK
2019-03-29 15:46:15 +01:00
rusefi 76b7554491 we need TLE8888 driver #714 2019-03-26 12:30:30 -04:00
rusefi 9873606991 more SPI speeds and TLE8888 to full pinout 2019-03-26 10:35:33 -04:00
rusefi ddb0fc6510 better error handling for invalid SPI settings 2019-03-26 09:38:23 -04:00
rusefi 3ff5581e77 SPI prescaler refactoring 2019-03-25 22:41:31 -04:00
rusefi 9a8f31e12f we need TLE8888 driver #714 2019-03-25 15:14:22 -04:00
rusefi 11e60e35bf we need TLE8888 driver #714 2019-03-25 15:08:32 -04:00
dron0gus 19cdfab5f5 Cleanup fixes (#700)
* Kill some more warnings

* pin_repository: add markUnused, allow use from plain C

* ehiGpio.cpp: add forgotten GPIOG port
2019-03-08 07:01:15 -05:00
rusEfi 0244ccb010 fix #698 2019-02-27 17:12:52 -05:00
rusefi 34aa05cda9 refactoring: reducing code duplication 2019-02-23 12:33:49 -05:00
rusefi a3b150a171 Migrating to chibios18 (#687)
* first step #631

* chconf #631

* no EXT driver

* #631 progress

* #631 WOW it already compiles?!

* #631 simulator progress

* #631 CAN is back

* more changes about 25MHz

* Migrate to Chibios 18 stable #631

* undoing some merge mistake?

* little mess

* Migrate to Chibios 18 stable #631

* Migrate to Chibios 18 stable #631

* Migrate to Chibios 18 stable #631
joystick works!

* Migrate to Chibios 18 stable #631
done?!
2019-02-05 18:36:25 -05:00
rusefi 70f5d3e69c better conditional compilation 2019-01-31 11:57:15 -05:00
rusefi fed61c1af4 The Big Refactoring of 2019: DECLARE_ENGINE_PARAMETER_SUFFIX consistency and simplification #657 2019-01-09 22:57:33 -05:00
rusefi 9afe619652 making either Matt or compiler or both happier 2019-01-05 00:11:17 -05:00
rusefi dc5fe620ee Saab CDM knock signal integration #647 2019-01-04 23:47:39 -05:00
rusefi 9917458125 better conditional compilation 2019-01-04 00:16:08 -05:00
rusefi 0888eb9d1f minor clean-up 2018-12-26 20:27:24 -05:00
andreika-git 96dfebc542 STM32 Nucleo144-F767ZI board: Initial support (#620)
* More EFI_ #ifdefs for config flexibility

* Even more config flexibility

* New firmware/config/stm32f7ems/* files

* New firmware/config/boards/NUCLEO_F767/* files

* New firmware/hw_layer/stm32f7/* files

* Fix for EFI_USB_SERIAL

* Adding #if defined(STM32F7XX)

* SPI flags changed in F7: SPI_CR1_DFF --> SPI_CR1_CRCL

* I2Cv2 config changed in F7

* More versatile CCM defines

* Makefiles

* Double #ifs cleanup

* docs
2018-11-16 07:40:06 -05:00
rusefi 6763c54f01 #613 2018-10-16 21:27:05 -04:00
rusefi 4868a9fd82 refactoring 2018-09-16 22:25:17 -04:00
rusefi 70b91d2295 names for error codes 2018-09-10 22:00:13 -04:00
rusefi 60b3aa8e60 unique error codes #598 2018-07-25 23:03:04 -04:00
rusefi 2f887ec315 #569 2018-03-17 21:24:04 -04:00
rusefi f92c7e0993 refactoring: wow, same method name 2018-02-07 00:13:09 +03:00
rusefi 80165c887e docs 2018-01-23 13:04:30 -05:00
rusefi 0de9cc3d15 #215 minor bugfix thank you AndreiKa 2018-01-22 12:24:03 -05:00
rusefi f5a4376036 happy new year 2018-01-20 20:55:31 -05:00
andreika-git 9cd3b6a99f Minor MEMS/Accelerometer compilation fix (#484) 2017-11-02 18:09:13 -04:00
rusefi 58cc02228f #473 2017-08-28 22:32:29 -04:00
rusefi 853289feaf #473 2017-08-28 20:42:27 -04:00
rusefi be5ec054a4 refactoring 2017-06-04 18:43:08 -04:00
rusefi cdbb25eb7c refactoring 2017-06-04 18:29:57 -04:00
rusefi 3d6436d344 refactoring 2017-06-04 16:35:13 -04:00
rusefi 345401a807 a bit of OOP 2017-06-04 16:18:29 -04:00
rusefi ece0438fb6 todo 2017-06-04 15:57:57 -04:00
rusEfi 79ceb0420d nicer ETB properties change 2017-05-30 21:56:56 -04:00
rusefi f8e592f454 better macro name 2017-05-15 23:28:49 -04:00
rusefi fef48d52bc removing unused parameter 2017-05-15 20:31:16 -04:00
rusefi 6f2134511b better method name 2017-05-15 08:40:54 -04:00
rusefi cdf380f09e refactoring: extracting method 2017-05-15 05:03:40 -04:00
rusefi 3e7899a0d9 #140 2017-05-12 21:19:14 -04:00
rusefi 78952261fa flexibility for andreika 2017-05-09 18:55:38 -04:00
Andrei 12ab5e69b3 boardTestModeJumperPin unassigned fix pull request 2017-05-06 21:54:47 +03:00
rusefi 17f671d18c stopping AUX pins 2017-05-02 18:40:33 -04:00
rusEfi 95b3757932 refactoring - reducing GPIO complexity 2017-04-21 20:07:17 -04:00
rusefi b9e5709124 Merge remote-tracking branch 'origin/master' into fresh_chibios_2nd 2017-04-05 20:55:53 -04:00
rusefi d26bee730f stop VSS pin 2017-04-05 18:08:36 -04:00
Fabien Poussin d16f5c7cc2 ChibiOS 16.x update. 2017-03-29 17:54:06 +02:00
rusefi 664b50ac73 progress - pin management 2017-03-19 21:44:52 -04:00
rusefi 5dfc9a32a7 better constant names 2017-03-09 01:10:33 -05:00
rusefi 5d855376f7 individual error codes for all errors 2017-03-05 08:51:21 -05:00
rusefi 9b384630fe better error handling: initializing LCD sooner rather than later 2017-02-24 19:33:06 -05:00
rusefi 55193019cc better error handling: initializing LCD sooner rather than later 2017-02-24 19:26:48 -05:00
rusEfi a77f8d01c2 auto-sync 2017-02-14 21:01:56 -05:00
rusEfi 7ca54121d7 auto-sync 2017-02-14 18:02:36 -05:00
rusEfi 552c664a23 auto-sync 2017-01-03 06:05:22 -05:00
rusEfi 840608fe54 auto-sync 2016-12-19 20:01:37 -05:00
rusEfi e4bad0d9d0 auto-sync 2016-10-10 14:02:17 -04:00
rusEfi e2f78be75d auto-sync 2016-09-21 23:03:22 -04:00
rusEfi b9b08cc7d2 auto-sync 2016-09-15 22:02:00 -04:00
rusEfi 331757d711 auto-sync 2016-09-15 00:01:50 -04:00
rusEfi cb56563247 auto-sync 2016-09-14 19:03:00 -04:00
rusEfi 86fd17801c auto-sync 2016-09-14 10:02:54 -04:00
rusEfi 8d2ea7454c auto-sync 2016-09-14 01:01:57 -04:00
rusEfi f0f35543fc auto-sync 2016-09-14 00:03:14 -04:00
rusEfi 7e6802bc2f auto-sync 2016-07-26 22:01:50 -04:00
rusEfi 97b0b37cf4 auto-sync 2016-07-25 23:03:45 -04:00
rusEfi 8e83736a95 auto-sync 2016-07-17 02:03:46 -04:00
rusEfi b4260c91c1 auto-sync 2016-05-03 23:01:36 -04:00
rusEfi 567a267c5d auto-sync 2016-04-15 23:01:40 -04:00
rusEfi 84a989544a auto-sync 2016-04-03 19:01:59 -04:00
rusEfi 76c4ec5471 auto-sync 2016-03-28 23:03:37 -04:00
rusEfi a6ea11e797 auto-sync 2016-02-11 21:03:53 -05:00
rusEfi 64cefebd52 auto-sync 2016-02-11 16:03:16 -05:00
rusEfi 4fa714bc72 auto-sync 2016-01-31 21:02:03 -05:00
rusEfi 42069e51ac auto-sync 2015-12-31 16:02:30 -05:00
rusEfi 846b77d64b auto-sync 2015-12-21 20:02:32 -05:00
rusEfi e145b11df8 auto-sync 2015-11-11 10:03:21 -05:00
rusEfi 2913857977 auto-sync 2015-09-13 10:01:39 -04:00
rusEfi 0f385498d9 auto-sync 2015-07-13 20:02:18 -04:00
rusEfi 41e7abdd6f auto-sync 2015-07-10 09:01:56 -04:00
rusEfi 69b0c4e2de auto-sync 2015-07-10 08:57:59 -04:00
rusEfi 490da27bb3 auto-sync 2015-07-06 21:33:28 -04:00
rusEfi 1233f4f130 auto-sync 2015-05-17 14:08:56 -04:00
rusEfi b03cb58454 auto-sync 2015-04-25 21:12:30 -04:00
rusEfi d02044a40b auto-sync 2015-04-11 00:04:25 -05:00
rusEfi f077b9f09c auto-sync 2015-04-10 19:04:20 -05:00
rusEfi e73df65dd7 auto-sync 2015-04-07 23:04:53 -05:00
rusEfi a2ce84475f auto-sync 2015-04-07 20:10:24 -05:00
rusEfi add1627382 auto-sync 2015-03-29 18:04:56 -05:00
rusEfi 3904564eb5 auto-sync 2015-03-01 09:05:17 -06:00
rusEfi cb95297a4a auto-sync 2015-02-27 16:07:50 -06:00
rusEfi d95a3d007e auto-sync 2015-02-24 22:04:21 -06:00
rusEfi f99fff6313 auto-sync 2015-02-24 15:08:35 -06:00
rusEfi 6e747b91c8 auto-sync 2015-02-19 08:04:18 -06:00
rusEfi bcc134ac4b auto-sync 2015-02-16 17:08:13 -06:00
rusEfi 21e24f7d5e auto-sync 2015-02-08 09:04:22 -06:00
rusEfi c7303e5807 auto-sync 2015-01-20 17:04:01 -06:00
rusEfi 4dea2c063a auto-sync 2015-01-15 15:03:51 -06:00
rusEfi 85b43ccee5 auto-sync 2015-01-14 21:04:08 -06:00
rusEfi 0db6580011 auto-sync 2015-01-14 20:03:44 -06:00
rusEfi 4b1100fe9d auto-sync 2015-01-14 18:03:39 -06:00
rusEfi 86ccbfd756 auto-sync 2015-01-14 08:05:59 -06:00
rusEfi b64987932b auto-sync 2015-01-13 21:04:02 -06:00
rusEfi 3106182831 auto-sync 2015-01-12 18:05:46 -06:00
rusEfi a174734294 auto-sync 2015-01-12 17:04:10 -06:00
rusEfi f8df820670 auto-sync 2015-01-10 10:04:53 -06:00
rusEfi f1e1c28950 auto-sync 2015-01-08 22:04:09 -06:00
rusEfi 22a9590f73 auto-sync 2015-01-08 14:03:45 -06:00
rusEfi a2d9826006 auto-sync 2015-01-02 17:05:43 -06:00
rusEfi 494b097c65 auto-sync 2015-01-02 16:05:05 -06:00
rusEfi 19464c651e auto-sync 2015-01-02 14:03:28 -06:00
rusEfi 6cae325d9e auto-sync 2014-12-31 18:03:30 -06:00
rusEfi aa07e931f8 auto-sync 2014-12-31 10:05:21 -06:00
rusEfi 642844e6d7 auto-sync 2014-12-28 11:03:29 -06:00
rusEfi d6f8aad361 auto-sync 2014-12-26 14:04:16 -06:00
rusEfi dc878f6b8f auto-sync 2014-12-25 21:03:24 -06:00
rusEfi cd00d0d362 auto-sync 2014-12-25 18:03:21 -06:00
rusEfi 83e2b8feca auto-sync 2014-12-24 20:03:45 -06:00
rusEfi 57f9892b06 auto-sync 2014-12-24 12:05:36 -06:00
rusEfi b3fec2be91 auto-sync 2014-12-23 22:03:31 -06:00
rusEfi 30433e40ae auto-sync 2014-12-05 11:03:16 -06:00
rusEfi 3c87981894 auto-sync 2014-11-25 10:04:15 -06:00
rusEfi 1391eb4847 auto-sync 2014-11-24 11:03:09 -06:00
rusEfi 5b3e70930f auto-sync 2014-11-09 09:03:15 -06:00
rusEfi 485de277c4 auto-sync 2014-11-02 13:04:37 -06:00
rusEfi 7697a8f03c auto-sync 2014-11-02 12:03:07 -06:00
rusEfi ecf82ec1cf auto-sync 2014-10-31 15:03:07 -05:00
rusEfi 40488a0dcf auto-sync 2014-10-22 21:03:06 -05:00
rusEfi 6b197dceb6 auto-sync 2014-10-14 14:02:56 -05:00
rusEfi 693a224c32 auto-sync 2014-09-25 22:06:56 -05:00
rusEfi bd1e3af1f2 auto-sync 2014-09-25 20:02:54 -05:00
rusEfi 4643b63a41 auto-sync 2014-09-20 20:02:53 -05:00
rusEfi 02595406f8 auto-sync 2014-09-20 15:02:57 -05:00
rusEfi f3f8ed33a0 auto-sync 2014-09-20 14:03:00 -05:00
rusEfi b7bd30ff7b auto-sync 2014-09-17 19:02:53 -05:00
rusEfi 2460db4965 auto-sync 2014-09-17 11:03:04 -05:00
rusEfi 9323dee529 auto-sync 2014-09-12 19:05:16 -05:00
rusEfi f14ff5d841 auto-sync 2014-09-08 23:02:56 -05:00
rusEfi 0ceb38dd07 auto-sync 2014-09-08 17:02:52 -05:00
rusefi 4ee83f0fee auto-sync 2014-08-29 10:52:33 -04:00
rusefi 4e25f6cbfc auto-sync 2014-08-29 10:44:55 -04:00
rusefi c8ca527b38 auto-sync 2014-08-29 10:40:11 -04:00
Andrey B 605ae1e7bf fresh version 2014-08-23 18:37:21 -04:00
Andrey B c8d98e3108 manual sync 2014-07-24 17:30:16 -04:00
rusefi 6803af5650 manual sync 2014-07-09 21:15:49 -04:00
rusefi 93b522b2aa manual sync with SF 2014-06-28 14:38:08 -04:00
rusefi 454d695760 manual sync 2014-05-19 10:10:56 -05:00
Andrey B 8295ae4452 manual sync 2014-04-30 09:37:02 -05:00