1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/stm32f0: fix missing CLOCK_APB2 define

This commit is contained in:
Alexandre Abadie 2020-09-29 14:28:33 +02:00
parent 9970a26277
commit a7bb409eb5
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

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