aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA/SAMA5D2x
diff options
context:
space:
mode:
authorisiora <none@example.com>2017-08-14 09:13:03 +0000
committerisiora <none@example.com>2017-08-14 09:13:03 +0000
commitf4ed4a5891be97fa606c3954ce4b8d296a858b40 (patch)
tree519e6469df549c5c20e705497d5eb098dec813a6 /os/hal/ports/SAMA/SAMA5D2x
parentfe3c91591624417d083fae436e49c288f7c861a7 (diff)
downloadChibiOS-f4ed4a5891be97fa606c3954ce4b8d296a858b40.tar.gz
ChibiOS-f4ed4a5891be97fa606c3954ce4b8d296a858b40.tar.bz2
ChibiOS-f4ed4a5891be97fa606c3954ce4b8d296a858b40.zip
Fixed disable/enable macro.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10426 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/SAMA/SAMA5D2x')
-rw-r--r--os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h b/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h
index b26cdad27..4407c62e5 100644
--- a/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h
+++ b/os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h
@@ -78,7 +78,7 @@
#define pmcEnablePidLow(mask) { \
pmcDisableWP(); \
PMC->PMC_PCER0 |= (mask); \
- pmcDisableWP(); \
+ pmcEnableWP(); \
}
/**
@@ -92,7 +92,7 @@
#define pmcDisablePidLow(mask) { \
pmcDisableWP(); \
PMC->PMC_PCDR0 |= (mask); \
- pmcDisableWP(); \
+ pmcEnableWP(); \
}
/**
@@ -106,7 +106,7 @@
#define pmcEnablePidHigh(mask) { \
pmcDisableWP(); \
PMC->PMC_PCER1 |= (mask); \
- pmcDisableWP(); \
+ pmcEnableWP(); \
}
/**
@@ -120,7 +120,7 @@
#define pmcDisablePidHigh(mask) { \
pmcDisableWP(); \
PMC->PMC_PCDR1 |= (mask); \
- pmcDisableWP(); \
+ pmcEnableWP(); \
}
/** @} */