aboutsummaryrefslogtreecommitdiffstats
path: root/source/libmaple/api/flash.rst
blob: 8a7e79b3cb913e7dab7ebff1dadd73383eb6fcd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.. highlight:: c
.. _libmaple-flash:

``flash.h``
===========

Flash support.

.. contents:: Contents
   :local:

Types
-----

.. doxygenstruct:: flash_reg_map

Functions
---------

.. doxygenfunction:: flash_enable_prefetch
.. doxygenfunction:: flash_set_latency

Register Map Base Pointers
--------------------------

.. doxygendefine:: FLASH_BASE

Register Bit Definitions
------------------------

Access control register
~~~~~~~~~~~~~~~~~~~~~~~

.. doxygendefine:: FLASH_ACR_PRFTBS_BIT
.. doxygendefine:: FLASH_ACR_PRFTBE_BIT
.. doxygendefine:: FLASH_ACR_HLFCYA_BIT

.. doxygendefine:: FLASH_ACR_PRFTBS
.. doxygendefine:: FLASH_ACR_PRFTBE
.. doxygendefine:: FLASH_ACR_HLFCYA
.. doxygendefine:: FLASH_ACR_LATENCY

Status register
~~~~~~~~~~~~~~~

.. doxygendefine:: FLASH_SR_EOP_BIT
.. doxygendefine:: FLASH_SR_WRPRTERR_BIT
.. doxygendefine:: FLASH_SR_PGERR_BIT
.. doxygendefine:: FLASH_SR_BSY_BIT

.. doxygendefine:: FLASH_SR_EOP
.. doxygendefine:: FLASH_SR_WRPRTERR
.. doxygendefine:: FLASH_SR_PGERR
.. doxygendefine:: FLASH_SR_BSY

Control register
~~~~~~~~~~~~~~~~

.. doxygendefine:: FLASH_CR_EOPIE_BIT
.. doxygendefine:: FLASH_CR_ERRIE_BIT
.. doxygendefine:: FLASH_CR_OPTWRE_BIT
.. doxygendefine:: FLASH_CR_LOCK_BIT
.. doxygendefine:: FLASH_CR_STRT_BIT
.. doxygendefine:: FLASH_CR_OPTER_BIT
.. doxygendefine:: FLASH_CR_OPTPG_BIT
.. doxygendefine:: FLASH_CR_MER_BIT
.. doxygendefine:: FLASH_CR_PER_BIT
.. doxygendefine:: FLASH_CR_PG_BIT

.. doxygendefine:: FLASH_CR_EOPIE
.. doxygendefine:: FLASH_CR_ERRIE
.. doxygendefine:: FLASH_CR_OPTWRE
.. doxygendefine:: FLASH_CR_LOCK
.. doxygendefine:: FLASH_CR_STRT
.. doxygendefine:: FLASH_CR_OPTER
.. doxygendefine:: FLASH_CR_OPTPG
.. doxygendefine:: FLASH_CR_MER
.. doxygendefine:: FLASH_CR_PER
.. doxygendefine:: FLASH_CR_PG

Option byte register
~~~~~~~~~~~~~~~~~~~~

.. doxygendefine:: FLASH_OBR_nRST_STDBY_BIT
.. doxygendefine:: FLASH_OBR_nRST_STOP_BIT
.. doxygendefine:: FLASH_OBR_WDG_SW_BIT
.. doxygendefine:: FLASH_OBR_RDPRT_BIT
.. doxygendefine:: FLASH_OBR_OPTERR_BIT

.. doxygendefine:: FLASH_OBR_DATA1
.. doxygendefine:: FLASH_OBR_DATA0
.. doxygendefine:: FLASH_OBR_USER
.. doxygendefine:: FLASH_OBR_nRST_STDBY
.. doxygendefine:: FLASH_OBR_nRST_STOP
.. doxygendefine:: FLASH_OBR_WDG_SW
.. doxygendefine:: FLASH_OBR_RDPRT
.. doxygendefine:: FLASH_OBR_OPTERR