Commit Graph

12485 Commits

Author SHA1 Message Date
Matthew Kennedy cc566744be write flash on separate thread for H7 (#2490)
* write flash on separate thread for H7

* cleanup

* getting the parameters in the correct order generally helps

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 18:44:41 -04:00
Matthew Kennedy 368415972e read configuration from flash exactly once (#2481)
* early hw init

* s

* read configuration exactly once

* cleanup

* housekeeping

* test friendly

* ugh bad merge

* that is a noop

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 18:16:26 -04:00
Matthew Kennedy 2839c6f069 use cpp (#2493) 2021-03-25 18:12:17 -04:00
Matthew Kennedy 67925a98fc +x (#2492) 2021-03-25 17:16:25 -04:00
rusefillc e00abc59cb making Android less unhappy 2021-03-25 16:30:01 -04:00
rusefillc 8e356d8117 Merge remote-tracking branch 'origin/master' into master 2021-03-25 16:28:36 -04:00
Matthew Kennedy 0e6f60ee8f setup script tweak path (#2491)
* fix

* setup script

* chmod

* gdb

* use path instead of symlink
2021-03-25 16:22:16 -04:00
Matthew Kennedy 53a579abbf move some initialization steps earlier (#2480)
* early hw init

* s

* Revert "s"

This reverts commit 10d3039168613cfb2b0cf1c960d2f18894745ce3.

* bor

* I can't type

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 16:22:03 -04:00
Matthew Kennedy 4e1d30f86d plumbing for multiple vvt (#2488)
* plumb multiple vvt

* fix test

* s

* fix barra while we're at it

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 07:39:23 -04:00
rusefillc e2d189f86c $3B 2021-03-24 21:49:12 -04:00
Matthew Kennedy a97a2393d9 add setup script for linux environment (#2486)
* fix

* setup script

* chmod

* gdb
2021-03-24 21:39:49 -04:00
rusefillc 9415823497 $1B 2021-03-24 21:17:29 -04:00
GitHub set-date Action 904717b77b Update date 2021-03-25 00:29:25 +00:00
GitHub set-date Action 59c589a177 Update date 2021-03-24 00:49:15 +00:00
GitHub build-firmware Action 00f7b19e0d Auto-generated configs and docs 2021-03-24 00:29:05 +00:00
Matthew Kennedy 89cdb7fe89 fix (#2485) 2021-03-23 20:27:10 -04:00
GitHub build-firmware Action 7cdd6f8228 Auto-generated configs and docs 2021-03-23 19:20:23 +00:00
Matthew Kennedy 9b5ec4bdef vvt ui (#2484) 2021-03-23 15:18:36 -04:00
GitHub set-date Action e9cd88a926 Update date 2021-03-23 00:48:35 +00:00
GitHub build-unit-tests Action fe2b1ddae3 Trigger wheel definitions 2021-03-22 18:33:55 +00:00
Matthew Kennedy 92d249918b rename setBoardConfigurationOverrides (#2479)
* rename

* proteus

* comments

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-22 14:15:09 -04:00
GitHub build-firmware Action 335d55b48d Auto-generated configs and docs 2021-03-22 11:54:44 +00:00
Matthew Kennedy db7856523c barra vvt cam pattern (#2483)
* barra vvt cam pattern

* two tooth sync

* I think this needs to be here too
2021-03-22 07:48:29 -04:00
GitHub set-date Action 77b0b8f5d2 Update date 2021-03-22 00:49:10 +00:00
Matthew Kennedy e38aa3aa8c fix (#2478) 2021-03-20 22:07:52 -04:00
GitHub set-date Action 0b021cf416 Update date 2021-03-21 00:51:23 +00:00
rusefillc 1162e5e75b time_since_boot should be used in MAIN_RELAY_LOGIC #2258
safer implementation for now
2021-03-20 12:47:02 -04:00
Andrey G aa05ff195d Hip9011 and cleanups (#2477)
* hip9011: move hipCs out of EnginePins to hip9011 driver

* hip9011: cleanup debug output, save few RAM bytes

* Supress few signed vs unsigned warnings
2021-03-20 08:40:36 -04:00
GitHub set-date Action 3cfbd336e2 Update date 2021-03-20 00:48:31 +00:00
Matthew Kennedy d65190b8a5 embiggen MSD stack (#2475) 2021-03-19 19:56:47 -04:00
GitHub build-firmware Action 1144514671 Auto-generated configs and docs 2021-03-19 21:20:54 +00:00
Matthew Kennedy 7cdad67f3f USB uses its own channel, add implementations for serial channels (#2472)
* USB uses its own channel

* revise channels

* put serial ports in their own file

* h7 uart incompatible for now

* guard for sim
2021-03-19 17:05:04 -04:00
Matthew Kennedy 2bf833a1ee Usable fuel consumption data/gauges (#2474)
* fuel consumption

* gauge names

* consumers

* obd

* binary logging

* doesn't need explicit constructor

* getters

* it works

* correct for injections per cycle

* datalog

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-19 17:04:42 -04:00
GitHub build-firmware Action 62c38de068 Auto-generated configs and docs 2021-03-19 12:41:10 +00:00
Matthew Kennedy 5e6746c3aa Implement nonlinear fuel level sender (#2473)
* table function

* config fields

* sensor type

* switch consumers

* init the sensor

* ui

* 1mv resolution

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-19 08:39:08 -04:00
GitHub set-date Action c16757b75a Update date 2021-03-19 00:49:12 +00:00
Matthew Kennedy cb33bb77ae Dedicated code path for USB console/TS (#2465)
* new apis

* dedicated USB path

* move decl

* init

* don't init usb twice

* guard

* check that we're initialized before using TS

* comment

* guard

* guard USB

* brain doesn't go good

* make tests happy

* dead define

* cypress

* ifdef != if

* s

* include priority

* don't start a thread we know we don't need

* bad-ish merge

* const

* why did this code exist...?

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-18 14:07:22 -04:00
rusefillc 4b6044344a "MRE Miata 94 MAP" 2021-03-18 04:30:18 -04:00
Matthew Kennedy d9f58c2993 fix (#2471) 2021-03-18 04:02:32 -04:00
GitHub set-date Action 058046ceb0 Update date 2021-03-18 00:48:10 +00:00
Matthew Kennedy 925a6ca086 harden against various no-boot scenarios (#2468)
* zero length trigger

* validate config

* validate cylinder count

* wrong type on cylinder count

* invalid comment

* invalid SPI
2021-03-17 09:24:13 -04:00
Matthew Kennedy 34b678728a extract CAN TS channel (#2469)
* extract CAN channel

* this is gross
2021-03-17 08:39:13 -04:00
GitHub set-date Action d32e1bba4f Update date 2021-03-17 00:48:26 +00:00
Andrey G 4b9181a5cd Enable trigger stimulation after HW timer initialized (#2466)
To avoid 'CRITICAL error: hwTimer not alive' error
2021-03-16 17:31:30 -04:00
GitHub set-date Action 2dc0c9306f Update date 2021-03-16 00:47:02 +00:00
Matthew Kennedy 2d4b434534 more 2021-03-15 17:12:34 -04:00
Matthew Kennedy a4da2322ef this syntax was technically illegal 2021-03-15 17:12:30 -04:00
Matthew Kennedy 60a7db4a06 dead 2021-03-15 17:12:01 -04:00
Matthew Kennedy a26002bc02 type signature, guards 2021-03-15 17:11:11 -04:00
rusefillc d9a3638dc6 Potato Chip Day 2021 Release 2021-03-15 13:57:47 -04:00