Modified for compatibility with Rev.E. hardware

Fork of AkmSensor by AKM Development Platform

Revision:
43:45225713cd58
Parent:
41:a3ea80c594ec
Child:
45:6af8fdde0ef3
--- a/akmsensor.h	Fri Nov 03 19:45:33 2017 +0000
+++ b/akmsensor.h	Wed Nov 08 21:56:17 2017 +0000
@@ -1,34 +1,13 @@
 #ifndef AKMSENSOR_H
 #define AKMSENSOR_H
 
+#include "akdphwinfo.h"
 #include "mbed.h"
 #include "Message.h"
-//#include "debug.h"
-
-// SPI Pin Number Definitions
-#define SPI_SCK                          P0_8       // SPI, SCK 
-#define SPI_MISO                         P0_9       // SPI, MISO
-#define SPI_MOSI                         P0_10      //SPI, MOSI
-#define SPI_CS                           P0_11      //SPI, CS
-#define SPI_DRDY                         P0_7       //SPI, DRDY
-#define SPI_SPEED                        1000000    // 
-// I2C Pin Number Definitions
-#define I2C_SCL                          P0_8       //I2C, SCL
-#define I2C_SDA                          P0_10      //I2C, SDA
-#define I2C_DRDY                         P0_11
-#define I2C_SPEED                        400000     // From RevD7.016
-
-// Digital Port Pin Number Definitions
-#define DIGITAL_D0                       P0_11      
-#define DIGITAL_D1                       P0_9
-
-// DRDY Port Pin Number Definitions
-
-// Analog In Pin Number Definitions
-#define ANALOG_IN_PIN                    P0_5       //P05
+#include "akdp_debug.h"
 
 // Sampling rate for ADC
-#define SENSOR_SAMPLING_RATE            0.1         // 10Hz
+#define SENSOR_SAMPLING_RATE             0.1        // 10Hz
 
 /**
  * Abstract base class for general AKM sensors.