Commit Graph

51 Commits

Author SHA1 Message Date
rusefillc 0f8fe7aec5
OpenBLT: shared params between BL and main FW (#268)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-06-15 02:04:08 -07:00
rusefillc 4667e991d4
max3185x: support also max31856 (#253)
(cherry picked from commit 703985dc709afad2df0ff69d929751894da51b34)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-05-29 15:16:28 -07:00
rusefillc 9519ad51dd
indication: advanced indication with per-channel status led (#235)
* indication: advanced indication with per-channel status led

(cherry picked from commit b486dfe682622c9835cf00457834cebf6e34da2f)

* f1_dual_rev1: enable advanced indication

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-05-03 13:18:05 -07:00
rusefillc 898fa20c2b
Dac helper (#226)
* dac: move helpers to separate cpp and h

(cherry picked from commit aee71931db269fc256ab43e1fb84b71c77e215d7)

* dac: HAL_USE_DAC guards

(cherry picked from commit 5517844e4d0f79c7cf8c5bb097c110541063bddf)

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-17 14:11:34 -07:00
Matthew Kennedy 60445fbed3 catch faults 2023-01-05 16:56:28 -08:00
rusefillc a652715873
interpolation helpers are no longer used (#145)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-09-05 22:51:49 -07:00
rusefillc 09872e0d3c
F103 rev 3 (#136)
* f1_rev3: add board support (mostly copy-paste)

* f1_rev3: add to workflows

* hal_mfs.mk - one way or another we will use MFS for sure in this repo

* SPI means EGT and EGT means SPI

* one step towards master

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-08-20 11:39:03 -07:00
Andrey G 0572719783
Makefile: add ChibiOS C++ wrappers (#129)
After adding max31855 driver linker needs __cxa_pure_virtual.
I'm not a C++ expert, bit this wrapper already exist in ChibiOS
so lets use it.
2022-07-21 10:14:21 -07:00
rusefillc 41e87292c5
Add max31855 driver (#103)
* Add max31855 driver

* f1_dual: enable EGT driver

* bit.h: bit helper

* max31855 driver progress

* max31855 driver fixing guard

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-07-20 16:36:23 -07:00
Matthew Kennedy a08a7dc3de fragments from lib 2022-07-18 15:26:00 -07:00
Andrey G 63ef4b7a10
TS more and more (#123)
* TunerStudio: simplify enable magic

* TS integration: livedata, FragmentEntry

* f1_dual: reorder TS hooks

* f1_rev2: dummy settings for TS

* f1_rev2: TS signature

* f1_rev2: TS ini file

* Integrate with TS interface

* livedata: access adapters, no extern, make livedata static

* FragmentEntry: no FragmentEntry()

* livedata: struct not needed
2022-07-18 12:31:09 -07:00
Matthew Kennedy 6135464dc8
use libfirmware for crc, table lookup (#121)
* use libfirmware for crc

* kick

* bootloader

* bootloader

* use shared interpolate2d

* cleanup
2022-07-16 19:08:45 -07:00
rusefillc 55f65ad02d
Ts top down (#104)
* TS top down

* TS top down

* TS top down

* TS top down

* Ts top down #104

removing the controversial part

* Ts top down #104

removing the controversial part

* docs

* fix build (switch to serial)

* f1_dual: UART->Serial

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-07-15 11:10:15 -07:00
Andrey G 18c22abdfa
bootloader: make bootloader flash area reserve optional (#111)
* bootloader: make bootloader flash area reserve optional

and increase config flash area to 8K

* f1_rev2: empty blflash section
2022-07-15 00:07:41 -07:00
rusefillc 1454c10713
AUX outputs (#95)
* AUX outputs

* Rev2: define AUX output PWM device and channels

* Rev2: enalbe TIM1 used for aux outputs

* Rev2: define aux output gain

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-07-03 12:11:12 -07:00
rusefillc 0430e4a7ba
board: common make script (#73)
* board: common make script

(cherry picked from commit cb087c60e9)

* common_make -> build_f1_board

* f1_rev2: use build_f1_board.sh helper

* Add encedo hex2dfu tools (bin for linux and win)

See https://github.com/encedo/hex2dfu

* Makefile: priduce srec too

* f1_rev2: OpenBLT: build bin and hex files

* f1_rev2: OpenBLT: optimize for size to fit into 8K flash

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-07-02 13:47:55 -07:00
rusefillc fad49f553f
Crc bootloader (#88)
* more code reuse

* more code reuse

* more code reuse

* more code reuse

* more code reuse

* more code reuse

* make it compile and actually include all the functions

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-06-30 10:07:33 -07:00
rusefillc 1e19b43d35
s/C/CPP/ (#86)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-06-29 11:43:36 -07:00
rusefillc ccb790f532
Steal tunerstudio files from RusEFI (#71)
* Steal tunerstudio files from RusEFI

(cherry picked from commit dcba04fbd3)

* Steal crc32 files from RusEFI

(cherry picked from commit bfe88b5297)

* fix TS steal

(cherry picked from commit a77b9761da)

* fix crc32

(cherry picked from commit cdb4df09f6)

* TS stealed from RE

(cherry picked from commit ff470e1340)

* Steal TS

(cherry picked from commit d11406edc2)

* Steal Thread Controller

(cherry picked from commit 2aa5bbd571)

* Update TunerStudio protocol files

(cherry picked from commit 58f14216ec)

* byteswap.h

(cherry picked from commit 581d647fd4)

* bugfix

* one more file to compile, another file not ready - removing from this PR

* removing more from this PR

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-06-29 01:29:40 -07:00
rusefillc 4ee8610645
More stack (#74)
(cherry picked from commit eb20d28bad)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-06-22 11:10:16 -07:00
rusefillc b9b94fcadc
Temperature (#63)
* integer id interpolation

* Calculate sensor temperature based on Ri

* Sensor Ri around 25C

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-05-07 11:12:20 -07:00
Matthew Kennedy b420d7aa56 Revert "open question but probably useful (#31)"
This reverts commit dd4b3dd081.
2022-01-04 10:41:35 -08:00
rusefillc dd4b3dd081
open question but probably useful (#31) 2022-01-04 10:40:03 -08:00
Matthew Kennedy 03aec72af7 now this should work 2021-12-27 20:56:55 -08:00
rusefillc fa8e2b1deb
better io file arrangement - Makefile gives more flexibility than relative path from .cpp file (#30)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2021-12-27 19:08:58 -08:00
Matthew Kennedy 459e45908a warn about missing submodules 2021-04-28 14:41:58 -07:00
Matthew Kennedy d878252b48 move adc to port 2021-02-25 22:39:51 -08:00
Matthew Kennedy b2b05b0c45 extract mcu 2021-02-25 22:35:26 -08:00
Matthew Kennedy cdd4a60fdc grumble grumble this changes the link order 2021-02-25 22:26:55 -08:00
Matthew Kennedy 1dbc8d3402 don't need that 2021-02-25 22:21:27 -08:00
Matthew Kennedy e2fcaa40fc make bootloader optional 2021-02-25 22:10:53 -08:00
Matthew Kennedy a61b23cd44 move board-specific stuff in to its own folder 2021-02-25 22:02:15 -08:00
Matthew Kennedy 8aee43ba8f don't need float printf 2020-12-11 00:24:14 -08:00
Matthew Kennedy 9b23129d2a extract uart 2020-12-10 23:48:47 -08:00
Matthew Kennedy 8b9569d906 turn on link gc 2020-12-10 21:46:57 -08:00
Matthew Kennedy 031c7d6b3f makefile 2020-12-10 21:03:59 -08:00
Matthew Kennedy c986a2e05c shared flash impl 2020-12-09 00:24:06 -08:00
Matthew Kennedy a318bedcfe app linker settings for bl 2020-12-02 16:01:54 -08:00
Matthew Kennedy a5f0f4eb3b custom linker script 2020-11-27 19:58:38 -08:00
Matthew Kennedy 2aedbd6eef lambda conversion 2020-11-01 01:17:13 -08:00
Matthew Kennedy 3fdf60b956 pump controller 2020-10-31 16:59:35 -07:00
Matthew Kennedy d39df2d199 heater pid 2020-10-31 14:58:34 -07:00
Matthew Kennedy 0a96a10734 extract heater control 2020-10-30 01:53:54 -07:00
Matthew Kennedy fbc6430aba implement sampling math 2020-10-29 02:55:55 -07:00
Matthew Kennedy b611a96f05 extract pump dac 2020-10-27 16:33:32 -07:00
Matthew Kennedy 1fca955973 lambda lookup table 2020-09-20 03:26:02 -07:00
Matthew Kennedy 284c0d2efd optimize 2020-09-20 02:35:48 -07:00
Matthew Kennedy f64d586411 analog 2020-09-19 21:39:29 -07:00
Matthew Kennedy 397f9aee64 oops 2020-09-19 16:51:13 -07:00
Matthew Kennedy cda402e38f add pwm 2020-09-19 15:44:10 -07:00