Commit Graph

111 Commits

Author SHA1 Message Date
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
rusefi d44bb8d3f8 first mc33810 SPI communication is not happy #6733
only:hellen154hyundai_f7
2024-07-20 22:55:03 -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
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
rusEFI LLC 07b49363c1 only:getAnalogInputDividerCoefficient 2024-07-06 22:00:56 -04:00
Andrey Gusakov 5758ea579d adc: minor code cleanups and re-orders 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 2ee8ef338a adc: incapsulate some private data 2024-06-25 07:18:43 -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
Matthew Kennedy 27e0a80c82 compile-time enforcement of printf strings
only:uaefi
2024-06-10 19:11:35 -04:00
Andrey Gusakov 5837abb4f1 ADC: DMA buffers should be quilified volatile 2024-05-12 10:59:10 -04:00
Andrey Gusakov 5362dedd5b ADC: deduplicate counters, increment counter after conversion done 2024-05-09 17:05:27 -04:00
Andrey Gusakov d04f2cf723 ADC: more clean-up and rearrange 2024-05-09 17:05:27 -04:00
Andrey Gusakov 399cd3f5b7 ADC: dead 2024-05-09 17:05:27 -04:00
Andrey Gusakov 7b5a28f288 ADC: debug function valid input check 2024-05-09 17:05:27 -04:00
Andrey Gusakov 2ec44e4d39 ADC: no magic numbers 2024-05-09 13:08:29 -04:00
Andrey Gusakov 6a0eb0b0c8 ADC: encapsulation 2024-05-09 13:08:29 -04:00
Andrey Gusakov 123d66b29a adc: style 2024-05-09 13:08:29 -04:00
Andrey Gusakov cb011a87d0 ADC: dead 2024-05-09 09:42:21 -04:00
Andrey Gusakov 4cb09d3179 adc: deduplicate debug code 2024-05-09 08:30:24 -04:00
Andrey Gusakov 207a3d8c98 adc: avoid two lookup tables 2024-05-09 08:30:24 -04:00
Andrey Gusakov 7e509c432e adc: dead 2024-05-09 08:30:24 -04:00
Andrey Gusakov eab5e16282 Store fast adc error for debug 2024-05-09 08:30:24 -04:00
Andrey Gusakov 5fb60bc351 adc_inputs: we have two methods doing same thing, keep simple one 2024-05-05 16:44:16 -04:00
Andrey Gusakov 0ce04c84cc Struct: designator initialization 2024-05-05 13:26:24 -04:00
Andrey Gusakov e2955fcb34 adc_inputs: code style 2024-05-05 13:26:24 -04:00
Andrey Gusakov 7a8f0cc511 adc_inputs: unify naming 2024-05-05 13:26:24 -04:00
rusefi 3e0fde22d2 linking to #6399 2024-04-23 16:34:22 -04:00
rusefi fae665ec5c hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only:sad but configurable
2024-04-22 19:52:30 -04:00
rusEFI LLC 2519b3fa53 hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only: work-around
2024-04-22 18:27:26 -04:00
rusEFI LLC 60d163207c hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only: more madness
2024-04-22 13:33:18 -04:00
rusEFI LLC 078376fe71 hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only: more madness
2024-04-22 12:45:19 -04:00
rusEFI LLC ea7cb49777 hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only: let's not trust anyone
2024-04-22 10:57:14 -04:00
rusefillc 337f2ea588 hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
only: allowing override if we ever need it
2024-04-22 09:16:05 -04:00
Matthew Kennedy 3315aa9434 unused parameters 2024-01-07 22:36:20 -05:00
Andrey Gusakov 4aa779eaca Style 2023-12-12 15:06:56 -05:00
rusefillc 2d9b835768 better guards 2023-11-04 09:45:22 -04:00
Andrey b70f8f0b92 unused-variable is a nice error message to have #5683 2023-11-02 18:31:03 -04:00
rusefillc 2e62e6fc91 only:shall we be just a little less Toyota 2023-11-01 10:21:27 -04:00
rusefi e8c45a2e7d refactoring: reducing code duplication. Also, do we even care for critical error codes?! 2023-08-20 22:23:44 -04:00
rusefi 426bc8720e console "spark 1" bench hands up proteus #5320
i feel lucky!
2023-06-11 23:23:17 -04:00
Matthew Kennedy 789aa2cf2a remove proteus legacy build -> none exist in the wild
(cherry picked from commit 2fd26e948a2596db7256ec44a0e0c41dc8c3c749)
2023-05-19 10:28:38 -04:00
Matthew Kennedy 61e5b4b1ad change ObdCode to enum class builds firmware 2023-04-29 00:44:00 -04:00
Andrey Gusakov 342e7d1ac6 adc: unused suppress 2023-04-07 03:47:52 -04: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
Matthew Kennedy 1eb00e5ec9
adc resubscription of the same sensor (#4947)
* adc resubscription of the same sensor

* overload function name

* fix logic

* thermistors and map
2023-01-06 08:09:17 -05:00