Andrey
f22af99597
only:alphax-4chan_f7
...
get rid of the 'undef' patter just move all defaults above f4 include?
2024-06-24 17:17:22 -04:00
Andrey Gusakov
421086a47e
mass_storage: allow EFI_USE_COMPRESSED_INI_MSD override
2024-05-27 08:41:17 -04:00
rusefi
95ea882ea6
only:reducing F7 mess
2023-12-25 21:52:11 -05:00
rusefi
611be6fe1a
only:alphax-4chan_f7
2023-06-30 21:51:36 -04:00
rusefi
9b730bb2b1
code style
2023-06-29 19:49:15 -04:00
rusefi
e0683196c6
helping 8chanF7
2023-06-29 17:41:27 -04:00
Andrey
dffb4ae4c2
F7
2023-06-20 23:35:17 -05:00
Matthew Kennedy
bb49b22294
joystick, lcd
...
(cherry picked from commit 61c17791b89fc6b5ae17df96d9498c088afdb09f)
2023-04-28 22:32:37 -04:00
rusefillc
91923771d7
Default binary should have more relaxed pinout: serial fix #4998
...
we can now simplify code a bit
2023-01-23 08:10:23 -05:00
rusefillc
f036c566f4
Default binary should have more relaxed pinout: serial #4998
...
refactoring: it looks like we can go with simpler code?
2023-01-23 06:01:10 -05:00
Nathan Schulte
fd1115d01a
code style, GPS fixes (test, firmware) ( #4822 )
...
* tidy NMEA
* const in nmea
* correct gps test output
* fix GPS UART print statements
* cleanup feature toggles in settings
* fix comment typos, misc whitespace
2022-11-23 07:01:34 -04:00
Matthew Kennedy
9f15218089
remove system lua VM ( #3864 )
...
* well, that was a fun experiment
* don't need that file
* s
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-06-29 16:52:17 -04:00
Matthew Kennedy
b92c0149d6
get rid of setSerialConfigurationOverrides ( #4274 )
...
* get rid of setSerialConfigurationOverrides
* missed a few
* kinetis
2022-06-23 19:42:09 -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
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
Matthew Kennedy
07e922bb4b
mitigate F7 flash error by making the image smaller ( #3859 )
...
* grumble
* do it for all F7
2022-02-19 15:56:44 -05:00
rusefillc
3f9a8cef57
now fixing h7
2022-02-09 23:40:00 -05:00
Scott Smith
1fe26f55fb
Expose console over serial port for H7 proc ( #3578 )
...
This way you can use the console/TunerStudio with the ST-Link
In the process, combine TS_PRIMARY_UART and TS_PRIMARY_SERIAL into TS_PRIMARY_PORT, to make UART vs
SERIAL selection more robus. Ditto for TS_SECONDARY_*. Also change use of TS_NO_PRIMARY to be #if
not #ifdef, so that it can be properly set as a compile flag and not be overwritten by various
header files.
2021-11-20 00:39:08 -05:00
Matthew Kennedy
ed7f7e693c
per-MCU lua size ( #3339 )
...
* per-MCU lua size
* simulator happy
2021-10-09 09:02:30 -04:00
Matthew Kennedy
d2003d24a0
make build happy ( #3067 )
2021-07-26 09:08:05 -04:00
Matthew Kennedy
080d901222
non blocking flash on f7 dual bank 2MB ( #2749 )
...
* f7 dual bank flash
* only start thread if necessary
2021-05-29 08:05:29 +03:00
Matthew Kennedy
20cef63d32
Lua on f407, try again ( #2725 )
...
* lua on f4
* move perf trace to efifeatures
* check that it's defined
* cypress and kinetis
* it would help to define the correct thing
* disable buffer if not used
* we can work with 2k
* turn off ramdisk on mre qc
* wow strncpy is useless for truncated strings
* turn off for bootloader
* lto bootloader
* memory
* memory
2021-05-20 23:05:18 +03:00
rusefillc
540bb8e327
Revert "lua on f407 ( #2646 )"
...
This reverts commit e8855263
2021-05-09 18:25:50 -04:00
Matthew Kennedy
e885526308
lua on f407 ( #2646 )
...
* lua on f4
* move perf trace to efifeatures
* check that it's defined
* cypress and kinetis
* it would help to define the correct thing
* disable buffer if not used
* we can work with 2k
* turn off ramdisk on mre qc
* wow strncpy is useless for truncated strings
* turn off for bootloader
* lto bootloader
2021-05-09 16:25:38 -04:00
Matthew Kennedy
8ae8484dd9
interactive lua ( #2614 )
...
* interactive lua
* unnecessary pop
* print return value
* enable f7 lua
* match f7 chconf
2021-05-03 17:46:12 -04:00
Matthew Kennedy
f0cf4f38ff
fix multi-serial-port insanity ( #2476 )
...
* carve out UART specific
* implement channel
* config cleanup
* use new config
* bootloader
* dead code
* s
* h7 inherits f7
* oops
* ok now it's right
* tests
* cleanup
* call setup
* put that in its own file
* cleanup
* format
* guard
* not needed
* improve guarding
* portable
* allow override of uart mode
* fixes for bootloader
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-28 09:06:36 -04:00
Matthew Kennedy
b729bdbcbf
Store ini filesystem in compressed block device ( #2420 )
...
* add module
* implement compressed block device
* enable for f7/h7
* script
* stub compressed image
* implement
* call the script
* headers, comments, fix init bug
* set msd options
* update chibios-contrib
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-07 19:25:34 -05:00
Matthew Kennedy
90ef4c93ad
merge mcuconf for f4/f7 ( #2375 )
...
* merge for f4/f7
* more
* include efifeatures
* s
* no TS serial on f7 for now
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-18 15:04:32 -05:00
Matthew Kennedy
878794f9cf
properly put buffers in no-cache regions ( #2357 )
...
* configure for no cache
* this doesn't need a setting
* now we don't need invalidate
* reorder and comment
* mmc
* sw knock
2021-02-15 17:39:11 -05:00
Matthew Kennedy
3ff54eb1c0
cleanup ( #2343 )
2021-02-13 14:23:39 -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
rusefillc
d80ed37040
reducing code duplication
2021-02-05 23:56:22 -05:00
rusefillc
6a2473ccc1
reducing code duplication
2021-02-05 23:45:47 -05:00
rusefillc
6915852a7a
reducing code duplication
2021-02-05 23:41:26 -05:00
rusefillc
92625913d2
code reuse good, code duplication bad
2021-02-05 22:19:24 -05:00
Andrey G
777979c3ca
Chibi os 20 ( #2212 )
...
* Update ChibiOS
* Fix Makefiles includes paths
* halconf.h: remove flash hack
* mcuconf: fix EXTI ptiorityes
* Digital Input: ICU: use designated initializers, initialize 'arr'
* ChibiOS: lis302dl fix
* ADC: update to new API
* UARTConfig: timeout_cb field, formating
* ChibiOS: remove _exit, _kill, _getpid
* Fix lis302dl
* Bump config versions
* chconfig_common: cosmetic changes
* stm32f4ems: commulative config update
* Update Simulator
* ALLCSRC already contain all needed ChibiOS files.
Same for ALLINC and ALLCPPSRC
* ChibiOS fix for Simulator
* ChibiOS: port lock/unlock hook and MMC over SPI timeout
* STM32F7: update configs
* STM32F7: update linker file
* Cypress: port ADC lld to ChibiOS-20
* Cypress: port SPI lld to ChibiOS-20
* Cypress: port CAN lld to ChibiOS-20
* Cypress: fix include path for rules.ld
* Cypress: update chconf.h and halconf.h for ChibiOS-20
* Kinetis: update ADC lld to ChibiOS-20
* Kinetis: update SPI lld to ChibiOS-20
* Kinetis: update UART lld driver for ChibiOS-20
* Kinetis: update chconf.h and halconf.h for ChibiOS-20
* Kinetis: fix include path for rules.ld
* Nucleo F746: update ld script
* Nucleo F746: fix compile
* Bootloader: fix compilation with ChibiOS-20, cleanup
* Bootloader: add way to pass crosscompiler using CROSS_COMPILE
* Debug build arguments
* Simulator: fix windows compilation
Exclude syscalls_cpp.cpp from compilation
2021-01-19 15:20:35 -05:00
Andrey G
f96ae7525f
Gpio cleanup #2 ( #1530 )
...
* pin repository: PIN_USED size in now equal to brain_pin_e enum size
expect special values...
* smart gpios: register gpio chip to given base (no auto-allocation)
* drivers: gpio: core: add gpiochip_unregister()
* drivers: gpio: MC33810 intergation
* smart_gpio.cpp: cleanup ifdef mess, minor cleanups
* gpio: core: additional check for gpio ranges overlaps
* unit test: gpio chip: fixed and extended
2021-01-06 18:29:47 -05:00
Matthew Kennedy
8ad2080df7
switch stm32 scheduling to use PWM driver ( #1983 )
...
* move to folder
* extract hardware part of microsecond_timer
* dead ST forum link
* de-volatile
* simulator build
* guard
* switch stm32 to pwm timer
* comments
* f7 mcuconf
* simulator
* guard
* warning
* header, cleanup
* constant
* less magic
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-11 00:44:40 -05:00
Matthew Kennedy
f3b7a1d9da
Remove lockAnyContext, replace with CriticalSectionLocker ( #1938 )
...
* switch to CriticalSectionLocker
* that's just about all
* clean up last usage
* include hpp for sim
* need the cpp wrappers in the makefile too
* include dir
* include
2020-11-19 06:56:02 -05:00
Matthew Kennedy
e0bb7ad581
disable i2c, other unused features ( #1891 )
...
* dead
* more
2020-10-20 22:24:32 -04:00
Matthew Kennedy
4e81b67ca3
harmonize blocking factor ( #1709 )
...
* harmonize blocking factor
* static assert
2020-08-21 14:12:28 -04:00
rusefi
d347998d00
UART DMA for "primary" connector #1528
2020-06-22 01:44:19 -04:00
rusefi
81e3894f43
UART DMA for "primary" connector #1528
2020-06-21 22:26:11 -04:00
rusefi
f592bcbdeb
UART DMA for "primary" connector #1528
2020-06-21 22:19:38 -04:00
rusefi
639a27f572
UART DMA for "primary" connector #1528
2020-06-21 22:14:01 -04:00
rusefi
2a64b6eb1a
refactoring connectivity
2020-06-21 16:37:33 -04:00
Matthew Kennedy
3a7c6f242b
Hardware pwm ( #1283 )
...
* hard pwm
* fix, comments
* PC6-9 and PD12-15
* PB6-9
* dynamic frequency
* f7 mcuconf
* format
* relocate to common, support variable frequency
* error handling
* oops
* fix test build
* noop kinetis
* better guards
* guard for bl
* guards don't work if they have typos
* more mapping
* oops
* don't use for slow pwm
* enable pwm
* guard properly
* save a little memory
* use less mem
* correct timers
* all your ram are belong to us
* update limit & comment
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-28 16:02:41 -04:00
Matthew Kennedy
125701f514
free up timers for hardware PWM ( #1459 )
...
* free up timers
* put that back
2020-05-20 19:14:42 -04:00
rusefi
af8de4c84f
Revert "Minor fixes ( #1442 )"
...
This reverts commit 0c095ddd
2020-05-16 19:28:49 -04:00
dron0gus
0c095ddd15
Minor fixes ( #1442 )
...
* exti trigger: mark pins used, handle errors
* MC33810 add to smart gpios
2020-05-16 19:15:49 -04:00