Matthew Kennedy
b446488e42
unnecessary postCanState
2024-12-26 22:51:53 -05:00
Andrey Gusakov
b87f1e8174
CAN: show low-level error counters and flags
...
STM32 only
2023-12-06 19:18:05 -05:00
Andrey Gusakov
c9c7adbdbc
CAN configs are platform specific
...
Move STM32's configs to stm32_can.cpp
Create AT32's configs in at32_can.cpp
2023-11-19 16:20:11 -05:00
rusefillc
35e57475a4
only:variable shadowing should be avoided #5676
2023-11-01 12:12:50 -04:00
rusefillc
0a806e31e3
A setting to switch specific CAN bus into Listen mode fix #5406
2023-10-08 11:57:09 -04:00
rusefi
e8c45a2e7d
refactoring: reducing code duplication. Also, do we even care for critical error codes?!
2023-08-20 22:23:44 -04:00
rusefi
18222160d8
reducing code duplication
2023-07-16 15:52:43 -04:00
Matthew Kennedy
61e5b4b1ad
change ObdCode to enum class builds firmware
2023-04-29 00:44:00 -04:00
Andrey
395af95d1e
random CAN clean-up
2023-02-26 20:25:24 -05:00
Matthew Kennedy
28babe5cc2
add 50/83.3/125kbit CAN ( #5072 )
...
* fix CAN
* add 83/125 too
* bump config version
2023-02-13 17:13:57 -05:00
rusefillc
da0fa03f0a
refactoring: wider usage of helper method
2022-10-22 08:39:55 -04:00
rusefi
755f9926ea
canRxAdd bus does not convert from Lua/human value into zero-indexed implementation value fix #4467
2022-08-21 23:48:10 -04:00
rusefi
b471012838
less violent error handling
2022-08-21 22:46:59 -04:00
rusefi
26eda07424
Lua CAN bus index: let's fail if invalid value specified
2022-08-21 22:31:52 -04:00
rusefi
f671f688a9
ISO-TP does not work on real car #4427
2022-08-11 00:29:09 -04:00
Matthew Kennedy
b99d90b006
Start -> start ( #4366 )
2022-07-21 15:17:32 -04:00
Matthew Kennedy
a95bc3ad03
implement CAN driver for simulator ( #4312 )
...
* stub simulator CAN driver
* comments
* CAN sensor
* maybe implement?
* s
* fix
* tx and rx actually work!?!?!
* check_can_isr
* modify chibios
* Sim has no CAN on Windows (for now?)
* safer init/deinit, enable assertions
* smarter handling of missing CAN device
* better guards
* guards for windows
2022-07-03 08:25:24 -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
752802b0cc
CAN: do null check first ( #3755 )
...
Otherwise it will emit strange error if both can are disabled
2022-01-08 10:25:21 -05:00
Matthew Kennedy
6b6fd5e6e8
fix dual CAN init, update UI ( #3719 )
...
* CAN init sequence
* config & UI cleanup
* ui
* simplify
2021-12-24 23:33:54 -05:00
rusefillc
2205a57024
Second CAN #3687
2021-12-22 22:02:34 -05:00
rusefillc
15daec77e6
Second CAN #3687
2021-12-22 20:15:22 -05:00
rusefillc
7b0179aaa3
Second CAN #3687
2021-12-21 00:48:13 -05:00
rusefillc
9170fd17a1
Second CAN #3687
...
what could possibly go wrong?
2021-12-19 11:28:42 -05:00
Matthew Kennedy
408d4c6ebf
multi CAN plumbing ( #3688 )
...
* framing for multi CAN
* typoooooooo
2021-12-10 17:08:10 -05:00
Andrei
c6fa50d196
CAN update
2021-12-03 21:44:15 -05:00
rusefillc
26997ab9e3
why so many channels are hidden in debug ? #3614
2021-11-29 01:02:40 -05:00
Scott Smith
823d9a07e0
Programmatically replace ENGINE() and CONFIG() with engine-> etc ( #3565 )
...
git grep -l -w ENGINE | xargs sed -i -r "s/ENGINE\(([]a-zA-Z_0-9.[]+)\)/engine->\1/g"
git grep -l -w CONFIG | xargs sed -i -r "s/([^a-zA-Z_])CONFIG\(([]a-zA-Z_0-9.[]+)\)/\1engineConfiguration->\2/g"
2021-11-17 03:54:21 -05:00
Matthew Kennedy
8cdac4cac0
remove engine pointer passing ( #3556 )
...
* some
* more
* more
* the last?!
2021-11-16 04:15:29 -05:00
Matthew Kennedy
cb032fb1ea
(void) -> () ( #3550 )
...
* static functions with (void)
* more
* Revert "more"
This reverts commit 246e53441f935451437df186ac92d7df26b62fb6.
* s
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-15 13:02:34 +01:00
rusefi
05820ec92d
speed into caninfo
2021-11-13 10:41:23 -05:00
rusefillc
b8ccdfb7d8
todo: smarter online change of CAN settings, kill isCanEnabled with fire
2021-11-06 22:23:06 -04:00
rusefillc
b141f83a88
No pins should be restarted for no reason during config change #3151
2021-08-14 04:58:10 -04:00
rusefillc
bd410d0c1b
No pins should be restarted for no reason during config change #3151
2021-08-14 04:35:43 -04:00
Matthew Kennedy
d24f1462e2
even more pch ( #3112 )
...
* s
* more
* s
* f7
2021-08-04 19:30:52 -04:00
Matthew Kennedy
25414ebdad
yet more pch ( #3068 )
...
* big pch energy
* put back ramdisk stub
* tests are happy
* h743 nucleo
* kinetis
* I love deleting code!
* make stepper happy
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-03 22:05:01 -04:00
Matthew Kennedy
2ce7777865
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
Andrey G
802afaed34
Fixes eg33 ( #2838 )
...
* CAN HW: use designated initizalization
* board subaru eg33: set CAN transceiver EN to active state constantly
While FW does not handle CAN transceiver's EN signal
2021-06-20 08:18:16 -04:00
Matthew Kennedy
6d19adb24f
remove old config override ( #2763 )
2021-05-30 13:31:36 +03:00
Matthew Kennedy
ca7308e910
move some stuff in to ccm ( #2645 )
...
* stuff in ccm
* used memory
2021-05-07 09:35:57 -04:00
shadowm60
61446a6170
Handle can message cyclicity ( #2573 )
...
* Handle can message cyclicity
update of canDash to support different cyclicity of messages
* review updates
2021-04-23 20:16:27 -04:00
Matthew Kennedy
bd1c84fa62
Logging remove 3 ( #2568 )
...
* ts logger
* sensors
* wideband too
* missed one
* init
* motors, pid, etc
* vvt
* more
* idle
* missed one
* dynoview
* launch
* can
* console IO
* s
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-20 14:09:41 -04:00
Matthew Kennedy
40c4238f13
enable CAN on H7 ( #2393 )
...
* enable
* guard correctly
* h7 bit timing
* allow longer frames
* allow data smaller than maximum
* mcu temperature
* typo
* tx message
* testing
* check for CAN or FDCAN
* don't need that any more
* h7 bitrate config
* undo testing
* h7-ify msg tx
* comment
* break out SID/EID macros
* guard differently
* update ChibiOS
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-09 18:54:01 -05:00
Matthew Kennedy
b1873b3d8b
set all thread priorities in the same place ( #2412 )
...
* unify thread priority
* header
* mmc
2021-02-28 07:30:45 -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
96c29840ce
basic hw in the loop - pwm self validation #2028
2020-12-07 20:42:47 -05:00
rusefillc
2f91ae6f73
Starter is engaged on start-up in pull-up configuration #1969
2020-11-26 10:55:39 -05:00
rusefi
7d0c8b4870
microRusEFI used as Body Control Module BCM BCU
...
got stack too low warning with DBG_CAN
2020-09-06 21:45:17 -04:00
rusefi
1f6b820a96
microRusEFI used as Body Control Module BCM BCU
2020-09-06 21:30:14 -04:00
rusefi
39d09bc976
microRusEFI used as Body Control Module BCM BCU
2020-09-06 20:21:01 -04:00