diff options
author | isiora <none@example.com> | 2017-08-14 09:13:03 +0000 |
---|---|---|
committer | isiora <none@example.com> | 2017-08-14 09:13:03 +0000 |
commit | f4ed4a5891be97fa606c3954ce4b8d296a858b40 (patch) | |
tree | 519e6469df549c5c20e705497d5eb098dec813a6 /os/hal/ports/SAMA | |
parent | fe3c91591624417d083fae436e49c288f7c861a7 (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/hal/ports/SAMA/SAMA5D2x/sama_pmc.h | 8 |
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(); \
}
/** @} */
|