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

``libmaple_types.h``
====================

Defines the base types and type-related macros used throughout the
rest of libmaple.

Integral Types
--------------

.. doxygentypedef:: uint8
.. doxygentypedef:: uint16
.. doxygentypedef:: uint32
.. doxygentypedef:: uint64
.. doxygentypedef:: int8
.. doxygentypedef:: int16
.. doxygentypedef:: int32
.. doxygentypedef:: int64

Attributes and Type Qualifiers
------------------------------

.. c:macro:: __io

   This is a macro for ``volatile`` which is used to denote that the
   variable whose type is being qualified is IO-mapped.  Its most
   common use is in the individual members of each :ref:`register map
   <libmaple-overview-regmaps>` struct.

.. c:macro:: __attr_flash

   This is a macro for a GCC ``__attribute__`` which (when using the
   linker scripts provided with libmaple) will cause the variable
   being marked to be stored in Flash, rather than SRAM.  The
   variable's value may be read like that of any other variable, but
   it may not be written.

Other typedefs
--------------

.. doxygentypedef:: voidFuncPtr