Commit Graph

2829 Commits

Author SHA1 Message Date
rusefi 2b43466f86 requiresPowerCycle = is_enabled_spi 2024-08-08 13:14:23 -04:00
Andrey 3df13c8db8 revive MC33816 driver #6781
let's fail gracefully instead of hanging within ChibiOS
only:alphax-4k-gdi_debug
2024-08-08 11:33:39 -04:00
rusefillc 4a60f3f845 revive MC33816 driver #6781
only:alphax-4k-gdi_debug
2024-08-07 23:47:48 -04:00
rusefi 95d7b7f4fc only:alphax-4k-gdi_debug 2024-08-07 23:07:06 -04:00
Andrey a5bff25cc1 only: Knock frequency inputs to be bore diameter and checkbox #6767
only:hello hip9011
2024-08-04 16:51:22 -04:00
rusefi ffea0a23a0 Knock inputs to be bore diameter and checkbox #6767
only: only bore logic
2024-08-04 13:47:17 -04:00
rusefi f3ff325765 Knock inputs to be bore diameter and checkbox #6767
only: reusing macro
2024-08-04 13:25:13 -04:00
Andrey 2e8dd875de openblt binary version #6756
only:proteus_f7
2024-07-30 12:59:17 -04:00
Andrey 05aa7d8980 encapsulation
only:proteus_f7
2024-07-30 11:51:39 -04:00
Andrey 9b5f0244bf only:docs 2024-07-29 17:41:57 -04:00
Andrey 6e9e763026 only:w25q_single_spi 2024-07-29 10:42:48 -04:00
Andrey Gusakov 0495a7163f at32: comment about dual-bank mode 2024-07-29 09:21:47 -04:00
Andrey Gusakov e64cb9bebf MFS: we do not need transaction API 2024-07-29 09:21:47 -04:00
Andrey Gusakov 5ff5691d2c flash_api: we do not need so much records in MFS
Actually currently we save only one record - settings
2024-07-29 09:21:47 -04:00
Andrey Gusakov 0f749322d0 drivers: w25q: speedup a bit, timeout exit 2024-07-29 09:21:47 -04:00
Andrey 1530b3dbd9 PUBLIC_API_WEAK or BOARD_WEAK #6748 2024-07-27 12:47:56 -04:00
rusefi e2bc1cbade only:going fancy enums 2024-07-22 19:49:42 -04:00
rusefi 8a98d21c00 only:ADC mode argument is always the same FAST, renaming method 2024-07-22 19:28:17 -04:00
Andrey Gusakov 86fef52d02 mc33810: do not try to drive null pins 2024-07-22 16:59:36 -04:00
Andrey Gusakov 1376e4538b mc33810: tabs please, comment fix 2024-07-22 16:58:06 -04:00
rusefi 7577018e93 openblt flexibility 2024-07-21 15:30:33 -04:00
rusefi 49ee774bb6 first mc33810 SPI communication is not happy #6733
no need in huge initial wait
only:hellen154hyundai_f7
2024-07-21 15:04:59 -04:00
rusefi 8f6df33511 first mc33810 SPI communication is not happy #6733
UNSELECT_HACK & moving CS handling out of command iteration loop
only:hellen154hyundai_f7
2024-07-21 14:49:51 -04:00
Andrey 6805816f88 better placement for counter
only:hellen154hyundai_f7
2024-07-21 10:08:42 -04:00
rusefi d44bb8d3f8 first mc33810 SPI communication is not happy #6733
only:hellen154hyundai_f7
2024-07-20 22:55:03 -04:00
rusefi ee48d8a932 random code style 2024-07-20 22:48:22 -04:00
rusefi 3bd8480105 adding logging consistency
only:hellen154hyundai_f7
2024-07-20 22:48:22 -04:00
rusefi 2d317784e5 huh? 2024-07-20 22:34:40 -04:00
rusefi f60d724443 random code style 2024-07-20 22:18:16 -04:00
rusefi 0ec1f260c1 first mc33810 SPI communication is not happy #6733
huh? stepper was not waiting? improving default parameter value, reusing new default parameter
2024-07-20 22:09:15 -04:00
rusefi 46962048e7 first mc33810 SPI communication is not happy #6733
better order of operations - first update consumers, then update naive synchronization
2024-07-20 22:08:10 -04:00
rusefillc 1ae747718e mc33810 hadSuccessfulInit 2024-07-20 21:07:17 -04:00
Andrey Gusakov b8100245d7 portname(): never return null
Some users do not check return value, this can cause null-pointer
access.
2024-07-20 17:37:52 -04:00
Andrey Gusakov 42213ac172 getPinNameByAdcChannel: be more safe
Know buffer size
Use snprintf
Expect null from portname()
2024-07-20 17:37:52 -04:00
Andrey Gusakov 4007e0d7f8 adc_subscription: call efiSetPadMode for primary input only
Same pin can be used by two analog inputs (externaly muxed)
Call brain_pin_markUsed() only while requesting for primary user
2024-07-20 17:37:52 -04:00
Andrey Gusakov dce26afd3f adc: adcIsMuxedInput() helper
Return true for ADC channel that is "second virtual" input on pin
Ie muxed with external switch.
This helps avoid attemp to mark pin used twice while configuring ADC
2024-07-20 17:37:52 -04:00
rusefillc a3bae02156 mc33810spiErrorCounter 2024-07-19 13:45:34 -04:00
Matthew Kennedy ab59cf8ecf don't use scheduleForLater 2024-07-14 23:52:40 -04:00
Andrey Gusakov 89a92a36d1 lps25: get all data within single i2c access 2024-07-14 19:44:03 -04:00
Andrey Gusakov 78ba473c2a lps25: get 3 register in one access
After e7c3223151 fix it is possible
to read more than one register in one transaction.
2024-07-14 19:44:03 -04:00
Andrey Gusakov aed819170e i2c_bb: GUARD!!! 2024-07-14 13:55:31 -04:00
Andrey Gusakov 8af5f51fc7 i2c_bb: add deinit() 2024-07-14 13:55:31 -04:00
Andrey Gusakov e85179f465 i2c_bb: simplify writeRead 2024-07-14 13:55:31 -04:00
Andrey Gusakov e7c3223151 i2c_bb: release SDA after sending ACK bit while reading
This fixes contiues read of more than one byte
2024-07-14 13:55:31 -04:00
rusefi d895f4dfa4 hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only:clean-up
2024-07-13 19:45:55 -04:00
Andrey Gusakov 7ffb594f5b fastAdc: validate that channels is enabled 2024-07-13 18:18:23 -04:00
Andrey Gusakov 2689978341 ADC: adcHwChannelMode fix array size
adcHwChannelMode defines ADC type for each of adc_channel_e element
Use EFI_ADC_TOTAL_CHANNELS for array size.
Get rid of HW_MAX_ADC_INDEX that previously was defining total
ADC input count for MCU. With ADC mux, external ADCs and so on this
is no longer correct.
2024-07-13 18:18:23 -04:00
Andrey Gusakov 589d98ca85 mmc_card: RD and WR indicators 2024-07-13 05:55:53 -04:00
Andrey Gusakov a6bc530fba mmc_card: misc 2024-07-13 05:55:53 -04:00
Andrey 2d9601bd7e alwaysWriteSdCard #6703
only:uaefi
2024-07-12 17:24:57 -04:00
rusefi cdab259efa hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only:hellen154hyundai_f7
2024-07-11 09:37:06 -04:00
rusefi 46907c3ea6 hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only:hellen154hyundai_f7
2024-07-10 18:03:28 -04:00
Andrey 97acf15a41 only:AdcSubscription::ResetFilters() 2024-07-07 00:21:21 -04:00
rusEFI LLC 5e3a2cb40d typo 2024-07-06 23:15:51 -04:00
rusEFI LLC ae2533c2d9 only:boardAdjustVoltage 2024-07-06 22:50:53 -04:00
rusEFI LLC 07b49363c1 only:getAnalogInputDividerCoefficient 2024-07-06 22:00:56 -04:00
Andrey Gusakov 299ea0dc82 hip9011: fix reinitialization, typos 2024-06-27 09:56:44 -04:00
Andrey Gusakov 98e2e89f9c hardware: no need to access fastAdc 2024-06-25 16:54:21 -04:00
Andrey Gusakov 37e8d38ec7 adc: some comments 2024-06-25 16:54:21 -04:00
Andrey Gusakov 5758ea579d adc: minor code cleanups and re-orders 2024-06-25 10:34:22 -04:00
Andrey Gusakov 431e0ea56a ports: stm32: add ADC3 enums, add getAdcInternalChannel() helper 2024-06-25 10:34:22 -04:00
Andrey Gusakov 2a7f143104 ADC: extract on-chip driver code to separate file 2024-06-25 07:18:43 -04:00
Andrey Gusakov d1a1f4045a ADC: extend AdcToken 2024-06-25 07:18:43 -04:00
Andrey Gusakov 2ee8ef338a adc: incapsulate some private data 2024-06-25 07:18:43 -04:00
Andrey Gusakov 29d478235d gpio: core: dump gpiochips_debug() return void 2024-06-24 07:05:31 -04:00
Andrey Gusakov c4647511a4 gpio:tle9104: handle and reinit on WD and POR 2024-06-24 07:05:31 -04:00
Andrey Gusakov 986463cbb1 gpio: tle9104: implement debug() 2024-06-24 07:05:31 -04:00
Andrey Gusakov 3fa3f1ab8c gpio: core: implement debug() hook for gpio chips 2024-06-24 07:05:31 -04:00
Andrey Gusakov f1df6c8138 tle9104: add spi_rw_array 2024-06-24 07:05:31 -04:00
Andrey Gusakov 5322fc051c gpio: tle9104: fix for disabled spi 2024-06-22 11:37:16 -04:00
Andrey Gusakov 66db9f6a34 gpio: tle9104: fix simulator 2024-06-22 11:37:16 -04:00
Andrey Gusakov b7ca018a8c gpio: tle9104: dead code 2024-06-22 11:37:16 -04:00
Andrey Gusakov dfdd7aa6bd smart_gpio: tle9104 is smart gpio chip 2024-06-22 11:37:16 -04:00
Andrey Gusakov 73ad7a2b11 gpio: tle9104: fix parity calculation for RX data 2024-06-22 11:37:16 -04:00
Andrey Gusakov f9a45515a6 gpio: tle9104: minor cleanups 2024-06-22 11:37:16 -04:00
Andrey Gusakov f4321c065c gpio: tle9104: fix RW bit 2024-06-22 11:37:16 -04:00
Andrey Gusakov 61b48599ac gpio: tle9104: use __builtin_popcount() for parity calculation 2024-06-22 11:37:16 -04:00
Andrey Gusakov e3545bcdc4 gpio: tle9104: TODOs 2024-06-22 11:37:16 -04:00
Andrey Gusakov b9efa23c98 gpio: tle9104: add thread for periodic diagnostic update 2024-06-22 11:37:16 -04:00
Andrey Gusakov d4a44e035b gpio: tle9104: codestyle align with other gpio drivers 2024-06-22 11:37:16 -04:00
Andrey Gusakov 3f983f846c gpio: tle9104: cleanups 2024-06-22 11:37:16 -04:00
Andrey Gusakov 7f052f7e7b gpio: tle9104: handle communication errors 2024-06-22 11:37:16 -04:00
Andrey Gusakov 8a8463fc29 gpio: tle9104: support coexistance with other SPI devices
Release bus after use
2024-06-22 11:37:16 -04:00
Andrey Gusakov 80bf0205db ADC: FastAdcToken rename to AdcToken 2024-06-20 09:45:31 -04:00
Andrey Gusakov 3ac25a82fb ADC: AdcDevice::enableChannel: return channelAdcIndex or error
This value will be used as part of AdcToken for multi ADC support
2024-06-20 08:16:03 -04:00
Andrey Gusakov dbbe6ace0a ADC: AdcConfiguration.h rename to AdcDevice.h 2024-06-20 08:16:03 -04:00
rusefillc 69c0f95125 only:MAX3185X_REFRESH_TIME Ups. 0.1 sec. 2024-06-19 10:09:05 -04:00
Andrey 1131899755 https://github.com/rusefi/rusefi/pull/5394
only:nastyornot
2024-06-17 21:00:55 -04:00
Andrey 6714b63c08 https://github.com/rusefi/rusefi/pull/5394
only:nastyornot
2024-06-17 19:32:21 -04:00
Andrey e927de593e https://github.com/rusefi/rusefi/pull/5394
only:nastyornot
2024-06-17 18:32:56 -04:00
rusefillc ebf178e6ae https://github.com/rusefi/rusefi/pull/5394
only:nastyornot
2024-06-17 15:53:23 -04:00
rusefillc ede66011e5 only:initStartStopButton guard 2024-06-11 15:45:39 -04:00
Andrey 2d03accf4b SERIAL_USB_BUFFERS_SIZE flexibility
only:uaefi
2024-06-11 12:09:44 -04:00
Andrey ec3b767aaa compile-time enforcement of printf strings
only:uaefi
2024-06-11 06:57:27 -06:00
Andrey 53f99bd0a0 compile-time enforcement of printf strings
only:uaefi
2024-06-10 21:05:42 -04:00
Andrey dc6419f4c2 compile-time enforcement of printf strings
only:uaefi
2024-06-10 19:39:54 -04:00
Matthew Kennedy d79a258e23 actually reset the timer in case of <2US timing 2024-06-10 19:39:54 -04:00
Matthew Kennedy f9ba47c244 compile-time enforcement of printf strings 2024-06-10 19:24:45 -04:00
Andrey 782602b059 compile-time enforcement of printf strings
only:uaefi
2024-06-10 19:21:46 -04:00
Matthew Kennedy 27e0a80c82 compile-time enforcement of printf strings
only:uaefi
2024-06-10 19:11:35 -04:00