Andrey Gusakov
4cb09d3179
adc: deduplicate debug code
2024-05-09 08:30:24 -04:00
Andrey Gusakov
e8a0ee051a
stm32_pins: botloader guards
2024-05-09 08:30:24 -04:00
Andrey Gusakov
207a3d8c98
adc: avoid two lookup tables
2024-05-09 08:30:24 -04:00
Andrey Gusakov
7e509c432e
adc: dead
2024-05-09 08:30:24 -04:00
Andrey Gusakov
eab5e16282
Store fast adc error for debug
2024-05-09 08:30:24 -04:00
Andrey Gusakov
e562f0b540
stm32_adc: simplify
2024-05-09 08:30:24 -04:00
Andrey Gusakov
3777e78124
stm32_pins: simplify
2024-05-09 08:30:24 -04:00
Andrey
f7d68b3e1c
start/stop button improvements #6483
...
only: hello MISRA?
2024-05-08 22:52:31 -04:00
Andrey
1d249dc4ca
start/stop button improvements #6483
...
only: global bad, let's carefully reset
2024-05-08 22:52:31 -04:00
rusefi
4b43cc3212
docs
2024-05-08 21:45:32 -04:00
Andrey Gusakov
5fb60bc351
adc_inputs: we have two methods doing same thing, keep simple one
2024-05-05 16:44:16 -04:00
Andrey Gusakov
6f5fe216db
stm32_pins: const, save few bytes of RAM
2024-05-05 16:44:16 -04:00
rusefi
944a9375d3
EFI_CONFIGURATION_STORAGE reducing code duplication
2024-05-05 15:52:39 -04:00
Andrey Gusakov
0ce04c84cc
Struct: designator initialization
2024-05-05 13:26:24 -04:00
Andrey Gusakov
e2955fcb34
adc_inputs: code style
2024-05-05 13:26:24 -04:00
Andrey Gusakov
7a8f0cc511
adc_inputs: unify naming
2024-05-05 13:26:24 -04:00
Andrey Gusakov
6b265dd4f8
adc: introduce external adc channels
2024-05-05 13:26:24 -04:00
Andrey Gusakov
fe3b6eb26b
adc: simplify isAdcChannelValid()
2024-05-05 13:26:24 -04:00
Andrey Gusakov
d7ec871e7c
adc: rename EFI_ADC_LAST_CHANNEL to EFI_ADC_TOTAL_CHANNELS
2024-05-05 13:26:24 -04:00
3er0.1ive
bdb997fe1a
- clean commit with knock_analyzer
2024-05-04 10:51:46 -04:00
rusEFI LLC
af913ef788
only: better file name
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
a4d9238a13
gpio: core: guards
2024-05-01 17:14:55 -04:00
Andrey Gusakov
6e85b753d5
MSIOBox: simplify PWM calculation
2024-05-01 17:14:55 -04:00
Andrey Gusakov
f32c8e0d17
MSIOBox: support PWM
2024-05-01 17:14:55 -04:00
Andrey Gusakov
3544a8f25d
MSIOBox: fix typo
2024-05-01 17:14:55 -04:00
Andrey Gusakov
ec50d034bc
gpio: core: support HW PWM on gpiochip outputs
2024-05-01 17:14:55 -04:00
Andrey Gusakov
ca8a6638a7
drivers: gpio: add support for MSIOBox
2024-04-29 09:16:34 -04:00
rusEFI LLC
7cdb78d6fa
only: TODO: use a timer instead
2024-04-25 20:32:40 -04:00
Matthew Kennedy
005d2eb21a
distinguish between "timestamp" and "duration"
2024-04-25 18:57:11 -04:00
Matthew Kennedy
d66b752173
only: migrating to Timer API
2024-04-25 18:50:18 -04:00
rusefi
da34743332
only:minor progress
2024-04-25 17:45:14 -04:00
rusEFI LLC
93edf72814
todo: are those hibernating ports not well?
2024-04-25 15:17:35 -04:00
rusefi
b133b88fdb
Each bank of cam inputs should have individual edge selection fix #5333
2024-04-24 21:26:38 -04:00
rusefi
3e0fde22d2
linking to #6399
2024-04-23 16:34:22 -04:00
rusefi
fae665ec5c
hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
...
only:sad but configurable
2024-04-22 19:52:30 -04:00
rusEFI LLC
2519b3fa53
hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
...
only: work-around
2024-04-22 18:27:26 -04:00
rusEFI LLC
60d163207c
hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
...
only: more madness
2024-04-22 13:33:18 -04:00
rusEFI LLC
078376fe71
hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
...
only: more madness
2024-04-22 12:45:19 -04:00
rusEFI LLC
ea7cb49777
hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
...
only: let's not trust anyone
2024-04-22 10:57:14 -04:00
rusefillc
337f2ea588
hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
...
only: allowing override if we ever need it
2024-04-22 09:16:05 -04:00
rusefillc
d0e959ea92
only: dead define
2024-04-22 09:15:11 -04:00
Andrey
5a0761f533
hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
...
only:saving sensorVolts
2024-04-21 20:56:36 -04:00
rusefillc
f981d04c44
hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376
...
only:saving sensorVolts
2024-04-21 20:15:56 -04:00
rusefillc
9105d5e17a
docs
2024-04-21 19:40:40 -04:00
GitHub gen-configs Action
3f37d6a6a6
Auto-generated configs and docs
2024-04-20 12:29:19 +00:00
Andrey Gusakov
aff9381a94
can_category: MEGASQUIRT
2024-04-20 08:19:51 -04:00
rusefi
e72be7feae
only:making TM_ID_GetFlashSize more available
2024-04-18 19:28:59 -04:00
rusefi
088a11b6de
moving OpenBLT IDs a bit up to reduce chance of conflict on random OEM, take two
...
only:small-can-board
2024-04-15 00:55:54 -04:00
rusefi
3a311a4c55
moving OpenBLT IDs a bit up to reduce chance of conflict on random OEM, take two
...
only:small-can-board
2024-04-15 00:44:21 -04:00
rusefi
2a3757b729
moving OpenBLT IDs a bit up to reduce chance of conflict on random OEM
...
only:small-can-board
2024-04-13 19:48:12 -04:00
rusefillc
7d650e1387
only: preparing to reduce magic number duplication
2024-04-13 13:49:04 -04:00
rusefillc
4ddb23cda9
only: power management for SD card MSD
2024-04-13 12:11:19 -04:00
rusefillc
eaf2f7844f
only: wait until board has turned itself on
2024-04-12 21:43:07 -04:00
rusefi
93b3759a42
only: ButtonDebounce inverted API
2024-04-12 00:28:13 -04:00
rusefillc
a261df644b
stepper parking times into logs
2024-04-11 12:24:29 -04:00
rusefillc
02cd55bb8f
only: docs
2024-04-10 19:41:03 -04:00
rusefi
d594502594
only: 'void'?
2024-04-06 21:23:02 -04:00
rusefi
d40e7d3d04
only: making "spi loopback test failed" less annoying
2024-04-04 23:56:37 -04:00
rusefi
c9b3534999
only: making "spi loopback test failed" less annoying
2024-04-04 22:36:49 -04:00
rusefillc
969887b87e
EFI_DFU_JUMP
2024-04-03 08:29:45 -04:00
rusefillc
d96b267eed
CanTxMessage::setArray
2024-04-03 00:06:42 -04:00
Matthew Kennedy
4696848ad4
we often mean inline when we say static
2024-03-29 11:56:52 -04:00
rusefillc
2a114b4f95
PUBLIC_API_WEAK
2024-03-24 22:06:58 -04:00
Andrey Gusakov
4c7cd85f8b
OpenBLT: shared: commit data cache on SharedParamsWriteByIndex()
2024-03-24 15:54:59 -04:00
andreika-git
b3084a4207
delay=0 for 2chan https://github.com/rusefi/rusefi/issues/6246
2024-03-22 09:09:17 -04:00
andreika-git
d5f2e98b1d
Allow to connect to OpenBLT in normal boot mode https://github.com/rusefi/rusefi/issues/6246
2024-03-22 09:09:17 -04:00
rusefillc
a5278476a4
only:cleaner guards
2024-03-15 22:26:36 -06:00
Andrey
cc161fb029
better guards
2024-03-15 19:04:46 -06:00
Andrey
cd74860f37
only: better guards
2024-03-15 18:50:01 -06:00
rusefillc
8a5ba90692
cleaner guards
2024-03-15 14:15:53 -06:00
rusefillc
826bf8e308
only:cleaner guards
2024-03-15 11:46:56 -06:00
rusefillc
8f08aee62f
cleaner guards
2024-03-15 08:49:09 -06:00
Matthew Kennedy
ee4b0af655
WiFi tweaks
...
* batch all wifi in to one write
* writeCrcPacket already chunks the response, so we don't really need it, but limit maximum TCP write size
* format cleanup
* don't cache wifi stuff (for now)
* h7 fiddling
2024-03-12 20:18:26 -04:00
Andrey Gusakov
f9e0dddc4c
max3185x: compare not assign
2024-03-12 19:45:18 -04:00
Andrey Gusakov
8972fedb41
max3185x: show device type
2024-03-12 19:45:18 -04:00
andreika-git
094ca97373
Enable CAN for OpenBLT https://github.com/rusefi/rusefi/issues/6043
2024-03-12 09:13:30 -04:00
Andrey Gusakov
c13897a2d1
max3185x: human indexing
2024-03-11 16:54:58 -04:00
Andrey Gusakov
33adccc038
max3185x: typo fix
2024-03-11 16:54:58 -04:00
Andrey Gusakov
247bf24a20
max3185x: restart driver thread on settings change
2024-03-11 16:54:58 -04:00
Andrey Gusakov
cfdb571515
max3185x: improve debug output
2024-03-11 16:54:58 -04:00
rusefillc
b089ddae5a
only: minor EGT
2024-03-10 18:40:11 -04:00
rusefillc
0da2644ea8
minor EGT
2024-03-10 15:20:49 -04:00
Andrey Gusakov
9f187ef455
max3185x: fix negative values for max31856
2024-03-10 12:56:03 -04:00
Andrey Gusakov
38d7430362
max3185x: lower SPI clock, fix divider
2024-03-10 12:56:03 -04:00
Andrey Gusakov
56d46e5fbe
max31855: also support max31856
2024-03-10 12:56:03 -04:00
Andrey Gusakov
8b63ff269e
max31855: temperatures can be negative
2024-03-10 12:56:03 -04:00
Andrey Gusakov
9fc1806ed6
max31855/egt: migrate to SensorType framework
2024-03-09 08:55:29 -05:00
Andrey Gusakov
b7d0dbd327
max31855: cleanups
2024-03-09 08:55:24 -05:00
Andrey Gusakov
452c600b18
max31855: typo fix
2024-03-09 08:02:43 -05:00
Andrey Gusakov
82784a3b8b
max31855: report EGT with 0.25C resolution
2024-03-09 06:24:26 -05:00
Andrey Gusakov
fd417db528
max31855: incapsulate
2024-03-09 06:24:26 -05:00
rusefillc
9565918780
only:flexibility fix
2024-03-08 22:54:39 -05:00
rusefillc
b464f32bc9
flexibility
2024-03-08 21:56:11 -05:00
Andrey Gusakov
b79b6cf74b
trigger_input_exti: fix comment position
2024-03-05 17:09:10 -05:00
Andrey Gusakov
8871bd18b8
adcTriggerTurnOnInputPin: isBrainPinValid() checked at caller
2024-03-05 17:09:10 -05:00
Andrey Gusakov
983b2222af
trigger_input_adc: respect efiExtiEnablePin() ret value
2024-03-05 17:09:10 -05:00
Andrey Gusakov
83d6d9e7d8
extiTriggerTurnOnInputPin: respect efiExtiEnablePin() return value
2024-03-05 17:09:10 -05:00
Andrey Gusakov
f4cd6de86d
efiExtiEnablePin: return status to caller
2024-03-05 17:09:10 -05:00
Andrey Gusakov
b499c8b519
ports: chconf_stm32.h for stm32, add its location to includes path
2024-03-03 13:02:38 -05:00
Andrey Gusakov
e5041792a2
at3@: use STM32's chconf.h
2024-03-03 13:02:38 -05:00
Andrey Gusakov
68e07a6341
stm32: common ChibiOS config
2024-03-03 13:02:38 -05:00
Andrey Gusakov
26452365c8
stm32: mcuconf_community.h no longer used?
2024-03-03 12:26:33 -05:00
Andrey Gusakov
adc9c4fc8a
spi initialization: clean-up, rework, no logic changes
2024-03-03 11:37:19 -05:00
Andrey Gusakov
5068f99863
spi pin helpers: common for all ports, extend for SPI4,5,6
2024-03-03 11:37:19 -05:00
Andrey Gusakov
de96d8ba06
one-based indexing enums is not cool
...
Fixes possible out of array bounds introduced in 5af710ff73
2024-03-02 15:50:27 -05:00
Matthew Kennedy
24c1b78ecd
implement TS console over ATWINC1500 WiFi
2024-03-01 20:26:35 -05:00
pchmura4
cde34fe61e
Fixes
2024-02-28 12:17:17 -05:00
rusefillc
c6d883cf5b
flexibility
2024-02-27 15:09:39 -05:00
rusefillc
2fb21c81c6
support spi4/5/6
2024-02-26 18:45:19 -05:00
rusefillc
5af710ff73
magic constant bad
2024-02-26 18:37:53 -05:00
Matthew Kennedy
3627276f58
support spi4/5/6
2024-02-26 18:36:26 -05:00
rusefillc
cfbcedfe2a
CanTxMessage::setShortValueMsb
2024-02-26 18:25:14 -05:00
pchmura4
c81f22ac90
Added missing code to enable SPI4/5/6
2024-02-26 14:51:51 -05:00
pchmura4
1e76efdb1a
Reverted change in common area
2024-02-26 14:51:51 -05:00
pchmura4
881a8905d4
Changes to enable SPI4, SPI5 and SPI6
2024-02-26 14:51:51 -05:00
rusefillc
8bd5e5c6f5
only: https://www.youtube.com/watch?v=T6JFTmQCFHg
2024-02-26 14:51:01 -05:00
Andrey
9bd8ed1e08
we do not use dynamic threads
2024-02-25 16:25:35 -05:00
rusefillc
536f1d61ec
only:boardInitHardwareExtra
2024-02-24 18:28:20 -05:00
Andrey Gusakov
8e45c4982b
TODO for H7
2024-02-24 08:48:21 -05:00
Andrey Gusakov
2644147655
Stop microsecond TIM clock when CPU is halted by debuger
...
To avoid "gap in time" error during debug
2024-02-24 08:48:21 -05:00
David Holdeman
b6ad92faba
replace SHORT_BOARDNAME with SHORT_BOARD_NAME
2024-02-12 20:08:57 -05:00
rusefillc
96d63adf4a
only:making technical debt more obvious
2024-02-12 10:00:08 -05:00
rusefillc
30c903e9ca
only:accelerometer refactoring & docs
2024-02-12 10:00:08 -05:00
Andrey Gusakov
89e17fe083
accelerometers: hide variables under guard
2024-02-12 09:49:05 -05:00
Andrey Gusakov
11c0b96c7d
accelerometer: add support for lis302dl and lis3dsh, autodetection
2024-02-12 09:49:05 -05:00
Andrey Gusakov
da8244a97a
Styling
2024-02-12 09:49:05 -05:00
Andrey
5a258a69c4
refactoring: explicit struct for error-related info
2024-02-08 22:03:35 -05:00
Andrey
a9dbd1bbf7
only:cypress
2024-02-08 10:14:36 -05:00
Matthew Kennedy
69bef3ab92
enum class-ify
2024-02-07 21:27:19 -05:00
rusefillc
08019344ba
only:few dead lines
2024-02-07 21:24:38 -05:00
Andrey Gusakov
c75ef47076
can_msg_tx: fix canChannel unused
2024-02-05 10:14:17 -05:00
Andrey Gusakov
483056746c
gpio diagnostic: use PIN_UNKNOWN for pins with no diagsotic
2024-02-05 07:56:10 -05:00
rusefillc
21a2033574
Possible bug around _OpenBLT_Shared_Params on F7? fix #5905
2024-02-04 08:53:14 -05:00
Andrey Gusakov
94f08047df
EGT: max31855: run driver as a thread instead of slow callback
...
So do not call SPI communication from ISR context.
Also fix minor bus in driver:
- one spi config struct for all chips
- init spi config struct with some valid data (to be tested)
2024-02-02 23:17:56 -05:00
Andrey Gusakov
84ac47c4af
ports: add initSpiCs helper that does not mak pin used
2024-02-02 23:17:56 -05:00
Matthew Kennedy
46a7cae403
oops missed mcuconf
2024-02-02 14:51:06 -05:00
rusefillc
324378f252
LUA code and EGT makes ECU to hang fix #5889
2024-01-30 17:39:50 -05:00
rusefi
4f27dc8e77
this helps bootloader?
2024-01-29 20:38:21 -05:00
rusefillc
9b7b97cf04
this helps bootloader?
2024-01-29 20:03:19 -05:00
rusefillc
cccb580de1
this helps bootloader?
2024-01-29 19:34:35 -05:00
andreika-git
49e1a5f95b
Disable upload for OpenBLT
2024-01-24 10:53:42 -05:00
Matthew Kennedy
3315aa9434
unused parameters
2024-01-07 22:36:20 -05:00
Andrey Gusakov
63f8755820
mc33810: diagnostic for GPGD mode, comments, ops number two
2024-01-04 12:09:12 -05:00
Andrey Gusakov
0a4d330483
mx33810: ups
2024-01-04 12:09:12 -05:00
Andrey Gusakov
bf67476c9c
mc33810: reset command
2024-01-03 16:40:52 -05:00
Andrey Gusakov
5935811a66
mc33810: GPGD/Ignition, recovery settings to TS
2024-01-03 16:40:52 -05:00
Andrey Gusakov
9abe6085ce
mc33810: dwell settings
2024-01-03 16:40:52 -05:00
Andrey Gusakov
87280dcc11
mc33810: check replies
2024-01-03 16:40:52 -05:00
Andrey Gusakov
86f2295151
mc33810: divide chip_init() into chip_init() and chip_init_data()
...
First one is called for chip reinit. Second one called only once
on start to parse config data.
2024-01-03 16:40:52 -05:00
Andrey Gusakov
7dc1c78bf5
mc33810: tabs please
...
and other styling
2024-01-03 16:40:52 -05:00
Andrey Gusakov
1cf0380356
gpio: core: fix comments
2024-01-03 07:45:32 -05:00
rusefillc
ad247db155
only: bad pasta
2024-01-02 23:08:34 -05:00
rusefillc
dd0606fc76
RAMDISK_INVALID guard
2023-12-30 21:48:13 -05:00
andreika-git
7c86c0d7d3
fix logHardFault for BL and cleanup
2023-12-30 16:22:30 -05:00
andreika-git
13b02d1184
port makefiles
2023-12-30 16:22:30 -05:00
andreika-git
7abb91631a
USB for BL is on RS232
2023-12-30 16:22:30 -05:00
andreika-git
3118bbe0d0
more port-specific files for BL
2023-12-30 16:22:30 -05:00
andreika-git
a572407e03
port-specific files for BL
2023-12-30 16:22:30 -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
rusefillc
a3f3f536e8
openblt preparation
2023-12-29 17:55:50 -05:00
andreika-git
e695fa6778
BL doesn't know efiPrintf
2023-12-29 17:15:57 -05:00
rusefi
6f6b21472c
only:mc33810maxDwellTimer
2023-12-26 19:54:27 -05:00
rusefi
53e1b0531a
only:MC33810 periodic check of comms
2023-12-26 18:58:36 -05:00
rusefi
42315a55e6
only:MC33810 extracting check_comm() method
2023-12-26 18:57:15 -05:00
rusefi
f402e0519b
only:MC33810_FAILED usage
2023-12-26 17:45:20 -05:00
rusefillc
8c201022b7
bootloader
2023-12-26 15:27:30 -05:00
Matthew Kennedy
054375c838
bootloader
2023-12-26 15:19:39 -05:00
rusefi
80edd13485
only:one step less verbose mc33810
2023-12-25 21:46:26 -05:00
Andrey
ab6011aa8b
only:explicit error if attempting to write unknown smart pin
2023-12-25 17:40:18 -05:00
rusefillc
3b5438fa0b
only:explicit error if attempting to write unknown smart pin
2023-12-25 16:22:11 -05:00
rusefillc
ef254f1a3a
only:code style and verbose
2023-12-25 16:13:15 -05:00
rusefillc
55ed9eee93
smart chips in QC
2023-12-24 21:34:31 -05:00
rusefi
943b9dcc14
only:smart chips in QC
2023-12-24 19:44:38 -05:00
rusefillc
9b4f96feee
only: mc33810: only bind pins once
2023-12-24 11:51:27 -05:00
rusefi
86ce6a73d7
only:smart chip observability
2023-12-21 01:20:27 -05:00
rusefillc
0052b6a2cd
mc33810 mark for reinit if fails
2023-12-20 13:24:04 -05:00
rusefillc
435b38cd7b
mc33810: moving init to thread
2023-12-20 13:24:04 -05:00
rusefillc
5d7d97ff7d
only:mc33810 renames
2023-12-20 08:55:15 -05:00
rusefillc
91987ba8fb
only: code style
2023-12-19 23:47:19 -05:00
rusefillc
7721518418
progress
2023-12-19 14:51:58 -05:00
rusefillc
b9a0aea64a
typo
2023-12-19 14:51:53 -05:00
rusefillc
f11e52a402
only: pulling most useful fields up
2023-12-19 13:50:27 -05:00
rusefi
922defde35
only: smart chips: having pins mark as used helps with troubleshooting
2023-12-18 22:39:51 -05:00
Andrey Gusakov
6b957e33b7
IMU: select CAN vs SPI
2023-12-18 12:00:48 -05:00
rusefillc
f54d7d56bc
only:nicer error message
2023-12-18 00:39:05 -05:00
rusefi
b141199292
some logging and some setting safety
2023-12-17 08:51:56 -05:00
Andrey Gusakov
54e6e12936
Accelerometer: no annoing printf
2023-12-16 11:50:34 -05:00
Andrey Gusakov
10093dca6e
CodeQL ?
2023-12-16 11:50:34 -05:00
Andrey Gusakov
92030fb5a0
mmc_card: use blk* wrappers
2023-12-16 11:50:34 -05:00
Andrey Gusakov
99e3b21da0
mmc_card: no not lock SPI if MMC_USE_MUTUAL_EXCLUSION enabled
2023-12-16 11:50:34 -05:00
Andrey Gusakov
846e2391d1
Accelerometer: add support for LIS2DH12 (LSM303AGR driver)
2023-12-16 11:50:34 -05:00
Andrey Gusakov
a5c7895528
sensors: accelerometer: use ChibiOS's lis2dw12 driver
2023-12-16 11:50:34 -05:00
Andrey Gusakov
e80c57fa5f
EFI_MEMS -> EFI_ONBOARD_MEMS
2023-12-16 11:50:34 -05:00
rusefillc
6e945f60b6
stm32 own build-in watchdog #1339
...
only:mre_f4
2023-12-14 10:54:21 -05:00
andreika-git
62077e4c85
Enable WDG only for F4
2023-12-14 02:04:48 -05:00
andreika-git
27bddc7dc5
disable WDG for Cypress & Kinetis
2023-12-14 02:04:48 -05:00
andreika-git
06aaef0b0d
enable STM32_WDG_USE_IWDG for H7 and AT32
2023-12-14 02:04:48 -05:00
andreika-git
8ff9b63022
Enable watchdog (see https://github.com/rusefi/rusefi/pull/5751 )
2023-12-14 02:04:48 -05:00