Matthew Kennedy
8237dd6a41
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
c75af2ac75
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
392bfbc859
cleanup ( #2343 )
2021-02-13 14:23:39 -05:00
Matthew Kennedy
adff68748c
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
1a7c7ff983
reducing code duplication
2021-02-05 23:56:22 -05:00
rusefillc
7fe83b4da1
reducing code duplication
2021-02-05 23:45:47 -05:00
rusefillc
7962f8e501
reducing code duplication
2021-02-05 23:41:26 -05:00
rusefillc
59efbf8833
code reuse good, code duplication bad
2021-02-05 22:19:24 -05:00
Andrey G
27905c6817
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
f962a7bd64
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
6f491cf5c4
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
2792828dce
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
8f6982dd54
disable i2c, other unused features ( #1891 )
...
* dead
* more
2020-10-20 22:24:32 -04:00
Matthew Kennedy
207aafe262
harmonize blocking factor ( #1709 )
...
* harmonize blocking factor
* static assert
2020-08-21 14:12:28 -04:00
rusefi
983ce38d41
UART DMA for "primary" connector #1528
2020-06-22 01:44:19 -04:00
rusefi
fdbdf01eae
UART DMA for "primary" connector #1528
2020-06-21 22:26:11 -04:00
rusefi
47433a4003
UART DMA for "primary" connector #1528
2020-06-21 22:19:38 -04:00
rusefi
c6924d23fa
UART DMA for "primary" connector #1528
2020-06-21 22:14:01 -04:00
rusefi
af82d63112
refactoring connectivity
2020-06-21 16:37:33 -04:00
Matthew Kennedy
d13bd0b77c
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
61b8bfb7e3
free up timers for hardware PWM ( #1459 )
...
* free up timers
* put that back
2020-05-20 19:14:42 -04:00
rusefi
7e33ad575d
Revert "Minor fixes ( #1442 )"
...
This reverts commit 2e9cff85
2020-05-16 19:28:49 -04:00
dron0gus
2e9cff8596
Minor fixes ( #1442 )
...
* exti trigger: mark pins used, handle errors
* MC33810 add to smart gpios
2020-05-16 19:15:49 -04:00
kon
ae44c0fce7
Aux serial ( #1422 )
...
* aux serial updates from last PR
* trying to guess
* wow that's old! also not working maybe?
* hiding diag code which was messing with GP2/GP3 i.e. TLE8888_PIN_22 TLE8888_PIN_23
* date
* Mc33 undervolt (#1421 )
* mc33 flash check
* DI sanity checks for setting HV config
* mc33 under voltage check
* mc33 under voltage check
Co-authored-by: Christopher W. Anderson <gitstuff@pswitch.com>
* fixed {}
Co-authored-by: rusefi <rusefillc@gmail.com>
Co-authored-by: NOx-z <50815960+NOx-z@users.noreply.github.com>
Co-authored-by: Christopher W. Anderson <gitstuff@pswitch.com>
Co-authored-by: kon <dev@triggerdevel>
2020-05-11 12:17:42 -04:00
rusefi
2951a161bf
it's a mess but helps Proteus F7
...
F4 Proteus will will handle separately
2020-05-06 18:14:23 -04:00
rusefi
cc1ca11e40
reducing confusion?
2020-05-04 20:52:32 -04:00
rusefi
5d6ec1d68b
refactoring: using brain_pin like the rest of the code
2020-05-02 23:47:10 -04:00
Matthew Kennedy
a9bf0f8358
Perf Trace Improvements ( #1383 )
...
* add tid field to thread
* change perf trace format
* trace consumers
* Update java parsing
* guard for test + kinetis
* stubs
* ram
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-29 10:53:35 -04:00
Matthew Kennedy
1d1ea3bb50
move hooks in to common chconf.h ( #1376 )
...
* move hooks in to common
* but not for kinetis
* don't use c style void arg
* kinetis needed more, not less
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-27 16:07:05 -04:00
dron0gus
d5a76b5dda
Update chibios ( #1364 )
...
* Update ChibiOS
* Fix coexistance of ChibiOS and our flash drivers
* Add 'int' = internal prefix for all on-chip flash functions
This avoid conflict with ChibiOS functions available after
enabling HAL_USE_EFL
* Exclude ChibiOS flash driver from bootloader
* Makefile magic?
* Kinetis: fix build after ChibiOS update and switching to SMART_BUILD
* Bootloader now use SMART_BUILD too
2020-04-25 16:32:32 -04:00
Matthew Kennedy
a005daa8cb
switch ADC to gpt ( #1343 )
...
* switch to gpt
* halconf
* fix kinetis
* fix kinetis
* fix guards
* comment cleanup
2020-04-23 22:50:18 -04:00
rusefi
c1ab5ca585
smart gpio clean-up
2020-04-06 14:13:29 -04:00
rusefi
84e0e1b6e9
critical error usability improvements
2020-03-28 21:28:32 -04:00
960
580e725d11
Boost pr ( #1114 )
...
* boost control
* cleanup
* Delete rusefi_config.txt
* Add files via upload
* Delete rusefi_config.txt
* Add files via upload
* Update rusefi.input
* Update boost_control.cpp
2020-02-02 03:56:21 -05:00
rusefi
a222ecdfe1
happy new year unification
2020-01-13 21:57:43 -05:00
rusefi
5eae7e50f4
enabling TIM8 ICU
2019-12-25 09:28:51 -05:00
Matthew Kennedy
4866a78e63
Re-shrink stacks ( #1060 )
...
* small stacks
* giant servo stack
* reclaim ram
2019-12-14 09:31:13 -05:00
rusefi
32564db46e
fixing build is my most favourite time!
2019-12-13 20:51:04 -05:00
rusefi
91fbaf1f98
fixing build is my most favourite time!
2019-12-13 20:06:45 -05:00
Matthew Kennedy
853f33b1cc
Make stacks smaller ( #1055 )
...
* remove factually incorrect comment
* shrinky stacky
* shuffle comments
2019-12-13 16:47:26 -05:00
Matthew Kennedy
b25f50c6ee
Move slow ADC to thread #630 ( #1042 )
...
* adc with thread
* enable
* check result
* stacktual embiggenment
* tracing
* let's be type safe
* improve assert
* format, comment
* remove EFI_INTERNAL_SLOW_ADC_PWM fully
2019-12-11 09:28:11 -05:00
Matthew Kennedy
f9986028c6
Harmonize chconf ( #1034 )
...
* turn off f4 kernel features we don't use
* make f7 match f4
* make mcuconf look right
2019-11-30 09:32:14 -05:00
rusEfi
59bbd09651
this is probably needed for F7
2019-11-20 01:15:43 -05:00
Matthew Kennedy
2edd673bd6
fix ( #1005 )
2019-11-13 08:42:16 -05:00
rusefi
82b7190dc0
review feedback
2019-11-03 10:36:35 -05:00
rusefi
d4b9c7217e
fatalErrorPin setting is not used #926
...
reducing configuration fragility
2019-09-09 21:44:48 -04:00
rusefi
59463a515e
MRE hangs up on bench fix #899
2019-08-10 00:53:16 -04:00
rusEfi
70f2d9f922
F7 float drama - that was easy!
2019-08-06 17:53:07 -04:00
Matthew Kennedy
d2ed57e3c7
enable dtcm ( #856 )
2019-06-23 09:20:17 -04:00
rusefi
bde091a840
Missing ADC Pins for ADC3, PF port #785
2019-05-14 16:38:14 -04:00