* 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>
* 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>
* remove DPANDA
* -22
* lil more
* canfd
* lil more
* update cppcheck
* uart cleanup
* always harness
* sbu sense
* lil more
* enable spi
* rm ENABLE_SPI
* 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>
* 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>
* 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>
* 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>
* refactor voltage / current reading
* fix bug and add readout to cuatro
* fix misra?
* just suppress then
---------
Co-authored-by: Comma Device <device@comma.ai>