mbed library sources

Fork of mbed-src by mbed official

Revision:
443:ed48b4122bfb
Parent:
409:a95c696104d3
Child:
617:3b0e8f440867
--- a/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pinmap.c	Thu Jan 08 12:00:08 2015 +0000
+++ b/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pinmap.c	Mon Jan 12 08:15:07 2015 +0000
@@ -31,7 +31,6 @@
             *PMC(n) &= ~bitmask;
         } else {
             // alt-function mode
-            *PMC(n) |= bitmask;
             --function;
 
             if (function & (1 << 2)) { *PFCAE(n) |= bitmask;}else  { *PFCAE(n) &= ~bitmask;}
@@ -42,6 +41,7 @@
             if (P1_0 <= pin && pin <= P1_7 && function == 0) {
                 *PBDC(n) |= bitmask;
             }
+            *PMC(n) |= bitmask;
         }
     } else {
         gpio_multi_guard = (PinName)NC;