Loading...
Searching...
No Matches
stmclk.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Freie Universität Berlin
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
22#ifndef STMCLK_H
23#define STMCLK_H
24
25#include <stdbool.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
47
52
60
69
78
83
87void stmclk_dbp_lock(void);
88
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif /* STMCLK_H */
void stmclk_dbp_unlock(void)
Unlock write access to the backup domain control.
void stmclk_disable_hsi(void)
Disable the internal high speed clock (HSI)
void stmclk_enable_hsi(void)
Enable the internal high speed clock (HSI)
void stmclk_enable_lfclk(void)
Configure and enable the low speed clock domain.
void stmclk_init_sysclk(void)
Configure the high speed clock domain (main system clock)
bool stmclk_dbp_is_locked(void)
Check whether write access to the backup domain is locked.
void stmclk_dbp_lock(void)
Lock write access to backup control domain.
void stmclk_disable_lfclk(void)
Disable the low frequency clock domain.