Commit Graph

39 Commits

Author SHA1 Message Date
Andrey 8a5c8770d4 Revert "variable shadowing should be avoided #5676"
This reverts commit 1452e3dfcd.
2024-05-23 15:32:29 -04:00
Andrey 1452e3dfcd variable shadowing should be avoided #5676
only: short term solution
2024-05-23 14:10:23 -04:00
Andrey Gusakov a7068ba506 flash: sst26f: move to subfolder 2024-05-18 18:04:37 -04:00
rusEFI LLC af913ef788 only: better file name 2024-05-01 19:45:14 -04:00
rusefillc 42d0951492 calibrations_on_flash.mk (#6427) 2024-05-01 19:45:14 -04:00
rusefillc c166edb0aa
calibrations_on_flash.mk (#6432)
* spi flash mk
2024-05-01 17:59:48 -04:00
Andrey Gusakov 36dc4ddb4b subaru eg33: use common hw enums 2024-04-30 08:12:25 -04:00
David Holdeman 7b67c07e28 Move cypress, kinetis, and subaru generated from algo/ to generated/ 2024-03-19 08:48:16 -04:00
andreika-git ce9480f854 remove SHORT_BOARD_NAME def from .mk https://github.com/rusefi/rusefi/issues/5931 2024-02-12 13:46:31 -05:00
rusefillc c3c539fa94 only: just a rename to follow the convention 2024-01-16 12:16:37 -05:00
rusefillc 18f4f96c93 bootloader 2023-12-30 16:22:30 -05:00
andreika-git 1585cb2137 Fix subaru_eg33 for OpenBLT 2023-12-30 16:16:10 -05:00
Andrey 6e579a3776 turning smart chips off by default 2023-11-22 07:50:40 -05:00
Matthew Kennedy 319468affb move SHORT_BOARD_NAME in to a makefile variable 2023-11-08 11:31:54 -05:00
rusefillc dfedfc0d82 one variable per line is usually better 2023-11-08 09:35:40 -05:00
Andrey G 1eea6c946b
Prepare for MFS on internal flash (#5686)
* Rename EFI_STORAGE_EXT_SNOR to EFI_STORAGE_MFS

Just to reduce confusion. MFS is going to be used for AT32 internal
flash.

* MFS: hide low level stuff to board file

MFS can be located on internal or external flash/eeprom.
This is board-dependent, so hide intialization and configuration
to board file.
This should also help switching to MFS on internal flash too.

* Fix simulator

* Fix comments
2023-11-03 07:30:31 -04:00
Andrey G a7a6f4fcee
subaru_eg33: LEDs are still active low (#5658)
Fix bug introduced in f7e6ccd9e2
2023-10-29 15:35:58 -04:00
Andreika 84c6d4cde6
More universal Board-ID for bench test (#5518)
* add STATIC_BOARD_ID defines to get Board-ID more universal

* add getBoardId()

* broadcast BENCH_TEST_BOARD_STATUS via CAN

* add guards for sendBoardStatus()
2023-08-18 18:41:17 -04:00
rusefillc 5c194059c0 reducing enum confusion 2023-06-19 00:37:11 -04:00
Matthew Kennedy 73f4436397
deduplicate $(BOARD_DIR) in makefiles (#5024)
* calculate BOARD_DIR exactly once

* deduplicate board scripts

* unit tests

* make passes variables to openblt build properly

* was this an intentional omission?

* s

* prometheus

* prometheus
2023-02-01 14:41:27 -05:00
Matthew Kennedy 0bc445b461
flip icu/pal default (#4268)
* flip icu/pal default

* s

* s

* cleanup

* eg33
2022-06-22 18:43:39 -04:00
Matthew Kennedy e4a0979dc2
Brain pin is enum class (#4108)
* change most usages to Gpio::

* board configs

* engine configs etc

* isBrainPinValid, smart gpio

* generator

* generator

* generator

* connector yamls

* kinetis enums

* cypress txt

* kinetis config

* frankenso

* config generator

* actually do it for the others

* disable skips for pr ci

* fix tle8888

* misc

* weird cast from int

* needs this operator too

* this can be an unsigned subtract

* happy tests

* s

* kinetis isConfigurationChanged weirdness

* missed J/K

* cypress efifeatures

* build script mistake (!)

* mistake in smart gpio

* debounce

* eg33

* kinetis, so needy

* it's pretty green, we can skip these again
2022-04-28 17:32:39 -04:00
Matthew Kennedy 2ee96bab90
set SHORT_BOARD_NAME from mk, not shell script (#4078)
* MRE

* proteus

* weird format lol

* alphax 4

* alphax 2ch

* prometheus, subaru

* s

* put a canary in the coal mine

* activate the sleepy canaries

* atlas

* tdg pdm

* The canary detected the problems it needed to

This reverts commit b0a3718b115f69f85f78fc4814aec04434968c0f.

* Revert "activate the sleepy canaries"

This reverts commit f80cfcdd789418caa30854064bcb9ce865eee474.

* prometheus
2022-04-18 14:22:05 -04:00
rusefillc f4fe1ce310
Explicit fw (#3968)
* explicit FW ID

* explicit FW ID

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-02-27 00:49:47 -05:00
Andrey G 2c8a7b6a9f
Enable EFI_EMBED_INI_MSD for EG33 board (#3957)
* Allow per-board EFI_EMBED_INI_MSD enable for F7

* eg33: enable EFI_EMBED_INI_MSD
2022-02-23 12:03:10 -05:00
Andrey G 788ac5508d
Flash size on eg33 (#3955)
* subaru-eg33: 1M of flash is available for FW and bootloader

* ports: stm32f7: allow board define its flash size, otherwise 512K
2022-02-23 07:36:58 -05:00
Andrey G a50f848857
L9779: initial driver (#3897)
* smart_gpio.cpp: glue to L9779

* L9779: fill with some code

* L9779: missed getDiag

* L9779: no l9779 on subaru-eg33 board
2022-02-06 09:47:18 -05:00
rusefillc 999fa23e2a reducing copy-pasta - would this work? 2022-01-04 20:47:12 -05:00
rusefillc e2a9acac23 reducing copy-pasta - would this work? 2022-01-04 20:03:41 -05:00
rusefillc c411029383 reducing copy-pasta - would this work? 2022-01-04 19:08:37 -05:00
Matthew Kennedy 95b5c6fcf9
dead vss flag (#3499) 2021-11-07 14:36:46 -05:00
Andrey G c23e02c582
Settings ext storage (#3155)
* flash_main.cpp: reorder code for easy integration of ext storage

* Add EFI_STORAGE_INT_FLASH option

Default set to TRUE

* Add ChibiOS's Managed Flash Storage to build

* Add support for QSPI flash (SST26F064A tested)

* board: subaru: enable WSPI and NOR flash drivers

* Add option to save settings on ext flash MFS partition

* board: subaru: store settings on QSPI NOR flash
2021-08-14 09:36:08 -04:00
Andrey G a4a6f251ed
subaru board fixes (#3154)
* board: subaru: fix pinmuxes for QSPI interface

* board: subaru: switch to EXTI
2021-08-14 15:45:30 +03:00
Andrey G 6d6dca8d07
Subaru board update (#2600)
* board: subaru eg33: linker script: stack, bss and heap to ram0

* Board: Subaru EG33: clean-up configs

* board-subaru-eg33: fix board config

* engine: subaru: eg33: fixes
2021-04-28 20:25:33 -04:00
Andrey G 12b7b737dc
Subaru build (#2376)
* Subaru EG33: gen_config.sh update

* gen_config and gen_enum_to_string for subaru_eg33 board too

* Subaru eg33: add to buildables

* Subaru: fix build

* Subaru eg33: fix build and cleanup

* subaru eg33: add compile script

* github: subaru_eg33: call special  gen_config.sh
2021-02-18 18:18:13 -05:00
Matthew Kennedy dade25ef34
move chconf/mcuconf/halconf in to hw_ports (#2321)
* move f4 config files

* don't need this

* f7

* f7

* h7

* this was duplicated

* turn off smart build

* loader too

* update prometheus paths

* bootloader should include confdir

* fix the flash size while we're at it

* move chconf_common

* use wait

* normalize board.mk

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-10 19:38:24 -05:00
Matthew Kennedy b995e7bcaa
include board.c from hw_ports.mk (#2311)
* set mcu type in hw_ports

* move f4 linker script

* move f7 linker script

* don't set default linker file in makefiles

* extra line

* prometheus actually didn't depend on anything special for f469

* dead line

* h7

* dead

* move board.c

* set explicit cpu type for simulator

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-08 07:52:31 -06:00
Matthew Kennedy 423acd384b
simplify MCU selection (#2308)
* set mcu type in hw_ports

* move f4 linker script

* move f7 linker script

* don't set default linker file in makefiles

* extra line

* prometheus actually didn't depend on anything special for f469

* dead line

* h7

* dead
2021-02-08 02:11:44 -05:00
Andrey G 08a5421090
Add subaru eg33 (#2294)
* engine: Subaru SVX EG33 engine configuration

Not tested yet. Just basic settings and placeholder

* board: add Dron_Gus's Subaru EG33 p'n'p board

* board: subaru eg33: linker script: stack, bss and heap to ram0

* board: subaru eg33: add mapping.yaml

* board: subaru eg33: scripts for autogenerated

* board: subaru eg33: fix DMA conflict (ADC1 vs SPI5)

* board: subaru eg33: enable ADC3

* board: subaru eg33: Autogenerated

* board: subaru eg33: disable fsio control of Main Relay

Default MAIN_RELAY_LOGIC cause error during parsing

* board: subaru eg33: configuration hack to fix usbconsole.c

* gen_config: generate config for Subaru SVX board too
2021-02-06 12:50:34 -06:00