Commit Graph

122 Commits

Author SHA1 Message Date
Matthew Kennedy 4ae631ff46 increment slow adc counter after everything 2025-05-04 01:26:37 -07:00
Matthew Kennedy accb87c8e2 waitForSlowAdc, stepper cleanup 2025-05-04 00:38:54 -07:00
Matthew Kennedy 71d8e80ddc progress on dual MAP 2025-03-07 00:13:41 -08:00
Matthew Kennedy f0161a69ba remove AdcDevice class, do it directly in stm32_adc_v2.cpp 2025-03-07 00:04:40 -08:00
Matthew Kennedy 7e9695c65b adc simplification and cleanup 2025-03-06 23:51:43 -08:00
Matthew Kennedy 982526f574 adc simplification & cleanup 2025-03-06 23:51:08 -08:00
Matthew Kennedy 82a27d68cd init ADC from initHardwareNoConfig 2025-03-02 14:01:09 -08:00
Matthew Kennedy e4afb2e656 H7 gets a couple extra ADC subscription slots 2025-02-05 14:29:37 -08:00
Matthew Kennedy 85291b4bbd ADC ports are responsible for their own sample buffer 2025-02-04 01:29:04 -08:00
Matthew Kennedy ad3bb2ab99 modularize knock adc for h7 2024-11-18 11:36:41 -08:00
Matthew Kennedy 2155f3c019 extract some implementation details of fast ADC out to port 2024-11-08 00:58:07 +00:00
Matthew Kennedy e7f8033e32 these functions can now be static 2024-11-08 00:51:08 +00:00
Matthew Kennedy 4266c04c65 dead function 2024-11-08 00:46:55 +00:00
Matthew Kennedy d3110cde42 missed a line 2024-11-08 00:20:07 +00:00
Matthew Kennedy 01a397094d
execute critical tasks on one big thread (#462)
* wire up main loop

* remove PeriodicTimerController

* patch up defines, comments

* happy simulator

* format

* simulator

* ETB runs via main loop

* happy tests

* protection against invalid LoopPeriod

* stack size

* ccm

* fix |= operator

* move perf trace

* ordering

* ordering
2024-09-17 15:27:38 -07:00
Matthew Kennedy 0b31777623 adc inputs cleanup 2024-08-12 18:13:51 -07:00
Matthew Kennedy e4e0824f57 misc format/comment cleanups 2024-08-07 12:01:08 -07:00
Matthew Kennedy b36474888b Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-07-22 10:39:45 -07:00
Matthew Kennedy 3f2450056a use CriticalSectionLocker 2024-07-22 10:39:39 -07:00
Matthew Kennedy 1245ddcc21 adc clarity 2024-07-21 23:23:52 -07:00
Matthew Kennedy c5b9f53808 cleanup 2024-07-21 22:28:51 -07:00
Matthew Kennedy 591b8446fe minor adc_inputs cleanup 2024-07-21 13:21:02 -07:00
Matthew Kennedy 4554e099f4 if you need this command you need a debugger 2024-07-03 01:06:28 -07:00
Matthew Kennedy cf87e64119 compile-time enforcement of printf strings 2024-06-10 00:51:14 -07:00
Matthew Kennedy 3f8931f341 we often mean inline when we say static 2024-03-28 18:20:40 -07:00
Matthew Kennedy 17c6a46e84 optimize for hot thread stacks and data in CCM 2024-01-06 19:37:35 -08:00
Matthew Kennedy 053e9daceb oops these don't fit either 2024-01-06 19:01:41 -08:00
Matthew Kennedy 7b46529dee move some stuff in to CCM 2024-01-06 18:52:37 -08:00
Matthew Kennedy 7e2097056c unused parameters 2024-01-06 18:31:18 -08:00
Matthew Kennedy 6dc6f89e71 H7 2023-11-03 15:30:15 -07:00
Matthew Kennedy e625684c91 ads1015 shadow 2023-11-01 14:24:06 -07:00
Matthew Kennedy 68ef36c5d0 adc inputs shadowing 2023-11-01 14:22:29 -07:00
Matthew Kennedy 2fd26e948a remove proteus legacy build -> none exist in the wild 2023-05-18 15:29:31 -07:00
Matthew Kennedy d5f9479f28
ObdCode is enum class (#77)
* change ObdCode to enum class builds firmware

* test builds

* don't need this line at all

* can we go down to uint16_t?
2023-04-12 23:44:33 -07:00
Matthew Kennedy 495b5aebc7 mcp3208, hip9011 2023-02-20 22:40:31 -08:00
Matthew Kennedy 666a41e496 hip9011 2023-02-20 22:29:48 -08:00
Andrey G e086176fc1 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
rusefillc 33884f1f82 Support non-uniform dividers on ADC inputs #4938
maybe helping?
2023-01-08 15:37:51 -05:00
rusefillc 66866553e2 external muxes for internal ADC #3350 2023-01-07 22:09:43 -05:00
rusefillc b612c27917 external muxes for internal ADC #3350 2023-01-07 21:56:12 -05:00
Matthew Kennedy 96880543ca 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
rusefillc 584c4b7019 efi::size 2022-10-27 20:35:37 -04:00
rusefillc fadc7edbdb Adc unregister (#4684)
* Sensor: unregister on the fly #4683

* Sensor: unregister on the fly #4683

* Adc unregister #4684

* Adc unregister #4684
2022-10-20 09:33:27 -04:00
Matthew Kennedy a13445478f consolidate analog vs. temp info commands (#4646)
* consolidate analog vs. temp info commands

* cleanup

* guard
2022-10-10 07:44:20 -04:00
rusefillc f9b849dd8f refactoring - reducing API between FW and Java 2022-09-11 02:16:47 -04:00
Andrey 25b6d39802 os_access.h dead? 2022-09-07 15:56:45 -04:00
rusefillc b3e13f12b4 Adc mux (#4379)
* adc mux

* cypress is a special ADC size case

Co-authored-by: Matthew Kennedy <matthewkennedy@outlook.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-07-26 14:12:00 +03:00
Matthew Kennedy efdae2322d Start -> start (#4366) 2022-07-21 15:17:32 -04:00
Matthew Kennedy a0d9a584db prototype overcurrent protected driver (#4029)
* stub passthrough protected driver

* plumbing

* include the thing

* signature

* dead

* tdg pdm build task

* s

* pdm pins

* tdg

* init properly

* remove gaps

* board doesn't fatal on start
2022-05-17 23:49:18 -04:00
Matthew Kennedy a2e1a079b8 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