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 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
44 void stmclk_init_sysclk(void);
45 
49 void stmclk_enable_hsi(void);
50 
57 void stmclk_disable_hsi(void);
58 
66 void stmclk_enable_lfclk(void);
67 
75 void stmclk_disable_lfclk(void);
76 
80 void stmclk_dbp_unlock(void);
81 
85 void stmclk_dbp_lock(void);
86 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif /* STMCLK_H */
92 
stmclk_enable_lfclk
void stmclk_enable_lfclk(void)
Configure and enable the low speed clock domain.
stmclk_enable_hsi
void stmclk_enable_hsi(void)
Enable the internal high speed clock (HSI)
stmclk_disable_hsi
void stmclk_disable_hsi(void)
Disable the internal high speed clock (HSI)
stmclk_disable_lfclk
void stmclk_disable_lfclk(void)
Disable the low frequency clock domain.
stmclk_init_sysclk
void stmclk_init_sysclk(void)
Configure the high speed clock domain (main system clock)
stmclk_dbp_unlock
void stmclk_dbp_unlock(void)
Unlock write access to the backup domain control.
stmclk_dbp_lock
void stmclk_dbp_lock(void)
Lock write access to backup control domain.