diff options
Diffstat (limited to 'ports/ARM7-LPC214x/GCC/lpc214x_ssp.h')
-rw-r--r-- | ports/ARM7-LPC214x/GCC/lpc214x_ssp.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/ports/ARM7-LPC214x/GCC/lpc214x_ssp.h b/ports/ARM7-LPC214x/GCC/lpc214x_ssp.h index 093edc952..c7b4bcbdd 100644 --- a/ports/ARM7-LPC214x/GCC/lpc214x_ssp.h +++ b/ports/ARM7-LPC214x/GCC/lpc214x_ssp.h @@ -20,16 +20,17 @@ #ifndef _LPC214x_SSP_H_
#define _LPC214x_SSP_H_
-#define SSP_OK RDY_OK
-#define SSP_RUNNING -3
-
-typedef void (*t_sspnotify)(void *par);
+/*
+ * Configuration parameter, if defined this macro enforces mutual exclusion
+ * when invoking \p sspAcquireBus() and \p sspReleaseBus().
+ */
+#define SSP_USE_MUTEX
void InitSSP(void);
-void SetSSPI(int cpsr, int cr0, int cr1);
-void SSPIrqHandler(void);
+void SetSSP(int cpsr, int cr0, int cr1);
-t_msg sspRWI(BYTE8 *in, BYTE8 *out, t_size n, t_sspnotify fn, void *par);
-BOOL sspIsRunningI(void);
+void sspAcquireBus(void);
+void sspReleaseBus(void);
+void sspRW(BYTE8 *in, BYTE8 *out, t_size n);
#endif /* _LPC214x_SSP_H_*/
|