diff options
Diffstat (limited to 'ports/ARM7-LPC214x/lpc214x_ssp.c')
-rw-r--r-- | ports/ARM7-LPC214x/lpc214x_ssp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/ARM7-LPC214x/lpc214x_ssp.c b/ports/ARM7-LPC214x/lpc214x_ssp.c index 43c4100bc..00db41cbf 100644 --- a/ports/ARM7-LPC214x/lpc214x_ssp.c +++ b/ports/ARM7-LPC214x/lpc214x_ssp.c @@ -25,6 +25,7 @@ */
#include <ch.h>
+#include <ioports.h>
#include "lpc214x.h"
#include "lpc214x_ssp.h"
@@ -43,7 +44,7 @@ void sspAcquireBus(void) { #if LPC214x_SSP_USE_MUTEX
chSemWait(&me);
#endif
- IO0CLR = 1 << 20;
+ chPortClear(IOPORT_A, (1 << 20));
}
/**
@@ -53,7 +54,7 @@ void sspAcquireBus(void) { */
void sspReleaseBus(void) {
- IO0SET = 1 << 20;
+ chPortSet(IOPORT_A, (1 << 20));
#if LPC214x_SSP_USE_MUTEX
chSemSignal(&me);
#endif
|