Loading...
Searching...
No Matches
rtc.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Technische Universität Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "lse.h"
19#include "lsi.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
31#ifndef CONFIG_RTC_USE_LSE
32# define CONFIG_RTC_USE_LSE 1
33#endif
34
38#if CONFIG_RTC_USE_LSE
39# define CLOCK_RTC CLOCK_LSE
40#else
41# define CLOCK_RTC CLOCK_LSI
42#endif
43
44#ifdef __cplusplus
45}
46#endif
47
LSE clock setup for STM32H7 family.
LSI clock setup for STM32H7 family.