Maxime Desroches
fb67bda00e
compile libpanda with clang ( #2041 )
...
* clang
* report
* safety.h
* fix lines
* cleaner
* better
* remove this
* revert this
* fix
* tici build
* revert
* revert
* fix
2024-09-25 20:14:12 -07:00
Radek
38cab7d501
Add multiple pandas selector ( #2015 )
...
* multiple Panda cli helper
* Don't flash all pandas by default. Use --all arg to flash all.
2024-09-24 16:37:23 -07:00
Maxime Desroches
2037a2ead7
Fix openpilot build ( #2039 )
...
* static
* test
* revert
2024-09-24 11:59:17 -07:00
Maxime Desroches
209f7ab09f
misra8.4: safety.h + safety_declarations.h ( #2022 )
...
* safety
* static!
* ALLOW_DEBUG
* fix
* fix 12.3
* remove comment
* no debug
* move stuff to debug
* only usage
* cleanup
* canfd hyundai
* no include for now
* indent
* comment for ford suppression
* also gm
* remove suppression
* only safety headers
* cleanup
2024-09-20 19:25:37 -07:00
Maxime Desroches
ac9c1b3b3f
misra8.7 ( #2033 )
...
* 8_7
* fix test
2024-09-20 15:51:27 -07:00
Maxime Desroches
144846e4ce
misra2.5: safety modes + stm32* ( #2032 )
...
partial
2024-09-20 15:14:44 -07:00
Maxime Desroches
022d1c69a1
misra8.4: board/drivers ( #2025 )
...
* drivers
* cleanup bootkick
* bxcan cleanup
* fan cleanup
* harness cleanup
* interrupts cleanup
* registers cleanup
* simple_watchdog cleanup
* spi cleanup
* h7 drivers
* no include for now
* conflict
* reduce scope
* cleanup
2024-09-20 14:30:45 -07:00
Maxime Desroches
32eecd7211
misra8.4: board/*.h ( #2026 )
...
* main
* can_comms
* main_declarations->main_definitions
* rename this also
* can_definitions
* faults
* power_saving
* provision
* gitversion
* not included
* no include for now
2024-09-19 21:15:08 -07:00
Maxime Desroches
df5db3fdb5
misra8.7: board/stm32* ( #2031 )
...
partial
2024-09-19 19:20:13 -07:00
Maxime Desroches
a2d0b87d4e
misra8.4: board/stm32* ( #2027 )
...
* f4
* h7
* no include for now
2024-09-19 15:20:57 -07:00
Maxime Desroches
ed831773ea
misra21.15 ( #2030 )
...
* cast
* remove suppression
* make it more explicit
2024-09-19 10:35:11 -07:00
Maxime Desroches
ae8ef1f71a
misra8.4: safety modes ( #2029 )
...
safety mode
2024-09-19 10:30:57 -07:00
Maxime Desroches
ceb088ac4e
misra12.2 ( #2028 )
...
* 12.2
* remove supression
* new stm
2024-09-18 11:33:12 -07:00
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
Shane Smiskol
8587ae3fc0
drivers: log can core reset when switching multiplexing ( #1972 )
...
fdcan: log lost tx messages when resetting can core for multiplexing
2024-08-26 17:56:46 -07:00
Andrei Radulescu
0a0912234e
update bash scripts to #!/usr/bin/env bash ( #1987 )
...
* update bash shebang for better compatibility including macOS
* can't have anything after #bash
2024-08-26 17:25:15 -07: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
Robbe Derks
0234e756e3
STM32H7: add missing interrupt handlers ( #1997 )
...
add missing interrupts
Co-authored-by: Comma Device <device@comma.ai>
2024-08-15 21:33:07 -07:00
Robbe Derks
b70ba5ecde
Detect H723 in firmware ( #1988 )
...
* determine H723 based on package type
* wrong way round
* misra...
* enable SYSCFG clock before reading
* whitelist certain package types
2024-08-02 11:26:16 -07:00
Shane Smiskol
8c3bb0151e
deprecate busTime ( #1989 )
...
* deprecate busTime
* fix test_comms.py
* update opendbc
* way more than i thought
* and here
* oops
2024-07-30 21:20:48 -07:00
Adeeb Shihadeh
5ee262f3cb
H7 CR3 notes ( #1985 )
2024-07-17 11:19:24 -07:00
Adeeb Shihadeh
b4e3d5cdd2
Revert "H7: detect board type with second ID pin group ( #1975 )"
...
This reverts commit 376408bb4f
.
2024-07-14 15:56:18 -07:00
Adeeb Shihadeh
376408bb4f
H7: detect board type with second ID pin group ( #1975 )
...
* H7: detect board type based on package
* detect smps
* misra fix
* jungle?
* pkg isn't reliable, need syscfg enabled
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-06-26 18:20:51 -07:00
Adeeb Shihadeh
ee1d5ce8bc
add assert_fatal function ( #1976 )
...
* add assert function
* fix
* flip
* rename
* assert fatal
2024-06-26 16:59:08 -07:00
Adeeb Shihadeh
faa1802669
even more spammy
2024-06-04 21:08:31 -07:00
Shane Smiskol
77ecf515e5
clear stuck CAN messages before switching multiplexing ( #1967 )
...
* clear stuck CAN messages before switching multiplexing
* todo
2024-06-04 18:11:21 -07:00
Adeeb Shihadeh
e2c9a81c4f
jungle: more robust CAN generation mode
2024-06-04 15:37:28 -07:00
Adeeb Shihadeh
fec68d0409
jungle: add debug mode with generated CAN traffic ( #1966 )
2024-06-03 22:25:17 -07:00
dzid26
d401ba169c
Enable misra-c2012-1.2 ( #1962 )
...
* misra-c2012-1.2 - allow __typeof__ compiler extension
* explicit c11
2024-05-30 22:13:47 -07:00
dzid26
588d4e0950
remove void return ( #1963 )
2024-05-30 14:21:42 -07:00
dzid26
6ff6733ba3
Cppcheck 2.14 ( #1951 )
...
* enable cppcheck 2.14
* cppcheck: Uninitialized variable
* cppcheck: variableScope
* cppcheck: misra-c2012-21.16
both arguments to memcmp() should be of compatible (matching) essential types
* cppcheck: misra-c2012-11.6
Avoid casting between pointer to void and an arithmetic type.
Refactor bootloader address casting for easier understanding.
* cppecheck 2.14.1
- force cppecheck tag fetch
2024-05-27 21:21:13 -07:00
dzid26
d37d25e057
Separate F4 and H7 includes ( #1955 )
...
* fix: stm32h7 doesn't have v8 core
* fix: cm3 was depriciated
2024-05-26 13:12:25 -07:00
Adeeb Shihadeh
cade0d5e75
SPI: add test endpoint for arbitrary lengths ( #1949 )
...
Co-authored-by: Comma Device <device@comma.ai>
2024-05-16 19:36:40 -07:00
Adeeb Shihadeh
2b70e283c1
tres: lower SOM reset timeout ( #1945 )
...
* tres: lower SOM reset timeout
* update test
2024-05-03 14:03:54 -07:00
Adeeb Shihadeh
53e0f13739
update to ubuntu 24.04 ( #1941 )
...
* update to ubuntu 24.04
* Apply suggestions from code review
* Update .github/workflows/repo.yml
* Update test.yaml
* docker builds
* bump
* no pyenv
* ugh this should just be removed
* fix
* add release/
* no openpilot
* remove those too
* build in the docker
* cleanup
* need the addons
2024-04-28 15:32:18 -07:00
Jack Merrill
d4a01f7555
Increase Subaru RPM limit ( #1937 )
...
* feat: increase Subaru RPM limit
* test: Update tests for Subaru RPM increase
2024-04-25 13:56:25 -07:00
Adeeb Shihadeh
714642ec9a
Remove WebUSB popup ( #1932 )
2024-04-17 10:15:40 -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
dcc7b84001
UID_BASE is always defined now
2024-03-24 10:59:51 -07:00
Adeeb Shihadeh
a727cecdb8
remove unused deepsleep stuff ( #1914 )
2024-03-22 14:48:49 -07:00
Adeeb Shihadeh
dd82382d5f
instant boot ( #1910 )
...
no more boot time :P
2024-03-22 14:01:44 -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
cccceabf8a
exit flashing scripts with error if no pandas
2024-03-21 13:04:45 -07:00
Andrei Radulescu
74e6a54503
jungle: assume F4 MCU ( #1907 )
2024-03-21 12:45:47 -07:00