![](/media/cache/group/IMG_1289.JPG.50x50_q85.jpg)
Test program for FXAS21002
Dependencies: FXAS21002 mbed vt100
Diff: MSS.h
- Revision:
- 2:551b32d38161
- Parent:
- 0:5306d38db3c9
--- a/MSS.h Fri Jul 22 08:33:39 2016 +0000 +++ b/MSS.h Mon Apr 24 02:46:41 2017 +0000 @@ -99,12 +99,16 @@ #define PIN_MOSI PTD6 #define PIN_CS0 PTD4 /* Interrupt */ -#define PIN_INT0 PTA1 -#define PIN_INT1 PTB19 -#define PIN_INT2 PTC6 -#define PIN_INT3 PTC3 -#define PIN_INT4 PTB18 -#define PIN_INT5 PTA4 +//#define PIN_INT0 PTA1 +//#define PIN_INT1 PTB19 +//#define PIN_INT2 PTC6 +//#define PIN_INT3 PTC3 +//#define PIN_INT4 PTB18 +//#define PIN_INT5 PTA4 +#define PIN_INT0 PTB16 +#define PIN_INT1 PTB17 +#define PIN_INT2 PTB18 +#define PIN_INT3 PTB19 /* Analog Input */ #define PIN_AN0 PTB0 #define PIN_AN1 PTB1 @@ -112,7 +116,8 @@ #define PIN_AN3 PTC2 // #define PIN_AN4 PTB3 // #define PIN_AN5 PTB2 -#define BOARD_NAME "FRDM-K22F" +// #define BOARD_NAME "FRDM-K22F" +#define BOARD_NAME "f-shaft-II" #elif defined (TARGET_KL05Z) /* I2C */ @@ -139,7 +144,7 @@ #define PIN_AN5 PTB13 #define BOARD_NAME "FRDM-KL05Z" -#elif define (TARGET_F411RE) +#elif defined (TARGET_F411RE) /* I2C */ #define PIN_SCL PB_8 #define PIN_SDA PB_9 @@ -164,6 +169,31 @@ #define PIN_AN5 PC_0 #define BOARD_NAME "NUCLEO-F411RE" +#elif defined (TARGET_MAX32600MBED) +/* I2C */ +#define PIN_SCL P2_7 +#define PIN_SDA P2_6 +/* SPI */ +#define PIN_SCK P2_0 +#define PIN_MISO P2_2 +#define PIN_MOSI P2_1 +#define PIN_CS0 P2_3 +/* Interrupt */ +#define PIN_INT0 P2_4 +#define PIN_INT1 P2_5 +#define PIN_INT2 P1_7 +#define PIN_INT3 P1_6 +#define PIN_INT4 P1_5 +#define PIN_INT5 P1_4 +/* Analog In */ +#define PIN_AN0 AIN_0P +#define PIN_AN1 AIN_1P +#define PIN_AN2 AIN_2P +#define PIN_AN3 AIN_3P +#define PIN_AN4 AIN_4P +#define PIN_AN5 AIN_5P +#define BOARD_NAME "MAX32600MBED" + #else #error TARGET NOT DEFINED /* I2C */ @@ -198,6 +228,8 @@ #define LED_D7 D1 #define LED_D8 D0 + + #endif #endif /* _MSS_H_ */ \ No newline at end of file