Maxime Desroches
93aedd987b
misra8.4: board/boards ( #2021 )
...
* boards
* revert
* includes
2024-09-16 14:07:21 -07:00
Robbe Derks
bd6cec3b29
cuatro LED ( #2005 )
...
* Revert "cuatro: disable LED for now"
This reverts commit 866bd9c3bc
.
* re-enable and make sure to use open-drain
* use gpio function
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-08-30 15:35:50 +02:00
Adeeb Shihadeh
866bd9c3bc
cuatro: disable LED for now
2024-08-23 20:41:53 -07:00
Comma Device
30d0434380
cuatro: disable SOM reset
2024-08-23 04:57:34 +00:00
Adeeb Shihadeh
e53c8025a0
tres: fix SOM reset line blinking ( #2003 )
...
Co-authored-by: Comma Device <device@comma.ai>
2024-08-22 21:55:02 -07:00
Robbe Derks
080e53f04d
Cuatro fan ( #1999 )
...
* cuatro fan debugging
* fix
* faster fan, faster interrupts
* fix comment
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-08-18 17:43:27 -07:00
Adeeb Shihadeh
01c54d1199
enable misra-c2012-11.8 ( #1916 )
...
* fix up harness_config definition
* enable misra-c2012-11.8
2024-03-24 12:38:25 -07:00
Adeeb Shihadeh
418fca3583
enable misra-config checks ( #1879 )
...
* mostly done
* fix rest of misra-config
* do other two in next pr
2024-03-24 12:10:37 -07:00
Adeeb Shihadeh
091773f448
Adjust CAN bus orientation live with harness orientation ( #1913 )
...
* set orientation in one place
* no flip
* cleanup
* more explict on startup
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-03-22 14:00:13 -07:00
Adeeb Shihadeh
de061e4f73
remove rest of gmlan ( #1908 )
...
* remove rest of gmlan
* fix
* update struct
* update
2024-03-21 13:56:36 -07:00
Adeeb Shihadeh
6dfd4db4ab
remove rtc ( #1897 )
...
* remove rtc
* fix build
* rm taht
* revert that
2024-03-11 16:08:43 -07:00
Adeeb Shihadeh
6eed036473
(almost) enable cppcheck unusedFunction ( #1875 )
...
* remove some unused
* more
* kinda works
* rest are false positives
* disable for now
* add back exhaustive
2024-02-17 14:16:15 -08:00
Adeeb Shihadeh
c076a9f2f6
remove pedal fw ( #1872 )
...
* remove pedal fw
* little more
* one more
* and tests
* rest of it
* little more
* fix linter
* more fix
2024-02-16 22:58:01 -08:00
Robbe Derks
3cd0023bc1
cuatro power readout ( #1869 )
...
* refactor voltage / current reading
* fix bug and add readout to cuatro
* fix misra?
* just suppress then
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-02-15 13:49:06 -08:00
Adeeb Shihadeh
ad0f372ada
cuatro can fixes ( #1858 )
...
* more can
* other af
* cleanup
* misra fix
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-02-06 22:29:42 -08:00
dzid26
04c5a00a9e
Board chip type ( #1853 )
...
Board chip type title
2024-02-06 11:15:46 -08:00
dzid26
5c5287dabb
Fix CAN comment ( #1854 )
2024-02-06 11:15:22 -08:00
Adeeb Shihadeh
f48fc21a17
cuatro: fix FDCAN2 ( #1851 )
...
Co-authored-by: Comma Device <device@comma.ai>
2024-02-04 15:11:52 -08:00
Adeeb Shihadeh
93a06f1257
remove HW GMLAN support ( #1848 )
2024-02-03 23:18:33 -08:00
Comma Device
457e3b262d
fix enable_can_transceiver
2024-02-03 01:36:15 +00:00
Adeeb Shihadeh
bca1162ae9
cuatro: setup CAN ( #1836 )
...
* cuatro: setup CAN
* fix misra
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-01-30 13:25:22 -08:00
Adeeb Shihadeh
a0ac220b0c
it's cuatro
2024-01-24 13:07:47 -08:00
Adeeb Shihadeh
a2d5d8ad07
stm32h723 ( #1832 )
...
* booting
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-01-23 23:15:59 -08:00
Adeeb Shihadeh
7c613fdcb5
remove redundant board_type ( #1833 )
...
* remove redundant board_type
* fix jungle build
2024-01-23 22:08:22 -08:00
Adeeb Shihadeh
c754171000
remove red panda v2
2024-01-23 19:03:21 -08:00
Adeeb Shihadeh
6eb89cefdf
board: remove set_phone_power ( #1747 )
2023-11-25 13:17:08 -08:00
Adeeb Shihadeh
666a462450
remove low level LIN support ( #1744 )
2023-11-23 17:18:25 -08:00
Adeeb Shihadeh
a1d699b87d
SOM boot recovery ( #1712 )
...
* reset
* simpler
* only once per panda boot
* cleanup
* also check serial
2023-11-09 18:01:46 -08:00
Adeeb Shihadeh
d2ea9ad293
refactor bootkick ( #1690 )
...
* bootkick refactor + reset
* simplify
* revert reset stuff
* cleanup
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-11-08 22:54:55 -08:00
Igor Biletskyy
83c000e1a4
panda: disable transceivers while doing CAN multiplexing ( #1556 )
...
init
2023-08-07 12:24:16 -07:00
Adeeb Shihadeh
c66b98b2a6
finish esp/gps removal ( #1559 )
2023-08-06 12:29:54 -07:00
Adeeb Shihadeh
6b9b448259
log device boot time ( #1503 )
...
* log device boot time
* misra
* only log real boots
* set gpio
* true
* initial
* log bootkick
* fix RPv2
---------
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Igor Biletksyy <bs@privacy.im>
2023-07-12 20:34:46 -07:00
Robbe Derks
2c937656cf
Continuous harness detection ( #1402 )
...
* read in mV and make threshold board-dependent
* refactor and add SBU voltages to health
* refactor relay driving
* more refactoring and readout lock
* avoid race condition
* fix misra
* continuous detection
* 1Hz is fine
* another race condition
* use harness detection to trigger bootkick
* update orientation detection test
* more in-depth harness tests
* fix ignition
* fix
* raise threshold
2023-05-08 13:30:23 +02:00
Robbe Derks
fea1feb598
ADC cleanup ( #1401 )
...
* cleanup function names
* cleanup voltage reading
* define constant
* fix misra
* remove comments
2023-05-04 13:22:01 +02:00
Robbe Derks
237ffedcb3
Dos fan fix ( #1335 )
...
* hitl fan test
* enable cooldown on dos as well
* small cleanup
* get expected RPM from panda class
* fix
* overshoot test
* fix max RPM getting
* fix percentage
* revert cooldown fix
* add cooldown for dos fan as well
* remove feedforward from the fan controller to eliminate overshoot
* update clip
* cleanup
* add that back
---------
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-18 14:15:06 -07:00
Adeeb Shihadeh
d70fa4e120
tres: fix fan spin on startup ( #1297 )
...
* tres: fix fan spin on startup
* new init
2023-03-21 11:19:12 -07:00
Robbe Derks
c0aea3273a
Tres: fan cooldown + no stall recovery ( #1287 )
...
* add fan cooldown
* refactor to be inside the fan driver
* fix rebase
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-03-16 14:15:43 +01:00
Igor Biletskyy
75792fb255
Fix different ADC scales ( #1288 )
...
* different ADC scales
* add HITL
* we had it, remove
2023-03-14 14:49:39 -07:00
Adeeb Shihadeh
2de7140117
SPI support in bootstub ( #1227 )
...
* always build spi
* no dos for now
* spi gpio init
* detect bootstub
* cleanup
* revert that
* move fx stuff
* fix linter
* set erase timeout
* fix types
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-03-07 14:55:15 -08:00
Robbe Derks
d2c2d5f926
Fix short pulse of relay drive after reset ( #1244 )
...
fix order of gpio init
Co-authored-by: Comma Device <device@comma.ai>
2023-02-20 13:47:35 +01:00
Robbe Derks
796d771912
Enable control over the fan on C3 while still in the bootloader ( #720 )
...
* GPIO control over the fan from ABL
* fixes
* leave this todo
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-02-08 16:01:14 +01:00
Robbe Derks
33e576214d
Tres: enable IR power irregardless of fan state ( #1225 )
...
* enable IR power irregardless of fan
* fix misra
Co-authored-by: Comma Device <device@comma.ai>
2023-01-26 18:06:02 +01:00
Igor Biletksyy
9b23622e91
RP: pull USB_EN up
2023-01-23 17:23:33 -08:00
Igor Biletskyy
4750449f3c
RP: obsolete USB load switch ( #1219 )
2023-01-19 17:07:50 -08:00
Adeeb Shihadeh
3743b2de51
chiplet: move OBD_SBU_RELAY2 to PA3 ( #1217 )
...
Co-authored-by: Igor Biletksyy <bs@privacy.im>
2023-01-18 16:31:51 -08:00
Adeeb Shihadeh
60cf9e9d22
Revert "chiplet: move OBD_SBU_RELAY2 to PA3"
...
This reverts commit a0bd6bb21a
.
2023-01-18 14:32:25 -08:00
Igor Biletksyy
a0bd6bb21a
chiplet: move OBD_SBU_RELAY2 to PA3
2023-01-17 16:27:00 -08:00
Robbe Derks
6ba9afc33e
H7 clock source ( #1194 )
...
it's literally the same everything
Co-authored-by: Comma Device <device@comma.ai>
2022-12-14 16:12:09 +01:00
Robbe Derks
1d732d4747
F4: Cleanup clock src, second try ( #1193 )
...
* F4: cleanup clock source
* little more
* void
* restore the timer setup
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2022-12-14 15:30:04 +01:00
Robbe Derks
d1d1f8a22d
Fake siren ( #1192 )
...
* DAC POC
* change freq
* some cleanup
* wip: cleaning up and trying to use DMA
* no clue why this doesn't work
* this works
* wip multi-master i2c for fake siren
* cleanup and some more i2c stuff
* seems more stable
* retry disabling and cleanup force siren
* fix misra violations
* not needed
* messed up rebase
Co-authored-by: Comma Device <device@comma.ai>
2022-12-14 11:25:54 +01:00