Defines | Functions
pmap.h File Reference

Go to the source code of this file.

Defines

#define __MSP430_HAS_PORT_MAPPING__
#define PMAP_ENABLE_RECONFIGURATION   PMAPRECFG
#define PMAP_DISABLE_RECONFIGURATION   0x00

Functions

void PMAP_configurePorts (unsigned int baseAddress, const unsigned char *portMapping, unsigned char *PxMAPy, unsigned char numberOfPorts, unsigned char portMapReconfigure)

Define Documentation

#define __MSP430_HAS_PORT_MAPPING__
#define PMAP_ENABLE_RECONFIGURATION   PMAPRECFG

Referenced by PMAP_configurePorts().

#define PMAP_DISABLE_RECONFIGURATION   0x00

Referenced by PMAP_configurePorts().


Function Documentation

void PMAP_configurePorts ( unsigned int  baseAddress,
const unsigned char *  portMapping,
unsigned char *  PxMAPy,
unsigned char  numberOfPorts,
unsigned char  portMapReconfigure 
)

This function configures the MSP430 Port Mapper

Parameters:
baseAddressis the base address of the Port Mapper module.
portMappingis the pointer to init Data
PxMAPyis the pointer start of first Port Mapper to initialize
numberOfPortsis the number of Ports to initialize
portMapReconfigureis used to enable/disable reconfiguration Valid values are PMAP_ENABLE_RECONFIGURATION PMAP_DISABLE_RECONFIGURATION [Default value] Modified registers are PMAPKEYID, PMAPCTL
Returns:
None

References ASSERT, HWREG, HWREGB, PMAP_DISABLE_RECONFIGURATION, and PMAP_ENABLE_RECONFIGURATION.


Copyright 2012, Texas Instruments Incorporated