2020-2021 Sunseeker Telemetry and Lighting System
pmap.h
Go to the documentation of this file.
1 //*****************************************************************************
2 //
3 // pmap.h - Driver for the PMAP Module.
4 //
5 //*****************************************************************************
6 
7 #ifndef __MSP430WARE_PMAP_H__
8 #define __MSP430WARE_PMAP_H__
9 
10 #include "inc/hw_memmap.h"
11 
12 #ifdef __MSP430_HAS_PORT_MAPPING__
13 
14 //*****************************************************************************
15 //
16 // If building with a C++ compiler, make all of the definitions in this header
17 // have a C binding.
18 //
19 //*****************************************************************************
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24 
25 #include "inc/hw_memmap.h"
26 //*****************************************************************************
27 //
29 //
30 //*****************************************************************************
31 typedef struct PMAP_initPortsParam {
33  const uint8_t* portMapping;
35  uint8_t* PxMAPy;
37  uint8_t numberOfPorts;
42  uint8_t portMapReconfigure;
43 } PMAP_initPortsParam;
44 
45 
46 //*****************************************************************************
47 //
48 // The following are values that can be passed to the param parameter for
49 // functions: PMAP_initPorts().
50 //
51 //*****************************************************************************
52 #define PMAP_ENABLE_RECONFIGURATION PMAPRECFG
53 #define PMAP_DISABLE_RECONFIGURATION 0x00
54 
55 //*****************************************************************************
56 //
57 // Prototypes for the APIs.
58 //
59 //*****************************************************************************
60 
61 //*****************************************************************************
62 //
71 //
72 //*****************************************************************************
73 extern void PMAP_initPorts(uint16_t baseAddress,
74  PMAP_initPortsParam *param);
75 
76 //*****************************************************************************
77 //
78 // Mark the end of the C bindings section for C++ compilers.
79 //
80 //*****************************************************************************
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif
86 #endif // __MSP430WARE_PMAP_H__
MPU_initThreeSegmentsParam param