aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32g4.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>