Commit Graph

2282 Commits

Author SHA1 Message Date
Matthew Kennedy d0e4a0c644 cleanup 2024-09-03 13:34:36 -07:00
Matthew Kennedy e20908704d print friendly pin names for "pins" command 2024-09-03 13:31:49 -07:00
Matthew Kennedy 761efd862c
MAP avg uses engine module callbacks (#475)
* use engine module callbacks

* happy tests

* happy small-can-board

* interact with map avg via module

* simplify map avg init

* tweaks

* omit module to disable it instead!

* unnecessary guard

* minor cleanups

* unnecessary branch - lookups for these tables are fine at 0 rpm

* oop
2024-08-29 22:38:30 -07:00
Matthew Kennedy 12321d4325 map averaging includes 2024-08-29 13:29:53 -07:00
Matthew Kennedy bd7f8f2bb6 remove trigger input debug pins 2024-08-28 02:06:02 -07:00
Matthew Kennedy 0b31777623 adc inputs cleanup 2024-08-12 18:13:51 -07:00
Matthew Kennedy b6ccc9b33f let's move away from PeriodicTimerController 2024-08-12 17:55:18 -07:00
Matthew Kennedy 48b8f08cb8 EFI_ACTIVE_CONFIGURATION_IN_FLASH 2024-08-07 12:09:30 -07:00
Matthew Kennedy e4e0824f57 misc format/comment cleanups 2024-08-07 12:01:08 -07:00
Matthew Kennedy 0b5b441982 minor reorder 2024-08-06 23:23:37 -07:00
Matthew Kennedy 08c878dbb9 sorry ADC trigger, your performance was never proven and you're in the way now 2024-08-06 23:21:36 -07:00
Matthew Kennedy 2e7425d037 fast adc skip 2024-08-06 23:07:34 -07:00
Matthew Kennedy 4b4d2ac4d5
ethernet console as engine module (#453)
* infrastructure for engine modules in the build

* fully move fuel pump

* fan

* gear detector

* gear detect

* fan control cleanup

* trip odometer

* shuffle makefiles around a little

* move ethernet console to engine module

* oops

* s

* final

* dead line
2024-07-23 20:52:37 -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 bd808552ee typo 2024-07-21 23:25:04 -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 aeec11078c adc cleanup 2024-07-21 13:22:28 -07:00
Matthew Kennedy 591b8446fe minor adc_inputs cleanup 2024-07-21 13:21:02 -07:00
Matthew Kennedy 1f1ace4ced do the math once instead of per-sample 2024-07-21 13:10:22 -07:00
Matthew Kennedy dd8dea61c0 rename Executor -> Scheduler 2024-07-11 17:03:13 -07:00
Matthew Kennedy adb5773c5f don't use scheduleForLater 2024-07-11 16:22:08 -07:00
Matthew Kennedy 4554e099f4 if you need this command you need a debugger 2024-07-03 01:06:28 -07:00
Matthew Kennedy 7936c5d90d dead console commands save 2k of flash 2024-07-03 00:31:44 -07:00
Matthew Kennedy f4ddf26313 for loop formatting 2024-07-03 00:26:17 -07:00
Matthew Kennedy 83e5738a96 actually reset the timer in case of <2US timing 2024-06-10 01:35:51 -07:00
Matthew Kennedy e7d2b1c17c compile-time enforcement of printf strings 2024-06-10 01:15:39 -07:00
Matthew Kennedy 1e2cd76a9d only check on firmware for now? 2024-06-10 01:00:23 -07:00
Matthew Kennedy cf87e64119 compile-time enforcement of printf strings 2024-06-10 00:51:14 -07:00
Matthew Kennedy efc74d9975 debounce init 2024-04-25 16:40:08 -07:00
Matthew Kennedy 1c354c08c3 smart gpio init 2024-04-25 16:39:56 -07:00
Matthew Kennedy cbed1af4ba default inits in trigger adc 2024-04-25 16:32:32 -07:00
Matthew Kennedy d8b2d3c329 debounce efidur_t 2024-04-25 14:38:21 -07:00
Matthew Kennedy 8d1029314a delete efitimems_t 2024-04-25 13:52:34 -07:00
Matthew Kennedy 5b51317585 get rid of efitimems_t 2024-04-25 13:51:16 -07:00
Matthew Kennedy e332b32ed1 distinguish between "timestamp" and "duration" 2024-04-25 12:57:10 -07:00
Matthew Kennedy 3f8931f341 we often mean inline when we say static 2024-03-28 18:20:40 -07:00
Matthew Kennedy a49de26ea9 the endianness was right the first time 2024-03-18 15:50:37 -07:00
Matthew Kennedy fb398cddb2 endianness was REALLY a mistake 2024-03-18 14:53:15 -07:00
Matthew Kennedy 85a031c20d endianness was a mistake 2024-03-17 11:50:43 -07:00
Matthew Kennedy a34f7b3ad2 max31855 uses polled exchange 2024-03-15 20:21:39 -07:00
Matthew Kennedy a358aa963f prep for #381 blocking factor 2024-03-15 11:34:06 -07:00
Matthew Kennedy c9d4befc4d
WiFi tweaks (#374)
* batch all wifi in to one write

* writeCrcPacket already chunks the response, so we don't really need it, but limit maximum TCP write size

* format cleanup

* don't cache wifi stuff (for now)

* h7 fiddling
2024-03-12 16:14:04 -07:00
Matthew Kennedy 498824eff4 tabs 2024-03-12 15:28:52 -07:00
Nathan Schulte bfb8cf1f89
GCC 13 simulator build, console->simulator on Linux (#378)
* engine: variable engine is: constexpr Engine

* can: rename CanRead::start to not hide

* console: support launching simulator on Linux

* console: fully encapsulate simulator binary name

* console: simplify simulator binary wrangling

* console: cleaner java code-style
2024-03-09 00:11:20 -08:00
Matthew Kennedy da1ad5b34f scripts should fail harder when they fail 2024-03-07 22:17:37 -08:00
Matthew Kennedy 2436e7c105
implement TS console over ATWINC1500 WiFi (#373)
* experimenting with atwinc1500

* rename to cpp

* if/else without curly braces

* nullptr

* static asserts

* unused params

* stub basic bsp and wifi console

* misc c++ fixes

* it appears to compile?

* enable/disable ISR

* idk why this needs to get commented

* dead code

* more wifi plumbing

* move wifi init after hardware init

* wifi bsp

* bsp handles empty SPI read/write, pin init

* build spi_flash.cpp

* don't double-enable interrupts

* maybe no need for extern "C"

* faster SPI

* socket kinda connects?

* wifi updater tool?

* log wifi stuff to efiPrintf

* I'm not sure why you have to skip the reboot it says you have to do

* working tcp implementation

* use lock instead of actually cycling interrupts

* improve socket receive performance

* add firmware info

* avoid locking for spi select/unselect

* allow larger SPI ops

* wifi thread priority

* hooks for pins and SPI device

* guard

* build atlas with wifi

* don't unconditionally define EFI_WIFI, oops

* only build wifi if wifi

* typo

* H7 SPI

* typo
2024-03-01 12:37:55 -08:00
Matthew Kennedy c0489d8591 oops, some boards needed spi prescaler func 2024-02-27 16:56:32 -08:00
Matthew Kennedy 4b02b7d46d
spi cleanup, add 4/5/6 to pickers 2024-02-27 13:42:19 -08:00