1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

Merge pull request #15114 from aabadie/pr/boards/stm32f0_apb2_clock_fix

boards/stm32f0: fix missing CLOCK_APB2 define
This commit is contained in:
Alexandre Abadie 2020-09-29 17:37:19 +02:00 committed by GitHub
commit bcbe3ac1d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,6 +129,10 @@ extern "C" {
#define CONFIG_CLOCK_APB1_DIV (1)
#endif
#define CLOCK_APB1 (CLOCK_AHB / CONFIG_CLOCK_APB1_DIV) /* max: 48MHz */
/* APB2 and APB1 are the same bus but configuration registers still follows the
* split between APB1 and APB2. Since it's the same bus, APB2 clock is equal to APB1 clock.
*/
#define CLOCK_APB2 (CLOCK_APB1)
/** @} */
#ifdef __cplusplus