Commit Graph

143 Commits

Author SHA1 Message Date
Robbe Derks
3a85a83703 No more VBAT_EN (#2339)
this pin is not connected anymore
2026-02-16 17:52:44 +01:00
Daniel Koepping
a09005c77e Bootkick ship mode (#2330)
* add bootkick for ship mode

* boot standby

* comment
2026-02-16 17:50:55 +01:00
Igor Biletski
e724032378 Cuatro siren (#2294)
* Fix siren

* fix MISRA

* remove MISRA suppression

* disable amp

* fix rebase mistake

* fix fault

* diff audio

* misra

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-11-03 15:28:35 -08:00
Maxime Desroches
615009cf0f Differential sound (#2284)
real
2025-09-30 14:13:39 -07:00
probablyanasian
a2064b86f3 Change fan to use pure pwm (#2267)
* set cuatro fan settings

* set cuatro to use pure pwm

* use pwm on all boards

* remove fan max rpm configs, use pure pwm

* add comment about cooldown

* change max rpm in python side

* remove reference to max_fan_pwm in fan.h

* fully refactor fan configs into "has_fan"

* increase limits on fan test to 15% either way

* only tres for now

* doesn't matter

* not relevant anymore

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2025-09-13 11:09:51 -07:00
Adeeb Shihadeh
e5a39a2cef misc cleanup (#2261)
* cleanup

* fix jungle

* one more
2025-08-26 15:01:22 -07:00
Adeeb Shihadeh
1ce986f75c bye bye f4 (#2259)
* bye bye f4

* lil more

* fix mac build

* update health idx
2025-08-26 12:37:36 -07:00
Robbe Derks
3dc2138623 Tie CAN0 and CAN2 enable lines together (#2257)
* OR can0/2 enable lines

* wrong panda

* not allowed
2025-08-19 18:02:44 +02:00
Robbe Derks
20dcba723d Generic ADC implementation (#2246)
* refactor panda side

* fix misra?

* use common ADC driver in jungle

* fix misra fr now

* fix oversampling

* default channel macro

* one more

* this makes more sense

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-07-30 17:18:30 +02:00
Robbe Derks
9a410b1ee5 Differential sound (#2220)
* drive negative pin with constant value

* flag

* Revert "flag"

This reverts commit e32fee7b27.

* handle both

* good ol' misra

* complete

* complete

* default

---------

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2025-07-29 17:57:33 -07:00
Adeeb Shihadeh
9c0be978d5 remove some old comments 2025-07-27 15:06:30 -07:00
Adeeb Shihadeh
5ac6305a95 quick garbage collection pass (#2231)
* remove DPANDA

* -22

* lil more

* canfd

* lil more

* update cppcheck

* uart cleanup

* always harness

* sbu sense

* lil more

* enable spi

* rm ENABLE_SPI
2025-07-19 21:05:12 -07:00
Adeeb Shihadeh
3d27233530 Deprecate white and black pandas (#2227)
* deprecate white and black pandas

* static
2025-07-19 09:55:12 -07:00
Adeeb Shihadeh
1020d35558 Deprecate uno + grey (#2223)
* Deprecate uno + grey

* lil more
2025-06-06 11:36:21 -07:00
Robbe Derks
4f227f88c8 PWM-ing LED (#2221)
* PWMing LED

* consistency

* fix in bootstub

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-05-28 15:40:46 +02:00
Comma Device
56f9dbfaa6 Revert "sound-new-rev"
This reverts commit 6c98179b06.
2025-05-27 11:31:47 +00:00
Comma Device
6c98179b06 sound-new-rev 2025-05-27 11:31:00 +00:00
Robbe Derks
c0cc78db2c enable amp on that pin too (#2219)
Co-authored-by: Comma Device <device@comma.ai>
2025-05-27 13:24:32 +02:00
Robbe Derks
0dc95a89dd Cuatro: changes for new board rev (#2176)
changes for new board rev

Co-authored-by: Comma Device <device@comma.ai>
2025-04-10 15:55:54 -07:00
Adeeb Shihadeh
f93c5a7629 disable that for now 2025-03-22 15:06:04 -07:00
Robbe Derks
998ac9d5d8 Init cleanup: global LED driver (#2170)
* wip

* fix init

* fix libpanda

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-03-14 18:01:45 +01:00
Robbe Derks
e3e5787650 Refactor and cleanup board init (part 1) (#2094)
* refactor out red chiplet

* global can mode set

* global led disable

* this is already done globally

* global harness init

* global spi gpio init

* init OBD_SBUx_RELAY pins in harness init

* this is already done in harness init

* global set_can_mode

* fix SWD on F4

* no more has_obd

* global enable_transceivers

* Revert "global set_can_mode"

This reverts commit 09e19c3e0c.

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-03-12 17:26:07 +01:00
Robbe Derks
c5c194ff99 Cuatro DFSDM1 mic demodulation (#2077)
* wip

* this works!

* pin todo

* SAI1 isn't used

* make it compile after rebase

* fix gpio

* use register functions and clean up misra

* add power management for mic

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-01-29 16:51:46 +01:00
Adeeb Shihadeh
4ca9905011 cuatro: enable SOM reset 2024-12-22 09:56:44 -08:00
Adeeb Shihadeh
0016c33e7e cuatro: remove beeper (#2100) 2024-12-09 17:33:36 -08:00
Robbe Derks
c7cc2deaf0 Cuatro: no ir (#2093)
no ir
2024-11-29 17:41:03 +01:00
Robbe Derks
4dc203376a more open drains (#2091)
also open drain

Co-authored-by: Comma Device <device@comma.ai>
2024-11-29 17:37:33 +01:00
Robbe Derks
dec9223f97 cuatro sound (#1861)
* fake siren works

* this receives something

* microphone in SAI1 POC

* this receives audio again

* double buffer DMA?

* RX DMA works

* wip

* needs cleanup, but this plays

* cleanup of playback

* print mic

* deal with stereo in

* the DMA from SAI1 -> SAI4 doesn't work yet

* this puts mic data in a buf

* this gets sound to the 845

* wip: still garbage from the mic

* inefficient, but it does record the mic

* sine isn't used

* comment out mic for now

* fix misra

* remove mic

* more cleanup

* add amp enable/disable

* no more debug

* newline

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-11-13 16:09:13 +01:00
Adeeb Shihadeh
0b364ece1e tres: fix I2C hang on fake siren init (#2069)
* fix i2c hang

* misra fix

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-10-30 16:53:17 -07:00
Robbe Derks
352e7ff138 cuatro beeper (#2068)
beeper works

Co-authored-by: Comma Device <device@comma.ai>
2024-10-30 16:18:01 +01: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
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