rusefillc
c069f1c959
fixing port I
2021-01-22 23:31:21 -05:00
rusefillc
aaa9f2a608
Hellen needs text representation of GPIOI
...
H7 dreams are asking for J and K
2021-01-22 01:25:05 -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
rusefi
0dc0ae19be
OMG we are not using java yet?!
2021-01-18 19:00:53 -05:00
rusefi
bb1ae49534
https://refactoring.com/catalog/replaceMagicLiteral.html
2021-01-18 18:54:18 -05:00
Matthew Kennedy
fa30efbc94
boost fixes ( #2230 )
...
* fix boost pin reinit
* call boost from periodic slow
* ui
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-18 07:04:14 -05:00
Andrey G
baea67eccf
Simplify Makefile, unify board.mk files ( #2229 )
...
* Proper way to add lis302 driver
* Proper way to add license directory to includes
* Makefile: simplify
All ChibiOS stuff is accumulated in ALLCSRC, ALLINC and so on.
* board.mk: append sources and includes to ALLSRC, ALLCPPSRC, ALLINC
* Cypress: fix CANv2 includence into build
2021-01-17 09:32:06 -05:00
Andrey G
25560b85c2
Supress annoing unused warnings ( #2216 )
2021-01-11 08:49:20 -05:00
rusefillc
9dfa5e9670
cherry pick from https://github.com/dron0gus/rusefi/tree/ChibiOS-20
2021-01-09 19:15:50 -05:00
rusefillc
4f49c73a45
Lcd fix (I hope) #2211
...
there is still an issue :(
2021-01-09 17:30:39 -05:00
Andrey G
7803968621
Lcd fix (I hope) ( #2211 )
...
* LCD: check if settings are valid on each access
* Lada Kalina: remove duplicate code
All LCD pins are set to GPIO_UNASSIGNED in disableLCD()
* Remove duplicate code
* We still need to know when invalid gpio is used...
This reverts commit c17775231a
.
2021-01-09 17:16:10 -05:00
rusefillc
c17775231a
dron0gus please help
2021-01-09 15:31:09 -05:00
Andrey G
2af32084f4
gpio helper ( #2195 )
...
* gpios: isBrainPinValid helper
* LCD HD44780: do not touch pins if DM_NONE or invalid gpio
* Fix isEnabled checks for GPS and Joystick
* LCD HD44780: writePad use this method wider
2021-01-08 20:01:26 -05:00
rusefillc
ff765f5f5d
knock v12
2021-01-06 19:42:07 -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
Andrey G
37cd9266d3
Call startSmartCsPins when applying new settings ( #2194 )
...
Only stopSmartCsPins was called from applyNewHardwareSettings.
This cause lost of CS pins for external gpio chips
2021-01-06 08:59:13 -05:00
Andrey G
b92e3086d0
Adc isAdcChannelValid helper ( #2188 )
...
* Guard define argument
* ADC: isAdcChannelValid
Check for both <= EFI_ADC_NONE and >= EFI_ADC_LAST_CHANNEL
Also check for value out of enum range (corrupted settings)
* Fix unit tests
2021-01-05 16:02:20 -05:00
Matthew Kennedy
19bf208cde
use limp mgr for trigger disable ( #2145 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-26 18:12:36 -05:00
Matthew Kennedy
0df5d0ae3d
actually use button name ( #2126 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-24 07:30:56 -05:00
rusefi
6032d0a26f
Proteus is compiled without VSS feature #2122
2020-12-22 21:28:51 -05:00
rusefi
a254c79d93
trigger and start button pins not displayed by "pins" command #2084
2020-12-22 21:20:57 -05:00
rusefi
42c1fb7b5e
trigger and start button pins not displayed by "pins" command #2084
2020-12-22 21:05:49 -05:00
rusefi
f62bcca7ea
trigger and start button pins not displayed by "pins" command #2084
2020-12-22 20:54:28 -05:00
rusefi
c4650076cf
trigger and start button pins not displayed by "pins" command #2084
2020-12-22 20:53:05 -05:00
rusefi
d6b745e1c0
Proteus is compiled without VSS feature #2122
2020-12-22 20:50:01 -05:00
rusefi
fd54e37358
trigger and start button pins not displayed by "pins" command fix #2084
2020-12-22 20:42:30 -05:00
Matthew Kennedy
690ab7e917
gpio unit tests ( #2099 )
...
* fix unregister api for gpio
* consumers
* guard with a critical section
* index
* guard less
* unregister under lock
* fix reinit
* dead flag
* fix most tests
* initialize properly
* initialize properly
* assertions in tests
* fix message
* move gpio mocking
* test gpios
* we must lock earlier to be truly safe
* this was using huge memory
* devirtualize
* test deinit
2020-12-18 17:19:02 -05:00
Matthew Kennedy
6168bcea80
Fix gpio reinit race condition ( #2098 )
...
* fix unregister api for gpio
* consumers
* guard with a critical section
* index
* guard less
* unregister under lock
* fix reinit
* dead flag
* fix most tests
* initialize properly
* initialize properly
* assertions in tests
* fix message
* we must lock earlier to be truly safe
* this was using huge memory
* devirtualize
2020-12-18 17:18:12 -05:00
rusefillc
ca0f3ba240
HW CI is flaky :( #2063
...
more detailed error messages
2020-12-17 20:22:04 -05:00
rusefillc
26fbf0527a
trigger and start button pins not displayed by "pins" command fix #2084
2020-12-16 22:53:26 -05:00
rusefillc
8f2116921c
trigger and start button pins not displayed by "pins" command fix #2084
2020-12-16 22:24:19 -05:00
rusefillc
a47129693a
trigger and start button pins not displayed by "pins" command #2084
...
progress but not complete fix yet
2020-12-16 22:00:42 -05:00
Andrey G
cd546cf932
TLE8888: temp fix of #2065 ( #2079 )
2020-12-14 15:33:27 -05:00
Matthew Kennedy
360a8c7524
add support for ext ids ( #2060 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-12 16:34:21 -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
5f69d23976
fix mock pins array ( #2050 )
...
* fix
* fix probably
2020-12-10 00:10:58 -05:00
rusefillc
824f87c2d0
basic hw in the loop - pwm self validation #2028
2020-12-08 04:52:49 -05:00
rusefillc
96c29840ce
basic hw in the loop - pwm self validation #2028
2020-12-07 20:42:47 -05:00
rusefillc
aca471273d
basic hw in the loop - pwm self validation #2028
2020-12-07 20:26:47 -05:00
rusefillc
6712c63160
basic hw in the loop - pwm self validation #2028
2020-12-07 20:01:05 -05:00
rusefillc
2e8ae3ca94
refactoring
2020-12-06 19:04:23 -05:00
Andrey G
7c6974ab43
Fixes after clenup ( #2019 )
...
* We still need consoleEventListener for boards with EFI_CONSOLE_SERIAL_DEVICE
* MC33810: add MC_ prefix for command defines
As CMD_PWM define is now used by console command
2020-12-05 11:54:09 -05:00
Andrey G
2b5fc79aa7
ADC: correctly calculate cache invalidate range for STM32F7xxx ( #2021 )
...
Bug was introduced in 2312b0ae57
when
sample buffer was moved out of class. So sample become adcsample_t*
instead of adcsample_t[] and sizeof returns 4.
2020-12-05 10:14:33 -05:00
Andrey G
852fdcd4d1
adc: fix CPU temperature read for STM32F76x/77x ( #2020 )
2020-12-05 09:58:23 -05:00
Matthew Kennedy
4deb875204
fix warnings ( #2003 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-03 07:27:27 -05:00
Matthew Kennedy
a3a49b02ed
fix gpio the right way ( #1990 )
...
* fix the right way
* use the api
* explain
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-11-27 00:24:41 -05:00
rusefillc
2f91ae6f73
Starter is engaged on start-up in pull-up configuration #1969
2020-11-26 10:55:39 -05:00
rusefillc
d4d7e7583b
Starter is engaged on start-up in pull-up configuration #1969
2020-11-26 10:41:22 -05:00
rusefillc
66ae6a1ecf
Starter is engaged on start-up in pull-up configuration #1969
2020-11-26 00:24:15 -05:00
rusefi
1238758c0f
Starter is engaged on start-up in pull-up configuration #1969
2020-11-26 00:16:59 -05:00