aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32g4.c
Commit message (Collapse)AuthorAgeFilesLines
* stm32: Reduce peripheral clock speed on stm32g4 chipsKevin O'Connor2024-09-221-2/+2
| | | | | | A 170mhz (or 150mhz) peripheral clock is too fast for some peripherals. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Fix setting USB clock with USB to CANbus mode on stm32g4/stm32l4Kevin O'Connor2024-08-291-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add FDCAN2 channel needed for stm32g4 alternate pinsDropeffect GmbH2024-05-141-0/+6
| | | | | | | | Some of the alternate pins defined are routed to FDCAN2 instead of FDCAN1, this commit uses the correct IRQ register and peripheral clock enable bit to enable FDCAN on those pins. Signed-off-by: Amr Elsayed from Dropeffect GmbH <code@dropeffect.com>
* stm32: Fix CAN for STM32G4Alex Maclean2023-12-211-0/+3
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* stm32: Move clock line mapping from stm32h7_adc.c to lookup_clock_line()Kevin O'Connor2023-01-171-0/+4
| | | | | | | Use the common lookup_clock_line() code to lookup the adc clock lines. This also enables resets on the adc1/adc2 hardware block. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Include "misc.h" in stm32l4.c and stm32g4.cKevin O'Connor2022-12-301-0/+1
| | | | | | Include for bootloader_request() definition. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Move dfu reboot logic to new dfu_reboot.c fileKevin O'Connor2022-12-181-27/+2
| | | | | | | Move the stm32 DFU reboot logic to a new dfu_reboot.c file. This simplifies the per-chip code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Separate out USB DFU reboot logic in stm32g4.cKevin O'Connor2022-12-181-21/+45
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32g4: Do not disable SWD by accidentAlex Voinea2022-12-111-1/+1
| | | | | | Keep SWEN as 1 in FLASH->ACR register such that the SWD interface doesn't get disabled. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* stm32g4: implement build,usb,can,i2c,spi,serial,adc.Matt Baker2022-12-021-0/+168
Signed-off-by: Matt Baker <baker.matt.j@gmail.com>