Commit Graph

288 Commits

Author SHA1 Message Date
rusefi b04166d173 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 a78dc22bf1 better state validation, better error codes 2019-11-29 23:41:26 -05:00
andreika-git 1808642af1 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 9a0b66791b 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 93d24dfc0b Merge remote-tracking branch 'origin/master' into perf-tracing 2019-11-19 16:28:58 -08:00
rusefi 4d095d4844 60/2 VW trigger has running issue on 19/10/19 snapshot fix #986 2019-10-30 20:51:20 -04:00
rusefi 490733ccad 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 627f73502b steps towards #975 2019-10-18 19:45:32 -04:00
rusefi 0e01355c15 steps towards #975 2019-10-18 18:54:32 -04:00
Matthew Kennedy d76670d946 trace all the things 2019-10-14 23:34:12 -07:00
Matthew Kennedy 763b17fb50 experiment 2019-10-11 17:43:21 -07:00
Matthew Kennedy 9c2dd10734 low hanging performance fruit (#969) 2019-10-08 20:44:59 -04:00
rusEfi e29318b939 ETB target is using integer values #945
first we will write a unit test
2019-09-22 00:36:13 -04:00
rusefi c59d8164c6 unit tests progress 2019-09-19 21:41:52 -04:00
rusefi 91f9a50b3f F7 nucleo does not work?
funny, it was about some very unused feature
2019-08-02 01:36:02 -04:00
rusefi cdac02429c refactoring: better file name 2019-07-06 20:15:49 -04:00
rusefi 0295c343b9 Refactoring: OS access should be explicit #867 2019-07-04 03:25:35 -04:00
rusefi b2dece5269 undoing wrong fix & better fix for #805
also generator logging improvements
This reverts commit f07f96599b.
2019-06-30 14:28:47 -04:00
Matthew Kennedy ffb2429608 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 f07f96599b "Calibrate TPS" broken in TS fix #805 2019-06-17 22:00:34 -04:00
rusefi 05e0c436e9 code style 2019-06-05 21:39:12 -04:00
rusefi f270ecaa76 Trigger: warning code on normal engine start up #669 2019-05-11 10:46:17 -04:00
dron0gus 04ee37548b 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 d09bcad3e7 dreams of two ETBs 2019-05-05 12:02:42 -04:00
andreika-git b80d95578d 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 8afee0fd90 MC33816 integraion #784
bare bones skeleton
2019-05-03 21:13:25 -04:00
rusefi bed7dd5684 refactoring - reducing duplication 2019-04-21 00:04:46 -04:00
rusefi f3a6ce0769 USB and TLE8888 not working for F4 or F767 #764 2019-04-20 23:49:26 -04:00
rusefi 2501d69b04 USB and TLE8888 not working for F4 or F767 #764 2019-04-19 15:11:00 -04:00
rusefi b0cdd1d532 USB and TLE8888 not working for F4 or F767 #764 2019-04-19 14:22:49 -04:00
rusefi fb0bbc075c steps towards smarter gpio 2019-04-13 12:02:34 -04:00
rusefi db9456902f steps towards smarter gpio 2019-04-13 10:58:52 -04:00
rusefi 508e9d74e7 defined(__DOXYGEN__) ? #748 2019-04-12 20:52:51 -04:00
rusefi 57ac71a814 FATAL error loading TS project
fix #736
2019-04-09 22:15:55 -04:00
dron0gus c6a1d0cbe0 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 f3d748917f rusEfi settings editor is broken for one byte enums fix #709 2019-04-08 11:57:16 -04:00
rusefi 05d3ce22f4 CONFIG_RESET_SWITCH_PORT flexibility 2019-04-06 08:41:37 -04:00
rusefi 334af50f3f we need TLE8888 driver #714 2019-04-04 19:56:03 -04:00
dron0gus bc0eaf52d8 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 001fbb2526 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 0dadb6de68 we need TLE8888 driver #714 2019-03-26 12:30:30 -04:00
rusefi 8635065907 more SPI speeds and TLE8888 to full pinout 2019-03-26 10:35:33 -04:00
rusefi 7e58e54976 better error handling for invalid SPI settings 2019-03-26 09:38:23 -04:00
rusefi cf740411f2 SPI prescaler refactoring 2019-03-25 22:41:31 -04:00
rusefi 4bb645f7e0 we need TLE8888 driver #714 2019-03-25 15:14:22 -04:00
rusefi c9b022d562 we need TLE8888 driver #714 2019-03-25 15:08:32 -04:00
dron0gus c9edbf4225 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 830e733053 fix #698 2019-02-27 17:12:52 -05:00
rusefi 46bdbf82d1 refactoring: reducing code duplication 2019-02-23 12:33:49 -05:00
rusefi 06be313448
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 ed4fed57fb better conditional compilation 2019-01-31 11:57:15 -05:00
rusefi cbd2d69731 The Big Refactoring of 2019: DECLARE_ENGINE_PARAMETER_SUFFIX consistency and simplification #657 2019-01-09 22:57:33 -05:00
rusefi 19c410387d making either Matt or compiler or both happier 2019-01-05 00:11:17 -05:00
rusefi d80c1f0b1e Saab CDM knock signal integration #647 2019-01-04 23:47:39 -05:00
rusefi e6ac26bf2b better conditional compilation 2019-01-04 00:16:08 -05:00
rusefi 1dcfb7e7f8 minor clean-up 2018-12-26 20:27:24 -05:00
andreika-git 23fea3c0c5 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 c392ba8844 #613 2018-10-16 21:27:05 -04:00
rusefi 3b87b725d1 refactoring 2018-09-16 22:25:17 -04:00
rusefi 7b37195d64 names for error codes 2018-09-10 22:00:13 -04:00
rusefi 959a91ae4c unique error codes #598 2018-07-25 23:03:04 -04:00
rusefi c446e4c666 #569 2018-03-17 21:24:04 -04:00
rusefi d846677abb refactoring: wow, same method name 2018-02-07 00:13:09 +03:00
rusefi 220949f0fa docs 2018-01-23 13:04:30 -05:00
rusefi ca6982d7af #215 minor bugfix thank you AndreiKa 2018-01-22 12:24:03 -05:00
rusefi 1d31067d19 happy new year 2018-01-20 20:55:31 -05:00
andreika-git fc3f215543 Minor MEMS/Accelerometer compilation fix (#484) 2017-11-02 18:09:13 -04:00
rusefi 5ce4fe3157 #473 2017-08-28 22:32:29 -04:00
rusefi dbc0c8876a #473 2017-08-28 20:42:27 -04:00
rusefi 89c25af9d2 refactoring 2017-06-04 18:43:08 -04:00
rusefi c08140d112 refactoring 2017-06-04 18:29:57 -04:00
rusefi 5e6d2c5f03 refactoring 2017-06-04 16:35:13 -04:00
rusefi f65af61e82 a bit of OOP 2017-06-04 16:18:29 -04:00
rusefi a22f52c5ca todo 2017-06-04 15:57:57 -04:00
rusEfi 5cb6cad9b9 nicer ETB properties change 2017-05-30 21:56:56 -04:00
rusefi 2a9f3cdede better macro name 2017-05-15 23:28:49 -04:00
rusefi 7dcf31c004 removing unused parameter 2017-05-15 20:31:16 -04:00
rusefi f27f99e9cc better method name 2017-05-15 08:40:54 -04:00
rusefi 1f07d65fb1 refactoring: extracting method 2017-05-15 05:03:40 -04:00
rusefi d1ecf56a3b #140 2017-05-12 21:19:14 -04:00
rusefi 9649776248 flexibility for andreika 2017-05-09 18:55:38 -04:00
Andrei ab18bdd0e6 boardTestModeJumperPin unassigned fix pull request 2017-05-06 21:54:47 +03:00
rusefi 777296cace stopping AUX pins 2017-05-02 18:40:33 -04:00
rusEfi f1801746f4 refactoring - reducing GPIO complexity 2017-04-21 20:07:17 -04:00
rusefi 9a7aa62cde Merge remote-tracking branch 'origin/master' into fresh_chibios_2nd 2017-04-05 20:55:53 -04:00
rusefi d2581fcdba stop VSS pin 2017-04-05 18:08:36 -04:00
Fabien Poussin 1eb330c600 ChibiOS 16.x update. 2017-03-29 17:54:06 +02:00
rusefi 81d3c1679b progress - pin management 2017-03-19 21:44:52 -04:00
rusefi 4bf5456457 better constant names 2017-03-09 01:10:33 -05:00
rusefi 187e73f4ca individual error codes for all errors 2017-03-05 08:51:21 -05:00
rusefi 27cfa521f0 better error handling: initializing LCD sooner rather than later 2017-02-24 19:33:06 -05:00
rusefi 4e151fae9c better error handling: initializing LCD sooner rather than later 2017-02-24 19:26:48 -05:00
rusEfi 268b572a9b auto-sync 2017-02-14 21:01:56 -05:00
rusEfi 031af798cf auto-sync 2017-02-14 18:02:36 -05:00
rusEfi 55e89f0f31 auto-sync 2017-01-03 06:05:22 -05:00
rusEfi 4f82982598 auto-sync 2016-12-19 20:01:37 -05:00
rusEfi e984e7a0c4 auto-sync 2016-10-10 14:02:17 -04:00
rusEfi 53ebcf4c17 auto-sync 2016-09-21 23:03:22 -04:00
rusEfi 6674a9d941 auto-sync 2016-09-15 22:02:00 -04:00
rusEfi a537af954f auto-sync 2016-09-15 00:01:50 -04:00
rusEfi 5b04050748 auto-sync 2016-09-14 19:03:00 -04:00
rusEfi 5f60c6ccfd auto-sync 2016-09-14 10:02:54 -04:00
rusEfi 600a450838 auto-sync 2016-09-14 01:01:57 -04:00
rusEfi e747b729d2 auto-sync 2016-09-14 00:03:14 -04:00
rusEfi d720d9f10a auto-sync 2016-07-26 22:01:50 -04:00
rusEfi 46b4cb9855 auto-sync 2016-07-25 23:03:45 -04:00
rusEfi 94625d16f7 auto-sync 2016-07-17 02:03:46 -04:00
rusEfi c9c093d3dc auto-sync 2016-05-03 23:01:36 -04:00
rusEfi 8a9615b530 auto-sync 2016-04-15 23:01:40 -04:00
rusEfi d36edd5f03 auto-sync 2016-04-03 19:01:59 -04:00
rusEfi 8d7b50132f auto-sync 2016-03-28 23:03:37 -04:00
rusEfi e11345f6a3 auto-sync 2016-02-11 21:03:53 -05:00
rusEfi aa3ed8a24e auto-sync 2016-02-11 16:03:16 -05:00
rusEfi 00a0995823 auto-sync 2016-01-31 21:02:03 -05:00
rusEfi fbdea87819 auto-sync 2015-12-31 16:02:30 -05:00
rusEfi 2067b4c3c0 auto-sync 2015-12-21 20:02:32 -05:00
rusEfi 17bef32768 auto-sync 2015-11-11 10:03:21 -05:00
rusEfi c9852aa7b5 auto-sync 2015-09-13 10:01:39 -04:00
rusEfi b3bb926ee8 auto-sync 2015-07-13 20:02:18 -04:00
rusEfi 969ebbf142 auto-sync 2015-07-10 09:01:56 -04:00
rusEfi 298341e0d1 auto-sync 2015-07-10 08:57:59 -04:00
rusEfi 241498d330 auto-sync 2015-07-06 21:33:28 -04:00
rusEfi 8283186729 auto-sync 2015-05-17 14:08:56 -04:00
rusEfi 8a13b50d32 auto-sync 2015-04-25 21:12:30 -04:00
rusEfi 55859f8073 auto-sync 2015-04-11 00:04:25 -05:00
rusEfi 3c560218cc auto-sync 2015-04-10 19:04:20 -05:00
rusEfi c84fa2ec2e auto-sync 2015-04-07 23:04:53 -05:00
rusEfi 59cf3cc9bc auto-sync 2015-04-07 20:10:24 -05:00
rusEfi eedc5c42ed auto-sync 2015-03-29 18:04:56 -05:00
rusEfi 5d2aab9881 auto-sync 2015-03-01 09:05:17 -06:00
rusEfi d6ff30e894 auto-sync 2015-02-27 16:07:50 -06:00
rusEfi f26a1eef6d auto-sync 2015-02-24 22:04:21 -06:00
rusEfi e737debcc1 auto-sync 2015-02-24 15:08:35 -06:00
rusEfi 9ba24a615d auto-sync 2015-02-19 08:04:18 -06:00
rusEfi 9f382381a7 auto-sync 2015-02-16 17:08:13 -06:00
rusEfi 6afc1ee874 auto-sync 2015-02-08 09:04:22 -06:00
rusEfi b4ca344bd9 auto-sync 2015-01-20 17:04:01 -06:00
rusEfi c5e639582c auto-sync 2015-01-15 15:03:51 -06:00
rusEfi 95e172586f auto-sync 2015-01-14 21:04:08 -06:00
rusEfi 93d4e5c5c6 auto-sync 2015-01-14 20:03:44 -06:00
rusEfi 4ecfdd24b5 auto-sync 2015-01-14 18:03:39 -06:00
rusEfi 13c60095a8 auto-sync 2015-01-14 08:05:59 -06:00
rusEfi a81741dbbc auto-sync 2015-01-13 21:04:02 -06:00
rusEfi f8ee4cf62c auto-sync 2015-01-12 18:05:46 -06:00
rusEfi 9820527bdb auto-sync 2015-01-12 17:04:10 -06:00
rusEfi a3584ca70b auto-sync 2015-01-10 10:04:53 -06:00
rusEfi cdb5f18ed7 auto-sync 2015-01-08 22:04:09 -06:00
rusEfi 4289885171 auto-sync 2015-01-08 14:03:45 -06:00
rusEfi 6a642e4de5 auto-sync 2015-01-02 17:05:43 -06:00
rusEfi 6493666d64 auto-sync 2015-01-02 16:05:05 -06:00