aboutsummaryrefslogtreecommitdiffstats
path: root/source/libmaple/api/bkp.rst
blob: 4f0115b54745e658eff38ae2c35a955bcec534f5 (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
.. highlight:: c
.. _libmaple-bkp:

``bkp.h``
=========

Backup register (BKP) suport.

.. contents:: Contents
   :local:

Types
-----

.. doxygenstruct:: bkp_dev
.. doxygenstruct:: bkp_reg_map

Devices
-------

.. doxygenvariable:: BKP

Convenience Functions
---------------------

.. doxygenfunction:: bkp_init
.. doxygenfunction:: bkp_enable_writes
.. doxygenfunction:: bkp_disable_writes
.. doxygenfunction:: bkp_read
.. doxygenfunction:: bkp_write

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

.. doxygendefine:: BKP_BASE

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

Data Registers
~~~~~~~~~~~~~~

.. doxygendefine:: BKP_DR_D

RTC Clock Calibration Register
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. doxygendefine:: BKP_RTCCR_ASOS_BIT
.. doxygendefine:: BKP_RTCCR_ASOE_BIT
.. doxygendefine:: BKP_RTCCR_CCO_BIT

.. doxygendefine:: BKP_RTCCR_ASOS
.. doxygendefine:: BKP_RTCCR_ASOE
.. doxygendefine:: BKP_RTCCR_CCO
.. doxygendefine:: BKP_RTCCR_CAL

Backup control register
~~~~~~~~~~~~~~~~~~~~~~~

.. doxygendefine:: BKP_CR_TPAL_BIT
.. doxygendefine:: BKP_CR_TPE_BIT

.. doxygendefine:: BKP_CR_TPAL
.. doxygendefine:: BKP_CR_TPE

Backup control/status register
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. doxygendefine:: BKP_CSR_TIF_BIT
.. doxygendefine:: BKP_CSR_TEF_BIT
.. doxygendefine:: BKP_CSR_TPIE_BIT
.. doxygendefine:: BKP_CSR_CTI_BIT
.. doxygendefine:: BKP_CSR_CTE_BIT

.. doxygendefine:: BKP_CSR_TIF
.. doxygendefine:: BKP_CSR_TEF
.. doxygendefine:: BKP_CSR_TPIE
.. doxygendefine:: BKP_CSR_CTI
.. doxygendefine:: BKP_CSR_CTE