Commit Graph

61 Commits

Author SHA1 Message Date
rusefillc 1f4d9227bd Fan not be able to be set because in use at VR PWM
#5565
showing both human and physical names into error message
only:alphax-2chan
2023-09-17 11:17:37 -04:00
rusefi b785ed1019 PinRepository encapsulation 2023-08-21 23:09:30 -04:00
rusefi 6b5e42a7a6 let's admit it we are using C++ syntax 2023-08-21 22:26:09 -04: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
Andrey G 331fabb6de
pin_sepository: no external users for totalPinsUsed, remove (#4733) 2022-11-03 18:26:08 -04:00
rusefi 1d629df884 trying to reduce confusion x2 2022-05-30 17:06:56 -04:00
rusefillc 014b8293a5 User board-specific terms in error messages #3886
progress
2022-02-03 12:45:26 -05:00
rusefillc a223ec7ab9 smart diag into bench test 2022-01-03 14:21:54 -05:00
Matthew Kennedy 8cdac4cac0
remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
Andrey 74e5eb8bb7 trigger signal debug pins - logic level output #2959 2021-07-15 02:12:57 -04:00
Andrey 5c2477752e all aboard the God object! 2021-07-15 02:00:48 -04:00
Andrey c513e976ed trigger signal debug pins - logic level output #2959 2021-07-15 01:46:30 -04:00
Andrey 23be588af6 trigger signal debug pins - logic level output #2959 2021-07-15 01:28:44 -04:00
Matthew Kennedy a54a5e7f90
convert gpiochips to c++ (#2761)
* core

* basic header

* tests are happy

* tle6240

* tle8888

* 33972

* 33810

* tle8888_req_init

* unused warning

* warning

* unsigned

* 8888 debug

* fix

* don't qualify

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-10 04:11:01 -04:00
Andrey G 2af32084f4
gpio helper (#2195)
* gpios: isBrainPinValid helper

* LCD HD44780: do not touch pins if DM_NONE or invalid gpio

* Fix isEnabled checks for GPS and Joystick

* LCD HD44780: writePad use this method wider
2021-01-08 20:01:26 -05:00
Andrey G f96ae7525f
Gpio cleanup #2 (#1530)
* pin repository: PIN_USED size in now equal to brain_pin_e enum size

expect special values...

* smart gpios: register gpio chip to given base (no auto-allocation)

* drivers: gpio: core: add gpiochip_unregister()

* drivers: gpio: MC33810 intergation

* smart_gpio.cpp: cleanup ifdef mess, minor cleanups

* gpio: core: additional check for gpio ranges overlaps

* unit test: gpio chip: fixed and extended
2021-01-06 18:29:47 -05:00
rusefi 11a02b6395 class constructors are a great way to have simple initialization sequence 2020-05-03 10:58:52 -04:00
rusefi 96ceae7d17 refactoring: using constructor life-cycle to simplify initialization sequence 2020-05-02 23:15:48 -04:00
rusefi 907b80efa9 code style 2020-04-01 19:00:56 -04:00
rusEfi 74ead04e84 tle8888 dump at init 2020-02-12 08:34:26 -05:00
rusefi bb217b01dd happy new year unification 2020-01-13 21:57:43 -05:00
andreika-git 970f67862c STM32-specific GPIO refactor (stm32_pins.cpp) (#817)
* stm32_pins.cpp

* PIN_USED & other
2019-06-02 16:48:38 -04:00
rusefi 8fd9fd6194 docs 2019-05-10 18:51:48 -04:00
rusefi 456a840841 docs 2019-05-10 17:53:17 -04:00
rusefi 08dc8b3717 progress 2019-04-12 17:39:49 -04:00
dron0gus 86c561c651 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
rusefi 81284d52cd The Big Refactoring of 2019: folder structure #723 2019-04-09 22:52:03 -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 5b11926fea we need TLE8888 driver #714 2019-04-04 19:29:33 -04:00
dron0gus be70420a71 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 bd2b992918 unifying_file_naming 2019-03-29 09:11:13 -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 5d5c80a8a1 CJ125 unit-tests coverage #617 2018-11-03 13:17:58 -04:00
rusefi b193e17b7d refactoring - reducing GPIO complexity 2017-04-21 16:27:15 -04:00
rusefi e7e7458729 refactoring - reducing GPIO complexity 2017-04-21 16:20:06 -04:00
rusEfi 55e89f0f31 auto-sync 2017-01-03 06:05:22 -05:00
rusEfi b4408a9f85 auto-sync 2016-04-03 11:02:57 -04:00
rusEfi 0faf7ab4c3 auto-sync 2016-02-04 11:02:13 -05:00
rusEfi a1afc46a13 auto-sync 2016-01-15 23:01:43 -05:00
rusEfi fbdea87819 auto-sync 2015-12-31 16:02:30 -05: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 8087cbd567 auto-sync 2015-04-07 21:04:35 -05:00
rusEfi 3f841aead2 auto-sync 2015-04-03 22:10:08 -05:00
rusEfi d36297c800 auto-sync 2015-03-09 08:05:23 -05:00
rusEfi 8fa81e4676 auto-sync 2015-02-01 10:05:10 -06:00
rusEfi a81741dbbc auto-sync 2015-01-13 21:04:02 -06:00
rusEfi eb4f7c5962 auto-sync 2015-01-13 20:06:35 -06:00
rusEfi 9820527bdb auto-sync 2015-01-12 17:04:10 -06:00
rusEfi 2de4b7e839 auto-sync 2015-01-07 17:04:40 -06:00