Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
ssp_hw.h
Go to the documentation of this file.
1 #ifndef SSP_HW_H
2 #define SSP_HW_H
3 
4 #include "LPC21xx.h"
5 
6 #define SSP_Enable() SetBit(SSPCR1, SSE);
7 #define SSP_Disable() ClearBit(SSPCR1, SSE);
8 #define SSP_EnableRxi() SetBit(SSPIMSC, RXIM)
9 #define SSP_DisableRxi() ClearBit(SSPIMSC, RXIM)
10 #define SSP_EnableTxi() SetBit(SSPIMSC, TXIM)
11 #define SSP_DisableTxi() ClearBit(SSPIMSC, TXIM)
12 #define SSP_EnableRti() SetBit(SSPIMSC, RTIM);
13 #define SSP_DisableRti() ClearBit(SSPIMSC, RTIM);
14 #define SSP_ClearRti() SetBit(SSPICR, RTIC);
15 
16 #define SSP_Send(_a) {SSPDR = (_a);}
17 
18 #endif /* SSP_HW_H */
19 
LPC21xx.h