29 #define ADS8344_SS_IODIR IO0DIR
30 #define ADS8344_SS_IOSET IO0SET
31 #define ADS8344_SS_IOCLR IO0CLR
32 #define ADS8344_SS_PIN 20
34 #define ADS8344Select() SetBit(ADS8344_SS_IOCLR,ADS8344_SS_PIN)
35 #define ADS8344Unselect() SetBit(ADS8344_SS_IOSET,ADS8344_SS_PIN)
37 #define POWER_MODE (1 << 1 | 1)
38 #define SGL_DIF 1 // Single ended
41 #define SSP_DSS 0x07 << 0
42 #define SSP_FRF 0x00 << 4
43 #define SSP_CPOL 0x00 << 6
44 #define SSP_CPHA 0x00 << 7
45 #define SSP_SCR 0x09 << 8
48 #define SSP_LBM 0x00 << 0
49 #define SSP_SSE 0x00 << 1
50 #define SSP_MS 0x00 << 2
51 #define SSP_SOD 0x00 << 3
53 static void SPI1_ISR(
void) __attribute__((naked));
56 #warning "This driver should be updated to use the new SPI peripheral"
63 PINSEL1 |= 2 << 2 | 2 << 4 | 2 << 6;
115 if (channel > 7 - 1) {
uint16_t ADS8344_values[NB_CHANNELS]
static void send_request(void)
Inertial Measurement Unit interface.
static void SPI1_ISR(void)
void imu_crista_arch_init(void)
#define ADS8344Unselect()
static void read_values(void)