Matthew Kennedy
e3849b95d5
don't require EXTERN_ENGINE in every file ( #2969 )
...
* move enginePins
* no more extern engine
* uses
* more
* extern config too
* put this where it belongs
* include correct header
* merge
2021-07-16 18:13:33 -04:00
Matthew Kennedy
4b0d75ff92
make the simulator usable ( #2717 )
...
* these start themselves now
* dead
* configure ports
* start serial
* dead
* minimal pins
* simulator logging works
* why not enable lua
* speeeeeed
* start lua
* spammy print
2021-05-17 12:44:02 +03:00
Matthew Kennedy
72dac58f9b
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
ce142907a0
replace print/printMsg with scheduleMsg ( #2497 )
...
* start cleaning
* disabled feature means don't print that it's disabled
* cli
* usages
* printMsg -> scheduleMsg
* this is alllll dead now
* no crlf please
* all hope is lost if you manage to hit this line
* tests
* tests
* ok we did actually need that part
* sim
* d
* kinetis
* it did ifdef, not if
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-26 17:23:26 -04: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
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
Matthew Kennedy
34b678728a
extract CAN TS channel ( #2469 )
...
* extract CAN channel
* this is gross
2021-03-17 08:39:13 -04:00
Matthew Kennedy
726be2232e
yet more TS sanity ( #2382 )
...
* ts cleanup part 1
* move more stuff in to the class
* extract base class
* switch to TsChannelBase where we can
* dfu
* more to TsChannelBase
* bad merge
* another bad merge
* bootloader
* bluetooth
* format
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-20 02:11:39 -05:00
Matthew Kennedy
12a31e5132
start making tunerstudio more sane: part 2 ( #2381 )
...
* ts cleanup part 1
* move more stuff in to the class
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-19 20:48:21 -05:00
Matthew Kennedy
43f39fa616
start making tunerstudio more sane: part 1 ( #2378 )
...
* ts cleanup part 1
* unused unused
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-19 07:40:59 -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
rusefillc
28e65e8fea
occasional tunerstudio CRC errors #1943
...
third time a charm?
2020-11-17 23:47:35 -05:00
rusefillc
c3b680b408
occasional tunerstudio CRC errors #1943
...
one step back
2020-11-15 21:41:38 -05:00
Matthew Kennedy
80edfe64ce
Fix crc again, for real this time ( #1948 )
...
* re enable
* changelog
* fix
* fix test
* put some tests back
2020-11-15 16:59:02 -05:00
rusefillc
1eb0f8808f
occasional tunerstudio CRC errors #1943
...
unit test progress
2020-11-15 12:36:07 -05:00
rusefillc
05e7792ad4
occasional tunerstudio CRC errors #1943
...
now with a bit of a unit test
2020-11-15 12:27:47 -05:00
rusefillc
53bcd448cf
occasional tunerstudio CRC errors #1943
...
getting ready for unit test
2020-11-15 11:55:26 -05:00
rusefillc
0cc30b4239
Re-applying part of "fix CRC errors #1944"
2020-11-15 10:28:23 -05:00
rusefillc
0ec945dc4c
fix CRC errors #1944
...
partial rollback in order to isolate the defect
2020-11-15 10:02:40 -05:00
Matthew Kennedy
3a052682dd
fix large response packets ( #1947 )
...
* fix console text mode
* oops I should actually write the crc
2020-11-15 07:14:50 -05:00
Matthew Kennedy
ebcd4f73af
fix CRC errors ( #1944 )
...
* fix crc mismatch
* cleanup
* use size_t, add null check
* bounds check for good measure
* rename to scratchBuffer
* comment
2020-11-14 19:21:29 -05:00
andreika-git
2d4d34291c
Hellen says fix cypress build ( #1818 )
...
* fix compilation
* fresh generated files
* more files
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-09-23 14:06:22 -04:00
rusefi
5521249dc9
Hellen says let's fix master
2020-09-11 07:05:32 -04:00
rusefi
63b1a6652b
Merge remote-tracking branch 'origin/Hellen_fork_point' into master
...
# Conflicts:
# firmware/console/binary/tunerstudio_io.cpp
# firmware/console/console_io.cpp
2020-09-11 05:54:21 -04:00
rusefi
58be12bf0e
Hellen says merge #1772 TS
2020-09-11 05:50:48 -04:00
rusefi
b4a33ef59a
Hellen says merge #1772 helping merge
2020-09-09 15:08:01 -04:00
rusefi
8f8d8ed8f9
Revert "reducing confusion?"
...
This reverts commit f80b27ab
this was NOT reducing the confusion
2020-08-28 21:03:01 -04:00
rusefi
f80b27ab12
reducing confusion?
2020-08-28 08:58:51 -04:00
Matthew Kennedy
207aafe262
harmonize blocking factor ( #1709 )
...
* harmonize blocking factor
* static assert
2020-08-21 14:12:28 -04:00
rusefi
676aecd581
UART DMA for "primary" connector #1528
2020-06-21 21:47:51 -04:00
rusefi
0032ad9778
refactoring connectivity
2020-06-21 21:17:48 -04:00
rusefi
d371be19fe
refactoring connectivity
2020-06-21 20:47:46 -04:00
rusefi
af82d63112
refactoring connectivity
2020-06-21 16:37:33 -04:00
rusefi
d1f1491fb0
refactoring
2020-06-21 15:50:21 -04:00
rusefi
cc1ca11e40
reducing confusion?
2020-05-04 20:52:32 -04:00
rusefi
4d617aa0fe
random header clean-up
2020-03-23 09:00:57 -04:00
rusefi
1a3bfa4b02
code style
2020-01-21 01:47:58 -05:00
rusefi
a222ecdfe1
happy new year unification
2020-01-13 21:57:43 -05:00
rusefi
f47a1a16d1
getting rid of boardConfiguration / binary compatible change
2019-12-11 17:48:55 -05:00
rusefi
a40477e598
Making UART/TTL pins configurable
2019-12-07 21:22:09 -05:00
rusefi
777eb532dc
Refactoring: OS access should be explicit #867
2019-07-03 21:48:04 -04:00
rusefi
23e591a253
this change is probably breaking stuff, but some stuff is already broken. something is not right in too many places :(
2019-04-21 14:00:19 -04:00
andreika-git
ca255a90c2
More config portability: TLE6240, Trigger_input, UART/Serial ( #759 )
...
* Add fields to UART/Serial configs
* trigger_input: can be both HAL_USE_PAL and HAL_USE_COMP
* tle6240 config: local temporary solution
* Fix for custom_engine::setFsio
* EFI_ACTIVE_CONFIGURATION_IN_FLASH
2019-04-15 08:40:12 -04:00
rusefi
24948a2641
defined(__DOXYGEN__) ? fix #748
2019-04-12 22:10:57 -04:00
dron0gus
85519107b2
Fix build if no TS_UART_DMA_MODE, TS_UART_MODE and TS_SERIAL_DEVICE defined ( #729 )
2019-04-01 23:39:07 +02:00
rusefi
7807651412
The Big Refactoring of 2019: console vs TS vs CONSOLE_MODE_SWITCH_PIN vs text protocol #725
...
sweet progress!
2019-04-01 14:18:21 -04:00
andreika-git
a79175f6ef
More portability & small fixes ( #719 )
...
* Use hw_stm32.mk
* Fix bootloader
* Use more common hw_ports.mk filename instead of hw_stm32.mk
* More CPU compatibility for Makefile
* TS_UART_MODE & rename TS_SERIAL_UART_DEVICE->TS_SERIAL_DEVICE
* Move lockAnyContext()/unlockAnyContext() to rfiutil.c
* USE_FATFS
* EFI_LCD
* Less compilation errors
* STATUS_LOGGING_BUFFER_SIZE & SETTINGS_LOGGING_BUFFER_SIZE
* EFI_ALTERNATOR_CONTROL, EFI_SERVO, EFI_DISABLE_CONSOLE_ACTIONS
* #ifndef PWM_PHASE_MAX_COUNT & more flexible GPIO inside portname()
* merge
* EFI_ALTERNATOR_CONTROL, EFI_ELECTRONIC_THROTTLE_BODY
2019-03-29 15:29:01 +01:00
rusefi
34aa05cda9
refactoring: reducing code duplication
2019-02-23 12:33:49 -05:00
rusefi
93b08dcc4c
The Big Refactoring of 2019: DECLARE_ENGINE_PARAMETER_SUFFIX consistency and simplification #657
2019-01-09 22:16:30 -05:00
rusefi
4868a9fd82
refactoring
2018-09-16 22:25:17 -04:00