]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil/driverlib/pmap.c
Update MSP432 projects to use updated driver library files.
[freertos] / FreeRTOS / Demo / CORTEX_M4F_MSP432_LaunchPad_IAR_CCS_Keil / driverlib / pmap.c
index 98b4530455c5804684e5229f12668e0eb604bc34..c1568b3dfb25eeeaf8294143cae7da2a6cf72e38 100644 (file)
@@ -1,10 +1,10 @@
 /*
  * -------------------------------------------
- *    MSP432 DriverLib - v01_04_00_18 
+ *    MSP432 DriverLib - v3_10_00_09 
  * -------------------------------------------
  *
  * --COPYRIGHT--,BSD,BSD
- * Copyright (c) 2015, Texas Instruments Incorporated
+ * Copyright (c) 2014, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * --/COPYRIGHT--*/
 #include <debug.h>
 #include <pmap.h>
+#include <hw_memmap.h>
 
 void PMAP_configurePorts(const uint8_t *portMapping, uint8_t pxMAPy,
         uint8_t numberOfPorts, uint8_t portMapReconfigure)
 {
-         uint16_t i;
+    uint_fast16_t i;
 
     ASSERT(
             (portMapReconfigure == PMAP_ENABLE_RECONFIGURATION)
                     || (portMapReconfigure == PMAP_DISABLE_RECONFIGURATION));
 
     //Get write-access to port mapping registers:
-    PMAP->rKEYID = PMAP_KEYID_VAL;
+    PMAP->KEYID = PMAP_KEYID_VAL;
 
     //Enable/Disable reconfiguration during runtime
-    PMAP->rCTL.r = (PMAP->rCTL.r & ~PMAPRECFG) | portMapReconfigure;
+    PMAP->CTL = (PMAP->CTL & ~PMAP_CTL_PRECFG) | portMapReconfigure;
 
     //Configure Port Mapping:
     
@@ -60,6 +61,6 @@ void PMAP_configurePorts(const uint8_t *portMapping, uint8_t pxMAPy,
     }
 
     //Disable write-access to port mapping registers:
-    PMAP->rKEYID = 0;
+    PMAP->KEYID = 0;
 }