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 <msp.h>
24 
25 //*****************************************************************************
26 //
27 //The following are values that can be passed to the PMAP_configurePorts() API
28 //as the portMapReconfigure parameter.
29 //
30 //*****************************************************************************
31 #define PMAP_ENABLE_RECONFIGURATION PMAP_CTL_PRECFG
32 #define PMAP_DISABLE_RECONFIGURATION 0x00
33 
34 //*****************************************************************************
35 //
36 //The following are values that can be passed to the PMAP_configurePorts() API
37 //as the portMapReconfigure parameter.
38 //
39 //*****************************************************************************
40 #define PMAP_P1MAP ((uint32_t)P1MAP - PMAP_BASE)
41 #define PMAP_P2MAP ((uint32_t)P2MAP - PMAP_BASE)
42 #define PMAP_P3MAP ((uint32_t)P3MAP - PMAP_BASE)
43 #define PMAP_P4MAP ((uint32_t)P4MAP - PMAP_BASE)
44 #define PMAP_P5MAP ((uint32_t)P5MAP - PMAP_BASE)
45 #define PMAP_P6MAP ((uint32_t)P6MAP - PMAP_BASE)
46 #define PMAP_P7MAP ((uint32_t)P7MAP - PMAP_BASE)
47 
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:5

Copyright 2016, Texas Instruments Incorporated