History for mbed-os / targets / TARGET_STM / TARGET_STM32G4 / TARGET_STM32G431xB / system_clock.c
2023-05-17
@Jamie Smith
Synchronize upstream changes - May 2023 edition (#160) ...
Jamie Smith authored on 17 May 2023 GitHub committed on 17 May 2023
2021-01-25
@Tauno Magnusson
After checking other parts of the code (trng_api.c and a few other board platforms (NUCLEO_F413ZH, ...)) it appears that even though the reset value defaults correctly it may be good practice to keep the HAL_RCCEx_PeriphCLKConfig statement that selects the HSI48CLK as source for USB/RNG.
Tauno Magnusson committed on 25 Jan 2021
@Tauno Magnusson
Removed the HAL_RCCEx_PeriphCLKConfig statement that was selecting the HSI48 CLK for USB. Assumption is that the STM32G4 reset value (defaults to HSI48 selected for USB) is preserved throughout Mbed initialization.
Tauno Magnusson committed on 25 Jan 2021
@Tauno Magnusson
Updated to enable HSI48 Clock also for USBDEVICE define in targets.json. Also added so that the CK48 Clock Mux selects HSI48 for both RNG and USB. Without these the RNG/USB will be clocked at PLLQ (170 MHz) and not work.
Tauno Magnusson committed on 25 Jan 2021
2021-01-23
@Tauno Magnusson
Reverted to a pure copy of 474RE system_clock.c since it was updated with RNG clock fixes. Removing USB Clock enablement (USB will not work out-of-the box but will require users to modify system_clock.c to enable its clock) - this inline with changes to targets.json where I removed the USBDEVICE define
Tauno Magnusson committed on 23 Jan 2021
@Tauno Magnusson
Adding support for NUCLEO_G431KB. Created this file based on G474RE file. Added support for USB - connected the HSI48 clock to USB (and RNG). Warning: I'm assuming Flash latency is the same as for G474RE.
Tauno Magnusson committed on 23 Jan 2021