Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
 4.0.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stm32f10x_clock.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: Apache-2.0
3 *
4 * Copyright (C) 2024, Joakim Andersson
5 */
6
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32F10X_CLOCK_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32F10X_CLOCK_H_
9
10#include "stm32_common_clocks.h"
11/* Ensure correct order by including generic F1 definitions first. */
12#include "stm32f1_clock.h"
13
15/* Low speed clocks defined in stm32_common_clocks.h */
16/* Common clocks with stm32f1x defined in stm32f1_clock.h */
17#define STM32_SRC_PLL2CLK (STM32_SRC_PLLCLK + 1)
18#define STM32_SRC_PLL3CLK (STM32_SRC_PLL2CLK + 1)
19
21#undef MCO1_SEL /* Need to redefine generic F1 MCO_SEL for connectivity line devices. */
22#define MCO1_SEL(val) STM32_MCO_CFGR(val, 0xF, 24, CFGR1_REG)
23/* No MCO prescaler support on STM32F1 series. */
24
25#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32F10X_CLOCK_H_ */