MSP430 DriverLib for MSP430F5xx_6xx Devices  2.91.13.01
pmap.h
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 //
28 //! \brief Used in the PMAP_initPorts() function as the param parameter.
29 //
30 //*****************************************************************************
31 typedef struct PMAP_initPortsParam {
32  //! Is the pointer to init Data
33  const uint8_t* portMapping;
34  //! Is the pointer start of first PMAP to initialize
35  uint8_t* PxMAPy;
36  //! Is the number of Ports to initialize
37  uint8_t numberOfPorts;
38  //! Is used to enable/disable reconfiguration
39  //! \n Valid values are:
40  //! - \b PMAP_ENABLE_RECONFIGURATION
41  //! - \b PMAP_DISABLE_RECONFIGURATION [Default]
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 //
63 //! \brief This function configures the MSP430 Port Mapper
64 //!
65 //! This function port maps a set of pins to a new set.
66 //!
67 //!
68 //! Modified bits of \b PMAPKETID register and bits of \b PMAPCTL register.
69 //!
70 //! \return None
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__
const uint8_t * portMapping
Is the pointer to init Data.
Definition: pmap.h:33
Used in the PMAP_initPorts() function as the param parameter.
Definition: pmap.h:31
void PMAP_initPorts(uint16_t baseAddress, PMAP_initPortsParam *param)
This function configures the MSP430 Port Mapper.
Definition: pmap.c:21
uint8_t numberOfPorts
Is the number of Ports to initialize.
Definition: pmap.h:37
uint8_t * PxMAPy
Is the pointer start of first PMAP to initialize.
Definition: pmap.h:35
uint8_t portMapReconfigure
Definition: pmap.h:42

Copyright 2020, Texas Instruments Incorporated