libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
h7/flash.h
Go to the documentation of this file.
1
/** @defgroup flash_defines FLASH Defines
2
* @brief <b>Defined Constants and Types for the STM32H7xx Flash
3
* controller</b>
4
* @ingroup STM32H7xx_defines
5
*
6
* @author @htmlonly © @endhtmlonly 2019
7
* Brian Viele <vielster@allocor.tech>
8
*/
9
/*
10
* This file is part of the libopencm3 project.
11
*
12
* This library is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License as published by
14
* the Free Software Foundation, either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This library is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU Lesser General Public License for more details.
21
*
22
* You should have received a copy of the GNU Lesser General Public License
23
* along with this library. If not, see <http://www.gnu.org/licenses/>.
24
*/
25
26
#ifndef LIBOPENCM3_FLASH_H
27
#define LIBOPENCM3_FLASH_H
28
29
#include <
libopencm3/stm32/common/flash_common_all.h
>
30
#include <
libopencm3/stm32/common/flash_common_f.h
>
31
#include <
libopencm3/stm32/common/flash_common_f24.h
>
32
33
/**@{*/
34
35
/** @addtogroup flash_acr_values FLASH_ACR values
36
* @ingroup flash_registers
37
* @{
38
*/
39
#define FLASH_ACR_WRHF_VOS1_70MHZ (0 << FLASH_ACR_WRHIGHFREQ_SHIFT)
40
#define FLASH_ACR_WRHF_VOS1_185MHZ (1 << FLASH_ACR_WRHIGHFREQ_SHIFT)
41
#define FLASH_ACR_WRHF_VOS1_225MHZ (2 << FLASH_ACR_WRHIGHFREQ_SHIFT)
42
#define FLASH_ACR_WRHF_VOS2_55MHZ (0 << FLASH_ACR_WRHIGHFREQ_SHIFT)
43
#define FLASH_ACR_WRHF_VOS2_165MHZ (1 << FLASH_ACR_WRHIGHFREQ_SHIFT)
44
#define FLASH_ACR_WRHF_VOS2_225MHZ (2 << FLASH_ACR_WRHIGHFREQ_SHIFT)
45
#define FLASH_ACR_WRHF_VOS3_45MHZ (0 << FLASH_ACR_WRHIGHFREQ_SHIFT)
46
#define FLASH_ACR_WRHF_VOS3_135MHZ (1 << FLASH_ACR_WRHIGHFREQ_SHIFT)
47
#define FLASH_ACR_WRHF_VOS3_225MHZ (2 << FLASH_ACR_WRHIGHFREQ_SHIFT)
48
/**@}*/
49
#define FLASH_ACR_WRHIGHFREQ_MASK (0x3)
50
#define FLASH_ACR_WRHIGHFREQ_SHIFT (0x4)
51
52
/**@}*/
53
54
#endif
55
flash_common_all.h
flash_common_f24.h
flash_common_f.h
include
libopencm3
stm32
h7
flash.h
Generated on Tue Mar 7 2023 16:11:55 for libopencm3 by
1.9.4