Commit Graph

327 Commits

Author SHA1 Message Date
rusefillc bc2a2b9ab9 only:better method name 2023-06-25 02:08:53 -04:00
rusefi f77f356e6d reducing code duplication 2023-06-11 23:17:13 -04:00
rusefi 731fd89ef7 reducing magic constant 2023-06-11 23:13:36 -04:00
rusefillc 6f028ce955 style/guards 2023-05-31 23:06:39 -04:00
rusefillc 4cd21bc35e better code guard? 2023-05-24 11:07:31 -04:00
rusefillc 198422ffaf code guard 2023-05-24 00:44:58 -04:00
Matthew Kennedy 61e5b4b1ad change ObdCode to enum class builds firmware 2023-04-29 00:44:00 -04:00
Matthew Kennedy 7396d466c4 cj125
(cherry picked from commit fd09ad7b4f2a9c450aedf4a535db4edd24bdcee1)
2023-04-29 00:15:54 -04:00
Matthew Kennedy bb49b22294 joystick, lcd
(cherry picked from commit 61c17791b89fc6b5ae17df96d9498c088afdb09f)
2023-04-28 22:32:37 -04:00
Andrey e43c6b0d06 only:todo 2023-04-22 11:28:50 -04:00
rusefillc d31ba5f179 trigger layer start-up is a mess fix #5241
reducing complexity of conditional compilation
2023-04-19 17:30:52 -04:00
rusefillc 8fc2e0eb53 trigger layer start-up is a mess #5241
reducing code duplication: start actual pins only from best startHardware method
2023-04-19 17:27:47 -04:00
rusefillc d423bb063a trigger layer start-up is a mess #5241
reducing the mess: moving logic out of strange method
2023-04-19 17:25:43 -04:00
rusefillc dae865210a trigger layer start-up is a mess #5241
reducing the mess: reducing code duplication
2023-04-19 17:21:23 -04:00
rusefillc cb2d817da9 trigger layer start-up is a mess #5241
refactoring: just renaming method
2023-04-19 17:19:20 -04:00
rusefillc cffad07458 trigger layer start-up is a mess #5241
refactoring: just renaming method
2023-04-19 17:07:36 -04:00
rusefillc 21ea057f70 reducing code duplication 2023-04-19 16:51:16 -04:00
rusefillc af93acc15b dead code 2023-04-19 16:49:02 -04:00
rusefillc 1f3b3e82fb
Lcd (#5217)
* WS2812 LED strip on TIM1_CH1_UP using pin PE9 and DMA.

* Applied suggestions

* linux and Windows have different approach

* linux and Windows have different approach

---------

Co-authored-by: benas-gavea <bbrazdziunas@gavea.co.uk>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-04-03 11:31:07 -04:00
Andrey 82bcc9b42c progress: run more code in simulator
only:hellen-honda-k
2023-03-05 02:42:54 -05:00
Andrey 6b4c4a5833 refactoring: vvt is not aux
only:hellen-honda-k
2023-03-05 02:07:47 -05:00
Andrey bd72aace92 progress: bringing simulator closer to real code
only:hellen-honda-k
2023-03-05 01:28:55 -05:00
Andrey 9cf426e3db progress: run more code in simulator
only:hellen-honda-k
2023-03-05 01:13:43 -05:00
Andrey 264f265420 CAN GPIO #4096
only:hellen-honda-k
2023-03-05 00:52:57 -05:00
Andrey G ddab1536de
Kline: do init from initHardware() and stop/start from applyNewHardwareSettings() (#5125) 2023-02-23 17:05:59 -04:00
rusefillc 11138a1c74 rusEFI needs K-line firmware support #3248 2023-02-17 08:18:50 -05:00
Andrey G a6ec708a6b
Support non-uniform dividers on ADC inputs (#4938)
* adc: support per-channel dividers

* S105: non-uniform analog dividers

* adc: default weak getAnalogInputDividerCoefficient() implementation

* adc: fix emulator compilation
2023-01-08 17:29:29 -05:00
Andrey G a300043f5d
Feed mapAveragingAdcCallback() with volts not adc raw values (#4940) 2023-01-05 12:14:48 -05:00
Andrey G f25edb646d
ADC and HIP: feed callback with voltage, not raw adc values (#4939)
* hip9011: use adcToVoltsDivided() helper

* hip9011: feed callback with volts, not raw adc value
2023-01-05 12:00:23 -05:00
Matthew Kennedy 9d8bfb834e
Basic trigger scope implementation (#4885)
* big buffer

* mostly hooked up big buffer

* bad merge

* s

* sneak preview of trigger scope

* s

* constness

* channel limits

* s

* unnecessary

* efilib

* TcpServerSandbox

* includes fix

* binary format

* tooth logger uses big buffer

* dead config

* config

* implement basic trigger scope

* good behavior

* enable on other alphax

* flag to enable second channel

* use 8 bit mode on the ADC for less memory use

* changelog
2022-12-10 23:00:12 -05:00
Nathan Schulte 2afc9162eb RTC toggle in hardware.cpp 2022-11-21 09:36:28 -05:00
Nathan Schulte d144248a6f
fix simulator build (via MinGW) (#4799)
* firmware: kill -9 dead hipLastExecutionCount

* firmware: pin_repository C includes efi_gpio.h

* firmware: controllers: tidy #endif comments

* firmware: primary_pins logic depends EFI_GPIO_HARDWARE

* firmware: only print ADC info if HAL_USE_ADC

* firmware: digital_input: tidy #endif comments

* firmware: digital_input logic depends on e.g. HAL_USE_ADC

* firmware: digital_input logic depends !EFI_SIMULATOR

* firmware: digital_input logic depends e.g. HAL_USE_ADC

* simulator: Makefile includes RUSEFI_LIB_C as CSRC

* Revert "GHA/build-firmware: pin agents to Ubuntu 20.04 (#4793)"

This reverts commit cb2477be6c.
2022-11-18 23:43:43 -05:00
rusefi 6e24020ab5 GM ETB bench test in NJ #4688
SENT to Lua integration
2022-10-22 22:46:37 -04:00
rusefillc 50d8aa37b4 refactoring: inline method 2022-10-21 21:20:44 -04:00
Andrey G 850848d2ee
SENT core decoder and ICU driver (#4648)
* SENT: copy-paste SENT decoder from rusefi-hardware

* SENT: decoder: refactor, cleanup

* SENT: add ICU implementation

* SENT: decoder: use pch.h

* SENT: EFI_PROD_CODE guard

* SENT: ICU driver: fixes

* SENT: don't forget to SysLock

* SENT: call Start on Init (agrrrr)

* SENT: ICU: some limitations

ICU can capture on two firsts TIM inputs only. So move from PA2 to PA1

* SENT: mmmm... c++... i like it (no)

* SENT: autocalibrate tick time

* SENT: debug

* SENT: clean-up

* SENT: optimize slow channel mailboxes

* SENT: GetSignals() helper
2022-10-09 06:38:28 -04:00
Matthew Kennedy ff9ce3730a
rtc cleanup (#4596)
* rtc formatting and code style

* more cleanup

* s

* time example
2022-09-20 05:28:42 -04:00
rusefillc ec0e567989 tear down Engine god object #4511 2022-09-15 21:46:01 -04:00
Andrey ab4b451195 os_access.h dead? 2022-09-07 15:56:45 -04:00
rusefi f399e275b2 servo is truly not alive 2022-09-06 16:29:12 -04:00
Matthew Kennedy bc6a87cadc
allow enum_class in rusefi_hw_enums.h (#4104)
* make things c++ friendly

* install various canaries in coal mines

* using is much clearer than typedef

* fixing builds

* lps25

* trigger includes were a mess

* c -> c++ cleanup

* os util

* why did so many include os_util.h?

* fwd declare

* cypress/kinetis

* s

* eg33 happy

* happy sim

* cypress usb

* pch

* cypress

* doesn't need to include all that

* h7
2022-04-25 20:38:16 -04:00
rusefillc 70e4d118ef very random progress 2022-04-16 17:04:35 -04:00
rusefillc 2ab8a3df4e Feature request: odometer for engine break #3857 2022-02-25 00:46:45 -05:00
rusefillc 3cf6a392cb I2C EEPROM support #3860
helping build
2022-02-06 21:26:22 -05:00
rusefillc 8892cd26ff I2C EEPROM support #3860 2022-02-06 19:48:20 -05:00
rusefi ad57fd1628 I2C EEPROM support fix #3860
bare bones support works
2022-02-06 19:39:21 -05:00
Andreika 2beca221a3
hellen_board_id + hellen-common.mk (#3885)
* Hellen_board_id

* move EXTI init before config load

* add NT2USF()

* Hellen_board_id unit-tests

* hellen-common.mk

* fix for older macos compiler
2022-02-03 11:24:31 -05:00
rusefillc a3f2dc84ae https://github.com/rusefi/alphax-2chan/issues/17 2022-01-16 10:48:31 -05:00
rusefillc 6ca6c53786 refactoring? 2022-01-14 22:45:49 -05:00
rusefillc 0d8e4d5222 AlphaX few bytes of progress 2022-01-10 01:47:06 -05:00
Matthew Kennedy a342bee57e
rpm calculator refactoring, gm 24x test (#3585)
* data

* stub test

* use getTimeSinceSyncPoint

* s

* s

* no

* test

* stray ;

* those were 1/10 what they were supposed to be

* actually check something

* dead log line?
2021-11-20 14:59:02 +03:00