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 
9 #pragma once
10 
24 #include <stdbool.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
45 void stmclk_init_sysclk(void);
46 
50 void stmclk_enable_hsi(void);
51 
58 void stmclk_disable_hsi(void);
59 
68 
77 
81 void stmclk_dbp_unlock(void);
82 
86 void stmclk_dbp_lock(void);
87 
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
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.