Commit Graph

1509 Commits

Author SHA1 Message Date
Adeeb Shihadeh f48e9890e6 Toyota: AEB safety 2024-09-12 16:32:35 -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
Adeeb Shihadeh 567dbfe6d8
remove comma pedal (#1902) 2024-03-17 22:22:46 -07:00
Adeeb Shihadeh 895a7001c9
Rename stm32fx/ -> stm32f4/ (#1898)
* Rename stm32fx/ -> stm32f4/

* jungle too
2024-03-11 16:18:56 -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 4b6f6ac162
723 power init (#1891)
LDO only

This reverts commit ea156f7c62.

Co-authored-by: Comma Device <device@comma.ai>
2024-03-08 14:57:33 -08:00
Robbe Derks 41e9610ff8
Tesla Raven (#1886)
* raven uses a different steering angle sensor

* add raven flag

* raven test

* bump opendbc ref
2024-03-06 21:13:13 +01:00
Adeeb Shihadeh ea156f7c62 revert that for now 2024-02-28 20:31:47 -08:00
Aryan 4303ae1387
enable misra-c2012-10.6 (#1811)
* misra-c2012-10.6

* fixed uninitialized data error

* revert false positive

* enable 10.6

* update install.sh

* cleanup

* bug fix

* better fix ?
2024-02-27 10:32:28 -08:00
Cameron Clough 0c7d5f11d7
use pyupgrade to update syntax (#1889) 2024-02-24 13:56:28 -08:00
Jason Young 96a3099398
fix forwarded bus logging for CAN-FD hardware (#1884) 2024-02-24 10:03:45 -08:00
Shane Smiskol 6aa4b55033
Ford: ignore 2nd speed checksum (#1887)
* ignore cs

* fix test

* fix coverage

* no dead code, remove todo

* typo
2024-02-23 19:08:12 -08:00
Jason Young cd11c7f9a4
VW PQ: Allow either HCA mode (#1885)
* write the test first, like a grownup

* pass the test!
2024-02-22 14:56:14 -08:00
Aryan b4442a7c93
enable misra-c2012-10.3 (#1852)
* enable misra-c2012-10.3

* fix that

* cleanup

* little more

* one more

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-18 11:56:44 -08:00
Jason Young 00fab5e18e
refactor GET_BIT to be MISRA friendly (#1877)
* refactor GET_BIT to be MISRA friendly

* better fix for ternary op

* remove whitespace that crept in
2024-02-18 11:03:30 -08:00