Loading...
Searching...
No Matches
clk_conf.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Inria
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for more
6 * details.
7 */
8
9#pragma once
10
20
21#if defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F1) || \
22 defined(CPU_FAM_STM32F3)
24#elif defined(CPU_FAM_STM32F2) || defined(CPU_FAM_STM32F4) || \
25 defined(CPU_FAM_STM32F7)
27#elif defined(CPU_FAM_STM32G0) || defined(CPU_FAM_STM32G4)
29#elif defined(CPU_FAM_STM32C0)
31#elif defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)
33#elif defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32L5) || \
34 defined(CPU_FAM_STM32WB) || defined(CPU_FAM_STM32WL)
36#elif defined(CPU_FAM_STM32U5)
38#elif defined(CPU_FAM_STM32MP1)
40#else
41#error "No clock configuration available"
42#endif
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48#ifdef __cplusplus
49}
50#endif
51
Configure STM32C0 clock.
Default clock configuration for STM32F0/F1/F3.
Main header for STM32F2/F4/F7 clock configuration.
Configure STM32G0/G4 clock.
Default STM32L0/STM32L1 clock configuration.
Default STM32L4 clock configuration.
Main header for STM32MP1 clock configuration.
Default STM32U5 clock configuration.