pmap.h
Go to the documentation of this file.
1 #ifndef __PMAP_H__
2 #define __PMAP_H__
3 
4 //*****************************************************************************
5 //
8 //
9 //*****************************************************************************
10 
11 //*****************************************************************************
12 //
13 // If building with a C++ compiler, make all of the definitions in this header
14 // have a C binding.
15 //
16 //*****************************************************************************
17 #ifdef __cplusplus
18 extern "C"
19 {
20 #endif
21 
22 #include <stdint.h>
23 #include "register_remap.h"
24 #include <msp432.h>
25 
26 //*****************************************************************************
27 //
28 //The following are values that can be passed to the PMAP_configurePorts() API
29 //as the portMapReconfigure parameter.
30 //
31 //*****************************************************************************
32 #define PMAP_ENABLE_RECONFIGURATION PMAPRECFG
33 #define PMAP_DISABLE_RECONFIGURATION 0x00
34 
35 //*****************************************************************************
36 //
37 //The following are values that can be passed to the PMAP_configurePorts() API
38 //as the portMapReconfigure parameter.
39 //
40 //*****************************************************************************
41 #define P1MAP OFS_PMAP_P1MAP0
42 #define P2MAP OFS_PMAP_P2MAP0
43 #define P3MAP OFS_PMAP_P3MAP0
44 #define P4MAP OFS_PMAP_P4MAP0
45 #define P5MAP OFS_PMAP_P5MAP0
46 #define P6MAP OFS_PMAP_P6MAP0
47 #define P7MAP OFS_PMAP_P7MAP0
48 
49 //*****************************************************************************
50 //
51 //Prototypes for the APIs.
52 //
53 //*****************************************************************************
54 
55 //*****************************************************************************
56 //
69 //
70 //*****************************************************************************
71 extern void PMAP_configurePorts(const uint8_t *portMapping, uint8_t pxMAPy,
72  uint8_t numberOfPorts, uint8_t portMapReconfigure);
73 
74 /* Defines for future devices that might have multiple instances */
75 #define PMAP_configurePortsMultipleInstance(a,b,c,d,e) PMAP_configurePorts(b,c,d,e)
76 
77 //*****************************************************************************
78 //
79 // Mark the end of the C bindings section for C++ compilers.
80 //
81 //*****************************************************************************
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 //*****************************************************************************
87 //
88 // Close the Doxygen group.
90 //
91 //*****************************************************************************
92 
93 #endif
void PMAP_configurePorts(const uint8_t *portMapping, uint8_t pxMAPy, uint8_t numberOfPorts, uint8_t portMapReconfigure)
Definition: pmap.c:4

Copyright 2014, Texas Instruments Incorporated