Commit Graph

1222 Commits

Author SHA1 Message Date
rusefi 44cc5d516d manual sync with https://github.com/NOx-z/rusefi/tree/mc33816_spi 2019-06-06 20:12:03 -04:00
rusefi 8456bd3c23 reviving tle8888 configuration 2019-06-05 22:32:30 -04:00
rusefi 24f5404524 minor cleanup 2019-06-05 22:04:31 -04:00
rusefi 7c5522b682 code style 2019-06-05 21:44:58 -04:00
rusefi ccc9a23deb code style 2019-06-05 21:39:12 -04:00
andreika-git 9da735654a fix Simulator (#818) 2019-06-02 17:26:35 -04:00
andreika-git e9c383ce7e STM32-specific GPIO refactor (stm32_pins.cpp) (#817)
* stm32_pins.cpp

* PIN_USED & other
2019-06-02 16:48:38 -04:00
rusefi c77ec2a4c9 docs 2019-05-30 17:43:40 -04:00
rusefi d9bad5894e typo 2019-05-28 18:19:51 -04:00
rusefi 8575e2f4d2 refactoring 2019-05-27 18:58:43 -04:00
rusefi e736578452 docs 2019-05-27 17:02:46 -04:00
rusefi dac10d23b0 MC33816 integraion #784 2019-05-25 17:18:16 -04:00
rusefi d2f6a37cba MC33816 integraion #784 2019-05-25 15:35:25 -04:00
rusefi 2901d9f902 nicer pin names for messages while same short names for engine sniffer 2019-05-15 04:26:41 -04:00
rusefi 8465d11df7 docs 2019-05-15 04:16:41 -04:00
rusefi 100f9ccf14 Missing ADC Pins for ADC3, PF port #785
refactoring
2019-05-14 19:04:49 -04:00
rusefi bde091a840 Missing ADC Pins for ADC3, PF port #785 2019-05-14 16:38:14 -04:00
rusefi 93c182a269 Trigger: warning code on normal engine start up #669 2019-05-11 10:46:17 -04:00
rusefi 759dfd989c USB pins are not registered in pin_repository fix #797 2019-05-10 19:06:28 -04:00
rusefi c985f6fc8f CI instability: FATAL error: warn stream not initialized for 6039 #798 2019-05-10 18:58:05 -04:00
rusefi b0e1ad12be docs 2019-05-10 18:51:48 -04:00
rusefi 81a79561b1 refactoring 2019-05-10 17:53:41 -04:00
rusefi 5e8b28be49 docs 2019-05-10 17:53:17 -04:00
rusefi d00eea0678 refactoring 2019-05-10 17:51:12 -04:00
rusefi 91c404b353 FEATURE REQ: aux temperature inputs #332 2019-05-09 19:39:21 -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 277cdfe301 docs 2019-05-08 10:58:43 -04:00
rusefi 8a90297160 refactoring: better method name 2019-05-07 19:32:08 -04:00
rusefi a6fc10910a Saab CDM knock signal integration #647 2019-05-05 18:53:34 -04:00
rusefi 8794e72cd2 Saab CDM knock signal integration #647 2019-05-05 17:21:36 -04:00
rusefi c5087257ec the future is now :) 2019-05-05 16:43:07 -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
960 520b003e16 Initial engine config, and cleanup. (#786)
* Add files via upload

Initial Engine Config

* Add files via upload

Cleanup

* Added Can coolant message for newer cars
2019-05-04 22:11:05 -04:00
rusefi e359ddbb25 MC33816 integraion #784
progress
2019-05-03 21:54:38 -04:00
rusefi 18e0ab0d97 MC33816 integraion #784
progress
2019-05-03 21:38:34 -04:00
rusEfi 71976df42f MC33816 integraion #784
bare bones skeleton
2019-05-03 21:13:25 -04:00
rusefi 7825c2d0b1 More CAN messages for VAG (#779) 2019-04-30 18:33:29 -04:00
rusefi ea86d987c8 PID - fix dTime usages #776 2019-04-25 21:31:33 -04:00
rusefi a37efe21a9 TPS is worth being FAST 2019-04-24 20:51:14 -04:00
rusefi 23e591a253 this change is probably breaking stuff, but some stuff is already broken. something is not right in too many places :( 2019-04-21 14:00:19 -04:00
dron0gus 12e14e5ff7 Smart gpio error path and minor fixes (#772)
* smart_gpio: fix error path

If chip driver disable in FW, disabled in settings or failed to init
we still need to ocupy its gpio range.

* smart_gpio: get tle6240 CS from config

* smart_gpio: fix debug messaging
2019-04-21 10:35:13 -04:00
rusefi 568a5a5fea fixing build? 2019-04-21 10:00:14 -04:00
dron0gus 83d1f254a1 Exti rework (#770)
* io_pins: implement efiSetPadUnused

When pin becomes unused it should be switched to safe mode and
disconnected from any IP block. Assume that gpio input mode with
pull-up is safe enough.

* trigger_input: switch triggers pins to safe mode on stop/reinit

* digital_input_exti: rework

* rename enableExti to efiExtiEnablePin
* add efiExtiDisablePin
* keep track of used exti channels

* trigger_input: use digital_input_exti functions
2019-04-21 09:28:49 -04:00
dron0gus 986a4d1748 tle8888: fix pin names array (#771) 2019-04-21 08:50:07 -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 0b1620feb2 USB and TLE8888 not working for F4 or F767 #764 2019-04-20 23:39:06 -04:00
rusefi 4807f39435 fixing build? 2019-04-20 13:42:31 -04:00
rusefi fd4929e586 input mode control and other pin mode control #767
taking a step back with PAL trigger
2019-04-20 13:19:23 -04:00
rusefi 56511da9e1 input mode control and other pin mode control #767
TODO
2019-04-20 10:59:07 -04:00
rusefi 16c68ef5d1 docs 2019-04-20 10:21:45 -04:00
rusefi 1878fd4e34 USB and TLE8888 not working for F4 or F767 #764 2019-04-20 10:19: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 a2bb2a2eb8 USB and TLE8888 not working for F4 or F767 #764 2019-04-19 14:12:13 -04:00
rusefi c55300df7d USB and TLE8888 not working for F4 or F767 #764 2019-04-19 13:01:06 -04:00
rusefi 476db0c857 USB and TLE8888 not working for F4 or F767 #764 2019-04-19 12:42:21 -04:00
rusefi 1bca671537 USB not working for F4 or F767 #764 2019-04-19 06:07:40 -04:00
dron0gus aaad44dfa1 Smart gpio fixes 2 (#765)
* gpio chips: relax error checking on _add

Do not halt whole system if wrong or nulled config is passed.
In current smart-gpio implementation this can happen and it is not
as error. Let smart-gpio handle this, kust reurn negative.

* tle8888: return back includes needed for debug

* smar-gpio: -Werror=missing-field-initializers fix
2019-04-19 01:42:24 -04:00
dron0gus e0796d673b Smart gpios fixes - now without cleanup of smart_gpio.cpp (#758)
* smart_gpio.cpp: check _add return values

And occupy gpiochip's pin range if disabled of failed. So base will
align with enum.

* TLE8888: cleanup, move high level code to smart_gpio.cpp

* smart_gpio.cpp: fix compilation when BOARD_EXT_GPIOCHIPS == 0

* board-subaru: fix compilation after latest smart_gpio updates

* tle8888: now we have all 28 pins supported
2019-04-16 09:23:24 -04:00
rusefi c4a0de35d5 baro? 2019-04-16 01:55:15 -04:00
andreika-git ca255a90c2 More config portability: TLE6240, Trigger_input, UART/Serial (#759)
* Add fields to UART/Serial configs

* trigger_input: can be both HAL_USE_PAL and HAL_USE_COMP

* tle6240 config: local temporary solution

* Fix for custom_engine::setFsio

* EFI_ACTIVE_CONFIGURATION_IN_FLASH
2019-04-15 08:40:12 -04:00
rusefi f6eb829fef cj125 and hip125 and else SPI broken with chibi18 migration #757 2019-04-14 18:09:58 -04:00
rusefi 7d976323a0 Merge remote-tracking branch 'origin/master' 2019-04-14 13:57:09 -04:00
rusefi 6bda683fba random cleanup 2019-04-14 13:52:27 -04:00
andreika-git 4e7715fab2 Add more portability to smart_gpio & SPI (#754) 2019-04-14 13:35:30 -04:00
rusefi b552b8c47d Merge remote-tracking branch 'origin/master' 2019-04-14 13:19:52 -04:00
rusefi dfe3fbe9dd random cleanup 2019-04-14 13:19:36 -04:00
rusefi d67f3dc6e1 we need TLE8888 driver #714 2019-04-14 08:20:25 -04:00
dron0gus 527cba3e35 TLE8888: remove hacks (#753) 2019-04-14 08:15:01 -04:00
rusefi d4d9fb2721 last part of this typo 2019-04-14 07:45:28 -04:00
rusefi 7a2fa62635 typo 2019-04-13 22:56:33 -04:00
rusEfi ad50909f18 thank you Dron_gus fot the idea! 2019-04-13 19:55:18 -04:00
dron0gus d0945b9449 Smart gpios (#752)
* efi_gpio: update cached pin value for ext gpios to

* tle6240: update and fix

* gpiochips_init should be called after all gpio chips are added

or we can lost calls to _init of chips

* smart_gpio.c: fix for tle6240 and mc33972

now config structs are not const. waste of ram...
2019-04-14 01:32:46 +02:00
rusEfi 8d587ed3c9 my hope is gone 2019-04-13 19:09:39 -04:00
rusEfi 7a96c42d86 talk to me? 2019-04-13 18:47:32 -04:00
rusEfi 45df0b0eba reducing risks 2019-04-13 18:26:29 -04:00
rusEfi 6cec2dcabf I am in macro hell :( 2019-04-13 17:34:26 -04:00
rusefi 45c8c194e1 we need TLE8888 driver #714 2019-04-13 12:43:19 -04:00
rusefi 334b5d1992 steps towards smarter gpio 2019-04-13 12:02:34 -04:00
rusefi fb1dd5a3ca steps towards smarter gpio 2019-04-13 11:22:40 -04:00
rusefi c53433801c 'pins' fix 2019-04-13 10:59:29 -04:00
rusefi 50c481924e steps towards smarter gpio 2019-04-13 10:58:52 -04:00
rusefi 834fce0828 steps towards smarter gpio 2019-04-13 10:11:28 -04:00
rusefi fe1f871a69 defined(__DOXYGEN__) ? #748 2019-04-12 20:52:51 -04:00
rusefi 8f4795d9fa smarter PWM API - need to pass arbitrary pointer 2019-04-12 20:15:18 -04:00
rusefi 54f83a431e smarter PWM API - need to pass arbitrary pointer 2019-04-12 20:11:27 -04:00
rusefi cad2297a72 smarter PWM API - need to pass arbitrary pointer 2019-04-12 20:06:09 -04:00
dron0gus 3c0d91e94b gpio-chips: TLE8888 add initial support of spi-driven outputs (#750) 2019-04-13 01:22:16 +02:00
rusefi 484e9ff7a4 fix or safer code? 2019-04-12 18:10:47 -04:00
rusefi 174fd2d0be progress 2019-04-12 17:39:49 -04:00
dron0gus e895593e67 Simulator (#749)
* Hide trigger_input.cpp if EFI_SHAFT_POSITION_INPUT == FALSE

* hide some hw-specific code under EFI_PROD_CODE
2019-04-12 23:28:19 +02:00
dron0gus da452aafa7 gpio chips (#744)
* tle8888: fix building for stm32f765

* gpio-chips: add mc33972 driver
2019-04-12 22:14:25 +02:00
rusefi d890830e93 fixing at least unit tests 2019-04-12 08:33:40 -04:00
dron0gus eee9a5c867 trigger input: add PAL support (#743) 2019-04-12 14:05:53 +02:00
rusefi 0a341e668d SPI-controlled outputs #697
better spot for this code
2019-04-10 18:23:31 -04:00
rusefi e002f141fa fixing build - BOOTLOADER has it's special limitations 2019-04-10 09:02:32 -04:00
dron0gus 551f2f5883 Gpiochips integration (#740)
* gpio-chips core function renames

* efi_gpio, pin_repository: add support for external gpios

* gpio-chips update

* gpio-chips: add api to name each pin of gpiochip

* tle6240: provide individual names for each pin
2019-04-10 14:43:54 +02:00
rusefi 757832c91b The Big Refactoring of 2019: folder structure #723 2019-04-09 22:52:03 -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
dron0gus 12e07bc3ab Some more include fixes for linux (#738)
* Some more include fixes for linux

* Pass cross-compile path through CROSS_COMPILE

* Lower-upper case conversion fixes for linux
2019-04-10 01:12:35 +02:00
rusefi e30dfaf333 reducing duplication
removing unused (?) defines
removing value space overlap between PROJECT_BOARD and PROJECT_CPU
2019-04-09 18:37:25 -04:00
rusefi acf1216ab0 rusEfi settings editor is broken for one byte enums fix #709 2019-04-08 11:57:16 -04:00
rusefi 82028b29f8 better ICU error handling 2019-04-07 18:25:46 -04:00
rusefi 23d3ac0a84 we need TLE8888 driver #714 2019-04-07 08:35:04 -04:00
rusefi 3cc32a5c09 we need TLE8888 driver #714
F7 support
2019-04-06 22:04:35 -04:00
rusefi 33b0bee2cd we need TLE8888 driver #714 2019-04-06 13:11:46 -04:00
rusefi 131533cc13 we need TLE8888 driver #714 2019-04-06 12:26:37 -04:00
rusefi dd09ea7d90 we need TLE8888 driver #714
it works now! all SPI/CS pins in 'default' mode
2019-04-06 10:30:20 -04:00
rusefi 05c7baa7a1 CONFIG_RESET_SWITCH_PORT flexibility 2019-04-06 08:41:37 -04:00
rusefi b4077d72ba we need TLE8888 driver #714 2019-04-06 07:38:02 -04:00
dron0gus 878b75f575 tle8888: fix spi confog for STM32F4 (#735)
* tle8888: fix spi confog for STM32F4

* TLE8888: fix array out of bounds access due to incorrect define used in loop
2019-04-06 00:37:00 +02:00
rusefi 259ff0141a we need TLE8888 driver #714 2019-04-04 23:03:32 -04:00
rusefi ab601820e0 we need TLE8888 driver #714 2019-04-04 20:57:51 -04:00
rusefi 53f5a60ff5 we need TLE8888 driver #714 2019-04-04 20:03:31 -04:00
rusefi b23f9e9cf4 we need TLE8888 driver #714 2019-04-04 19:56:03 -04:00
rusefi 9c05a42b1b we need TLE8888 driver #714 2019-04-04 19:29:33 -04:00
dron0gus ea1f2527cb Extgpios integration 1 (#734)
* pin repository: add brain_pin_markUsed and brain_pin_markUnused

This is part of external gpio chips integration

* pin repository: simplify getPinFunction()

* pin repository: add brain_pin_is_onchip()

This is part of external gpio chips integration

* pin repository: kill signed vs unsigned warning
2019-04-05 00:53:27 +02:00
rusefi 72251d6a24 fixing build 2019-04-04 18:52:00 -04:00
rusefi 386aed5c2d fixing unit tests 2019-04-04 10:08:50 -04:00
dron0gus fde76155f2 TLE8888: initial support (#733) 2019-04-04 15:55:18 +02:00
rusefi 0121a7bc5b The Big Refactoring of 2019: folder structure #723 2019-04-02 23:19:21 -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 7d123b0507 ADC_CHANNEL_SENSOR & EFI_INTERNAL_ADC (#726) 2019-04-01 20:02:19 +02:00
rusefi 59d33c4cdc The Big Refactoring of 2019: folder structure #723 2019-03-31 17:44:34 -04:00
andreika-git 03a8e68b2d trigger_input_icu, EFI_ENABLE_MOCK_ADC, HALINC_CONTRIB (#724)
* trigger_input_icu.cpp

* EFI_ENABLE_MOCK_ADC

* $(HALINC_CONTRIB)
2019-03-31 23:15:32 +02:00
andreika-git 97191fda08 More portability and smaller RAM footprint possible (#722)
* EFI_NO_CONFIG_WORKING_COPY

* EFI_CONSOLE_NO_THREAD

* EFI_SHAFT_POSITION_INPUT

* #ifndef UTILITY_THREAD_STACK_SIZE

* fix printf() -> print()
2019-03-30 22:41:46 +01: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
andreika-git a79175f6ef More portability & small fixes (#719)
* Use hw_stm32.mk

* Fix bootloader

* Use more common hw_ports.mk filename instead of hw_stm32.mk

* More CPU compatibility for Makefile

* TS_UART_MODE & rename TS_SERIAL_UART_DEVICE->TS_SERIAL_DEVICE

* Move lockAnyContext()/unlockAnyContext() to rfiutil.c

* USE_FATFS

* EFI_LCD

* Less compilation errors

* STATUS_LOGGING_BUFFER_SIZE & SETTINGS_LOGGING_BUFFER_SIZE

* EFI_ALTERNATOR_CONTROL, EFI_SERVO, EFI_DISABLE_CONSOLE_ACTIONS

* #ifndef PWM_PHASE_MAX_COUNT & more flexible GPIO inside portname()

* merge

* EFI_ALTERNATOR_CONTROL, EFI_ELECTRONIC_THROTTLE_BODY
2019-03-29 15:29:01 +01:00
rusefi 5311bfa502 unifying_file_naming 2019-03-29 09:40:43 -04:00
rusefi ad46204200 git 2019-03-29 09:38:08 -04:00
rusefi e28ce71bb8 unifying_file_naming 2019-03-29 09:11:13 -04:00
rusefi 9c4da7d9f8 better location for spi pin modes
stm32-specific code would upset someone
2019-03-29 02:44:52 -04:00
andreika-git 2363d1b4ae Fix bootloader (#717)
* Use hw_stm32.mk

* Fix bootloader
2019-03-29 06:46:48 +01:00
andreika-git a3f33f3f0d More compatibility for ADC_inputs, etc. (#716)
* Move STM32-specific ADC pinouts to ports/stm32/stm32_common.cpp

* Move STM32-specific files to ports/*

* setAdcChannelOverrides()

* Add #ifdefs for adc_inputs (PWM_FREQ_*, PWM_PERIOD_*, ADC_*_DEVICE)

* addChannel(), removeChannel()

* fix tle6240 compilation

* Add stm32_common.cpp to Makefile

* More ports/stm32/* paths

* More ports/stm32/* paths

* More flexible GPIO ports

* Add #ifdef for GPTDEVICE

* EFI_BOARD_TEST and EFI_JOYSTICK

* EFI_TLE8888

* Fix HIP9011_logic compilation

* ADC_CHANNEL_SENSOR

* Move ioportid_t PORTS[] to ports/*

* Fix simulator
2019-03-28 22:46:10 -04:00
rusefi 740d18fc0f we need TLE8888 driver #714 2019-03-27 04:02:34 -04: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 1f81aa169a we need TLE8888 driver #714 2019-03-25 20:30:36 -04:00
rusefi fb860c37cb we need TLE8888 driver #714 2019-03-25 15:50:14 -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
rusefi defdacd895 typos and better parameter name 2019-03-25 14:29:34 -04:00
rusefi 79c9a2956e #705 (#706) 2019-03-15 09:13:54 -04:00
dron0gus 726f84f5ee tle6240 gpio driver implementation (#704)
* TLE6240: move to gpio drivers directory

* TLE6240: add gpiochip driver code
2019-03-13 08:03:22 -04:00
rusefi 8303dc7595 refactoring: no logic changes, just nicer variable and method names 2019-03-12 18:54:46 -04:00
dron0gus 68884cc4ae gpiochips API, core and unit test (#703)
* Add external gpiochips driver API and core

* gpiochips: add unit test
2019-03-12 10:12:37 -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 7f725b6d60 making gcc8 happier? 2019-03-02 18:41:25 -05:00
rusEfi 0244ccb010 fix #698 2019-02-27 17:12:52 -05:00
rusefi d5ed794d28 refactoring - using proper enum 2019-02-24 10:04:00 -05:00
rusefi 34aa05cda9 refactoring: reducing code duplication 2019-02-23 12:33:49 -05:00
rusefi e1ba29febd 688 brainpins (#694)
* GPIOF, GPIOG and GPIOH ports are not available #688
2019-02-22 22:10:41 -05:00
dron0gus 2027977e2c warning cleanup (#693)
* Kill annoing warnings about unused vars

* Kill annoing signed vs unsigned warnings

* Make ALWAYS_INLINE macro realy inlining

* Incorrect attribute placement.

While correct attribute placement cause ram4 overflow.
Move to correct place (to avoid gcc-2018-q4 errors) and comment
out.

* Silence -Wcast-function-type warnings

Cast to intermediate "void *" to lose compiler knowledge about the original
type and pass the warning. This is a workaround.
2019-02-21 05:44:45 -05:00
rusefi b13da10a67 getRemainingStack() is back! 2019-02-12 01:24:42 -05:00
rusefi 42bfe8cf28 wider usage of PeriodicController 2019-02-11 15:09:24 -05:00
rusefi c60c8ce777 better (?) variable names 2019-02-10 22:47:49 -05:00
rusefi 9a6446c654 ETB PeriodicController refactoring 2019-02-10 19:52:06 -05:00
rusefi 1ebc49ee09 docs 2019-02-07 01:18:36 -05:00
rusefi 6dc7c41e43 F7 has different memory bank sizes 2019-02-07 01:06:39 -05:00
rusefi 07e2d10a27 code clean-up 2019-02-07 00:26:55 -05:00
rusefi f615e9361c F746 flexibility 2019-02-06 23:34:39 -05:00
rusefi 0a505d2bb1 F7 progress :) 2019-02-06 18:41:48 -05:00
rusefi 3dab001151 docs 2019-02-06 18:18:21 -05:00
rusefi 0fe4efbee3 refactoring: duplicated import, already imported 2019-02-05 21:06:18 -05:00
rusefi b745911d33 docs 2019-02-05 19:00:52 -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 48ae7043fe Migrate to Chibios 18 stable #631 2019-02-03 22:17:46 -05:00
rusefi 7549f7e0fc CJ125 unit-tests coverage #617 2019-02-02 01:45:26 -05:00
rusefi e4e47ae833 CJ125 unit-tests coverage #617 2019-02-02 01:06:45 -05:00
rusefi 4796942097 CJ125 unit-tests coverage #617 2019-02-01 23:48:11 -05:00
rusefi 6992480f74 CJ125 unit-tests coverage #617 2019-02-01 23:16:34 -05:00
rusefi dd7add7a78 CJ125 heater zero PWM improvement 2019-02-01 22:20:15 -05:00
rusefi 70f5d3e69c better conditional compilation 2019-01-31 11:57:15 -05:00
rusefi 0e82173958 #631 TIME_MS2I mostly 2019-01-28 20:00:17 -05:00
rusefi 068bc5c25c #631 2019-01-28 19:50:37 -05:00
rusefi 8f08591510 #631 2019-01-28 19:33:51 -05:00
rusefi e7a694a87c #657 pulling global access down 2019-01-28 00:52:21 -05:00
rusefi aba0f44df5 NA6 progress
A/C toggle switch indicator in TS
renaming "pedalPosition" to "throttlePedalPosition"
2019-01-27 00:02:58 -05:00
rusefi 9a42041723 docs 2019-01-25 21:04:33 -05:00
rusefi 53e8d10c55 refactoring around GET_RPM 2019-01-21 21:48:58 -05:00
rusefi ad64e1b410 refactoring around GET_RPM 2019-01-21 20:33:21 -05:00
rusefi d671f569c3 #35 progress 2019-01-19 11:28:37 -05:00
rusefi af7def0cba #35 unit tests 2019-01-19 09:40:39 -05:00
rusefi cd0b49fcfd #35 unit tests 2019-01-19 09:14:48 -05:00
rusefi f140c97ab2 BUG: FATAL in firmware with DEBUG mode #667 2019-01-11 17:40:44 -05:00
rusefi 3acc936c6b #640 Occasional halts on "Burn" in TunerStudio ("Red" LED is on) 2019-01-11 15:44:24 -05:00
rusefi e786bb684b comments for #663 #664 2019-01-11 08:37:02 -05:00
Matthew Kennedy dd905b23ea Implement ST-recommended workaround for #663 (#664)
* fix #663

* consistency
2019-01-11 08:34:34 -05:00
rusefi 55e74865b7 docs 2019-01-11 08:33:34 -05:00
Matthew Kennedy fd8c6a8906 idle CS pin fix #665 (#666) 2019-01-11 08:12:26 -05:00
rusefi c1509dd0b7 The Big Refactoring of 2019: DECLARE_ENGINE_PARAMETER_SUFFIX consistency and simplification #657 2019-01-10 19:25:07 -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 93b08dcc4c The Big Refactoring of 2019: DECLARE_ENGINE_PARAMETER_SUFFIX consistency and simplification #657 2019-01-09 22:16:30 -05:00
rusefi 9f63ea4130 The Big Refactoring of 2019: scheduler should not be global #655 2019-01-09 08:50:51 -05:00
rusefi 84bcf68849 The Big Refactoring of 2019: scheduler should not be global #655 2019-01-09 07:57:43 -05:00
rusefi dce2e17f1b #655 clean-up 2019-01-09 00:25:45 -05:00
rusefi e14c7e6e92 #35 first unit test with a mock! 2019-01-08 01:20:18 -05:00
rusefi c027473bc1 #35 refactoring towards making class testable 2019-01-08 00:28:53 -05:00
rusefi cf6dcc495c #35 refactoring towards making class testable 2019-01-07 23:55:56 -05:00
rusefi 519316da16 #35 2019-01-07 23:23:50 -05:00
rusefi 29ca0cb683 fixing unit tests 2019-01-07 09:28:32 -05:00
Matthew Kennedy 435a255043 Implement common for controllers (#645)
* controller

* remove stopping thread

* move microsecond timer watchdog

* docs

* typo snuck in

* go back to the old way
2019-01-06 21:15:49 -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 c75951e8a0 #35 2019-01-04 19:20:32 -05:00
rusEfi c3380c4ef3 #35 2019-01-04 17:18:43 -05:00
rusefi f0fbfb5301 #35 progress 2019-01-04 09:24:23 -05:00
rusefi 68cb4a0452 #35 trying new kind of parameter magic 2019-01-04 00:51:32 -05:00
rusefi 7dfabdbe4d #35 2019-01-04 00:22:35 -05:00
rusefi 9917458125 better conditional compilation 2019-01-04 00:16:08 -05:00
rusefi cb6fb2a9ca better conditional compilation 2019-01-03 23:51:29 -05:00
rusefi 84d91aa5bd refactoring: extract method 2019-01-03 22:53:34 -05:00
rusefi 81798b9faf cj125 refactoring 2019-01-03 08:26:42 -05:00
rusefi 9f14429db2 #617 unit test skeleton 2019-01-03 07:57:34 -05:00
rusefi e3acb434c0 #617 2019-01-03 07:22:21 -05:00
rusefi 2140a95a7d ion sense progress 2018-12-31 16:00:41 -05:00
rusefi 92dc1e2176 funny progress 2018-12-30 19:13:28 -05:00
Fabien Poussin 1f29b5dd37 Workarounds for GCC 8 (#637) 2018-12-27 09:40:40 -05:00
rusefi e8579e7e8e reviving stm32f1 2018-12-26 22:17:51 -05:00
rusefi 0888eb9d1f minor clean-up 2018-12-26 20:27:24 -05:00
rusefi d56050dada avoiding magic constant 2018-12-24 00:15:00 -05:00
rusefi 6580459647 docs 2018-12-23 23:29:19 -05:00
rusefi 1c373573a2 EXTI refactoring 2018-12-18 23:50:29 -05:00
rusefi ee6e9b455d progress 2018-12-16 09:03:21 -05:00
rusefi 00a7f26ef9 progress 2018-12-16 01:13:44 -05:00
rusefi 41c63cec78 docs 2018-12-12 23:36:36 -05:00
rusefi e727f4cd85 exti refactoring 2018-12-12 22:27:44 -05:00
rusefi 4354cd3881 exti clean-up 2018-12-12 18:02:00 -05:00
rusEfi d628cffd09 docs 2018-12-09 16:50:22 -05:00
rusEfi a4e9c00ff0 docs 2018-12-09 16:46:53 -05:00
rusefi b54d20e209 docs 2018-12-09 14:47:24 -05:00
rusefi 66ff934c6a #630 2018-12-09 14:32:50 -05:00
rusefi 7dd683bf36 bringing std types together 2018-12-08 15:51:45 -05:00
rusEfi d93f3ecd89 better? field name 2018-11-30 00:17:55 -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 f1e369aa70 CJ125 unit-tests coverage #617 2018-11-03 13:45:36 -04:00
rusefi 992ac3f274 CJ125 unit-tests coverage #617 2018-11-03 13:38:02 -04:00
rusefi 3f038c0db1 CJ125 unit-tests coverage #617 2018-11-03 13:27:48 -04:00
rusefi 8081b07782 CJ125 unit-tests coverage #617 2018-11-03 13:17:58 -04:00
rusefi 996ca909de CJ125 unit-tests coverage #617 2018-11-03 11:44:57 -04:00
rusefi bfe9d4f79b CJ125 unit-tests coverage #617 2018-11-03 09:44:34 -04:00
rusefi 951f1b3cd3 #616 idle for simulator 2018-11-02 13:38:31 -04:00
rusefi cb8fccc19c #616 2018-11-02 13:18:47 -04:00
rusefi a3e77d7b28 #616 idle for simulator 2018-11-01 15:57:50 -04:00
rusefi 8af9751beb #616 idle into simulator 2018-10-30 08:21:50 -04:00
rusefi 7843e69bbd docs 2018-10-21 11:27:19 -04:00
rusEfi 46146a23dc more options & format change 2018-10-16 23:05:38 -04:00
rusefi f72c833cc7 options 2018-10-16 21:31:48 -04:00
rusefi 6763c54f01 #613 2018-10-16 21:27:05 -04:00
andreika-git a7b7f94e0d Prepare for TPS-based Advance and tCharge Modes + Fixes (#610)
* rusefi_config.txt

* rusefi.input for TPS-based Advance

* rusefi.input for tCharge

* Fix compilation for Prometheus config

* Fix CJ125 calibration & debug flood

* Fix EnumToString utility for main.h->global.h refactoring
2018-09-25 15:45:17 -04:00
rusefi c3a57b6a77 refactoring 2018-09-16 22:39:46 -04:00
rusefi 553969dc72 refactoring 2018-09-16 22:26:57 -04:00
rusefi 4868a9fd82 refactoring 2018-09-16 22:25:17 -04:00
rusefi ca3585eb52 refactoring 2018-09-16 20:28:23 -04:00
rusefi 70b91d2295 names for error codes 2018-09-10 22:00:13 -04:00
rusefi 2f3995378e sorry more manual merge of #602 2018-08-08 20:42:55 -04:00
Matthew Kennedy bb20f749ed expand lsu4.9 curve size 2018-08-08 20:15:57 -04:00
Matthew Kennedy 64fd55c516 only post tunerstudio state if asked to 2018-08-08 19:57:06 -04:00
rusefi 448fbee770 better unhandled exception handling #598 2018-07-28 13:42:06 -04:00
rusefi f2a9117fc5 minor CAN pin bugfix - thank you 2017 compiler 2018-07-28 13:19:04 -04:00
rusefi 2f95cd1e0d step towards more unique codes 2018-07-25 23:30:00 -04:00
rusefi 60b3aa8e60 unique error codes #598 2018-07-25 23:03:04 -04:00
rusefi b28a8bb290 refactoring: reducing code duplication 2018-07-24 19:58:32 -04:00
rusefi 928ae5cb61 cj125 fixing build 2018-07-22 14:17:51 -04:00
rusefi ef7507ff64 CJ125 more error codes 2018-06-23 09:34:31 -04:00
rusefi 3bed900e14 docs & defaults 2018-06-17 19:14:46 -04:00
rusefi 0d3d018712 cj125isUaDivided parameter 2018-06-17 15:07:42 -04:00
rusefi 14697ed29b human-readable HIP state 2018-05-31 00:36:46 -04:00
rusefi 6486d89201 code style 2018-05-31 00:32:55 -04:00
rusefi 3202e6e772 getHip_state_e(hip_state_e value) method for usability 2018-05-31 00:23:20 -04:00
rusefi cedc0b251a TS indicator of HIP9011 state 2018-05-31 00:15:05 -04:00
rusefi 301d8ff9ab docs 2018-05-27 20:47:40 -04:00
rusefi 3b20bc575e better error message 2018-05-20 13:36:15 -04:00
rusefi 92526ad8cf docs 2018-04-08 11:38:14 -04:00
rusefi ebaa011a01 docs 2018-04-08 11:35:24 -04:00
andreika-git 127ec74f21 Fix CJ125 postState() debug output (#582) 2018-03-21 15:14:53 -04:00
rusefi 273278b539 #569 2018-03-18 12:15:51 -04:00
rusefi 4a6338257a #569 2018-03-17 21:51:46 -04:00
rusefi 2f887ec315 #569 2018-03-17 21:24:04 -04:00
rusefi 2ee42c3e58 #569 2018-02-25 21:59:15 -05:00
rusefi eff39e8064 #569 2018-02-25 21:37:42 -05:00
rusefi 316fab8800 #569 2018-02-25 21:17:59 -05:00
rusefi f92c7e0993 refactoring: wow, same method name 2018-02-07 00:13:09 +03:00
rusefi d214cb8299 name 2018-02-06 01:32:50 +03:00
rusefi 7e3d1612cf better name 2018-02-06 01:32:16 +03:00
rusefi 8b65f88a60 docs 2018-01-31 18:27:21 -05:00
rusefi b8bca64807 CAN debug field #26 2018-01-29 19:41:39 -05:00
rusefi fb8a50e22e merging docs into .h file
maybe not perfect but has it's pros
2018-01-29 19:06:19 -05:00
andreika-git ebbcb01a1e Add Option: Force stepper parking every restart (#562) 2018-01-29 18:27:39 -05:00
rusEfi 0a9db992a7 CJ125 2018-01-29 14:38:58 -05:00
rusEfi 78f182279f docs 2018-01-29 14:27:53 -05:00
andreika-git a5126713ea Support for CJ125 Wideband controller (alpha version) (#560) 2018-01-29 14:26:42 -05:00
andreika-git e0ab7e5671 Reduce step skipping for stepper motor (#559)
* Reduce step skipping for stepper motor

* Add stepperParkingExtraSteps
2018-01-28 14:44:01 -05:00
andreika-git 19dca45042 Prepare debug & output for CJ125 (#558) 2018-01-28 13:04:19 -05:00
rusEfi 492a0f25b2 console noise reduction 2018-01-24 21:50:56 -05:00
rusefi 7a8eeda2a1 fresh version of USB CFG 2018-01-23 22:52:29 -05:00
rusefi 125884e0aa #550 removing dead code 2018-01-23 22:24:11 -05:00
rusefi f33ee12f3b #550 2018-01-23 22:23:24 -05:00
rusefi 0b0f9efa3a Feature 463 (#464)
* #463

* #463

* default .LD filename

* #463

* fixing start-up by disabling LSE until rusEfi patch is applied

* simulator compiles now

* latest ChibiOS 17 with FatFS 0.13
2018-01-23 21:17:30 -05:00
rusefi 80165c887e docs 2018-01-23 13:04:30 -05:00
rusefi adfe5e9274 #65
explicit precision control
2018-01-23 12:05:14 -05:00
andreika-git a43e19c870 Fix stepper motor (#541) 2018-01-22 17:48:12 -05:00
andreika-git bccc7d3f94 CJ125: prepare backup (#543) 2018-01-22 17:47:10 -05:00
andreika-git bebdbcc21a CJ125: prepare ADC (#542) 2018-01-22 17:45:10 -05:00
rusefi 0de9cc3d15 #215 minor bugfix thank you AndreiKa 2018-01-22 12:24:03 -05:00
rusefi 0a6aeb495f docs 2018-01-22 11:22:09 -05:00
rusefi 53394cd506 fix #539 reducing idle stepper reaction time 2018-01-21 12:19:36 -05:00
rusefi f5a4376036 happy new year 2018-01-20 20:55:31 -05:00
rusEfi a1565058c0 Fix VSS init/deinit 2018-01-01 11:27:15 -05:00
andreika-git 6b7b7298a9 Fix flash memory erase for 2Mb MCUs (2 banks) (#523) 2017-12-24 09:43:50 -05:00
andreika-git aae56f3880 Backup NV-RAM refactor (#518)
* Backup NV-RAM refactor

* More comments on BACKUP_IGNITION_SWITCH_COUNTER
2017-12-22 08:49:03 -05:00
rusefi 18b8ebd6b5 docs 2017-12-04 18:30:44 -05:00
rusEfi 9c8db36591 softer error handling 2017-12-03 18:17:59 -05:00
rusefi b1db389be2 fix #490 2017-11-27 21:49:58 -05:00
rusefi 415bc28298 fixing build 2017-11-24 19:16:00 -05:00
rusefi c4191454d3 ADC docs 2017-11-24 17:40:20 -05:00
rusEfi 2bc7dc9eff #495 todo clean-up 2017-11-19 15:24:36 -05:00
rusefi 72df70cb48 #495
compacting data structure without changing the size yet
2017-11-19 12:07:07 -05:00
Matthew Kennedy 8a5036f9bf Implement oil pressure sensor (#491)
* code changes

* config changes
2017-11-15 14:30:13 -05:00
andreika-git 9cd3b6a99f Minor MEMS/Accelerometer compilation fix (#484) 2017-11-02 18:09:13 -04:00
rusefi 1b01d5dc57 #480 2017-10-16 15:07:36 -04:00
rusefi cbbf7540ad refactoring 2017-10-16 14:31:02 -04:00
rusefi 3913dcada3 refactoring: reducing code duplication 2017-10-16 14:19:41 -04:00
rusefi f7d5bb8b93 reviving broken VVT configuration 2017-10-16 12:26:07 -04:00
rusefi a27b9c0333 fix #442 2017-08-31 07:57:39 -04:00
rusefi a6e97cdb54 #442 2017-08-31 07:55:26 -04:00
Matthew Kennedy dc937eb811 Fix adcdbug when one or more channels set to "none" (#477)
* gitignore atollic truestudio

* Fix adcdebug when >= 1 ADC channel is set to none
2017-08-29 10:03:24 -04:00
rusefi 6c90269de8 #473 2017-08-28 22:55:29 -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 6b7268a750 #473 2017-08-28 20:11:32 -04:00
rusefi 416e4a75dc #473 2017-08-28 20:03:29 -04:00
rusefi 631ca644d4 docs 2017-08-27 21:33:24 -04:00
rusefi d6dfdce075 #475 2017-08-25 18:37:59 -04:00
rusefi 15635fb20a date docs & message fix 2017-08-23 00:46:34 -04:00
rusefi 9417a040c2 unused file 2017-08-23 00:45:52 -04:00
rusefi 8663b8b27c refactoring 2017-08-21 10:55:34 -04:00
rusefi 5faad39810 #473 2017-08-18 16:18:11 -04:00
rusefi 5f244108f3 fixing build 2017-08-17 10:50:41 -04:00
rusefi 37e59df52e #473 2017-08-17 09:09:30 -04:00
rusefi 52544462ec #473 2017-08-17 02:56:25 -04:00
rusefi 8a0e0ff1b3 #473 2017-08-17 02:49:07 -04:00
rusefi a393d8aa9d #473 2017-08-17 02:32:06 -04:00
andreika-git 5e79c90caa Use RTC backup register to save Stepper IAC position (#471) 2017-08-07 07:28:21 -04:00
rusefi 4444b7444f better constant name 2017-08-06 19:43:01 -04:00