Commit Graph

20 Commits

Author SHA1 Message Date
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
Maxime Desroches
df5db3fdb5 misra8.7: board/stm32* (#2031)
partial
2024-09-19 19:20:13 -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
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
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
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
Adeeb Shihadeh
ea156f7c62 revert that for now 2024-02-28 20:31:47 -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
d6b5dbb3dc Revert "detect 723 live (#1835)"
This reverts commit 9d0caa1935.
2024-01-24 15:39:11 -08:00
Adeeb Shihadeh
9d0caa1935 detect 723 live (#1835)
* detect 723 live

* cleanup

* more precise

* more precise

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-24 14:48:32 -08:00
Comma Device
b39ef1dbfe fix 723 init 2024-01-24 21:57:28 +00:00
Adeeb Shihadeh
a2d5d8ad07 stm32h723 (#1832)
* booting

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-23 23:15:59 -08:00
Igor Biletskyy
c3c8d8f5de peripherals.h clean and duplicates removal (#1599)
* init

* ULPI disable

* not related to clocks
2023-08-23 15:17:06 -07:00
Igor Biletskyy
cc3b7d9470 H7: add comments on buses clocks (#1154)
comment
2022-11-11 15:30:37 -08:00
Igor Biletskyy
f7c74e08c6 bugfix: D2 SRAM clocks and CRun CPU state (#1125)
D2 SRAM clocks
2022-11-02 14:28:23 -07:00
Igor Biletskyy
89438c849b H7: Move from PLL3Q to HSI48 for USB FS (#800) 2021-12-01 20:28:31 -08:00
Igor Biletskyy
571512a392 Change H7 CAN FD clocks to support both 2 and 5 Mbit/s (#781) 2021-11-15 16:28:05 -08:00
Igor Biletskyy
ad90646001 Support for STM32H7 and Red Panda (#694)
* H7 drivers

* Include H7 into the code

* fix flash write for H7

* get serial from flasher.h from F4 and H7

* flash.sh and recover.sh for gen3

* add set_data_speed for BRS CAN FD

* build all fws

* gen3 to panda lib

* gen3 name in scons project

* disable fd can and brs

* gen3 to CI tests

* jenkins fix for new tests and build_all

* fix pedal test

* pedal in panda tests again...

* cleanup llfdcan.h

* cleanup clock.h

* Add LDORDY bit check instead of delay

* missing define in stm32h735xx.h lib

* board_id helper

* enable debug detection again

* clean gpio inits

* fix board_id helper, make cleaner

* comment MCUs in stm lib for faster misra

* target MCU

* misra-5.5

* improve headers and misra speed

* cleanup CI tests

* change naming from gen3 to h7

* readable if statement

* cleanup llusb.h

* only cycle one transceifer in bus-off

* move unused funcs to common header

* bus_off_err reset

* misra 10.4 fdcan

* extern to can_data_speed variable

* limit can_data_speed array size to 3

* reinit fd can on data speed change

* Improve test with ELM327 and extaddr check

* bugfix for fdcan

* panda python config naming

* abstracted init request in llfdcan

* misra fdcan

* Improve llusb.h for H7
2021-08-02 20:26:15 -07:00