Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MMA8452Q by
MSS.h
00001 #ifndef _MSS_H_ 00002 #define _MSS_H_ 00003 00004 #if defined (TARGET_KL25Z) 00005 /* I2C */ 00006 #define PIN_SCL PTE1 00007 #define PIN_SDA PTE0 00008 /* SPI */ 00009 #define PIN_SCK PTD1 00010 #define PIN_MISO PTD3 00011 #define PIN_MOSI PTD2 00012 #define PIN_CS0 PTD0 00013 /* Interrupt */ 00014 #define PIN_INT0 PTD5 00015 #define PIN_INT1 PTA13 00016 #define PIN_INT2 PTC9 /* This pin does not support interrupt */ 00017 #define PIN_INT3 PTC8 /* This pin does not support interrupt */ 00018 #define PIN_INT4 PTA5 00019 #define PIN_INT5 PTA4 00020 /* Analog Input */ 00021 #define PIN_AN0 PTB0 00022 #define PIN_AN1 PTB1 00023 #define PIN_AN2 PTB2 00024 #define PIN_AN3 PTB3 00025 #define PIN_AN4 PTC2 00026 #define PIN_AN5 PTC1 00027 #define BOARD_NAME "FRDM-KL25Z" 00028 00029 #elif defined (TARGET_KL46Z) 00030 /* I2C */ 00031 #define PIN_SCL PTE1 00032 #define PIN_SDA PTE0 00033 /* SPI */ 00034 #define PIN_SCK PTD5 00035 #define PIN_MISO PTD7 00036 #define PIN_MOSI PTD6 00037 #define PIN_CS0 PTD4 00038 /* Interrupt */ 00039 #define PIN_INT0 PTD2 00040 #define PIN_INT1 PTA13 00041 #define PIN_INT2 PTC9 /* This pin does not support interrupt */ 00042 #define PIN_INT3 PTC8 /* This pin does not support interrupt */ 00043 #define PIN_INT4 PTA5 00044 #define PIN_INT5 PTA4 00045 /* Analog Input */ 00046 #define PIN_AN0 PTB0 00047 #define PIN_AN1 PTB1 00048 #define PIN_AN2 PTB2 00049 #define PIN_AN3 PTB3 00050 #define PIN_AN4 PTC2 00051 #define PIN_AN5 PTC1 00052 #define BOARD_NAME "FRDM-KL46Z" 00053 00054 #elif defined (TARGET_K64F) 00055 /* I2C */ 00056 #define PIN_SCL PTE24 00057 #define PIN_SDA PTE25 00058 /* SPI */ 00059 #define PIN_SCK PTD1 00060 #define PIN_MISO PTD3 00061 #define PIN_MOSI PTD2 00062 #define PIN_CS0 PTD0 00063 /* Interrupt */ 00064 #define PIN_INT0 PTC4 00065 #define PIN_INT1 PTA0 00066 #define PIN_INT2 PTC3 00067 #define PIN_INT3 PTC2 00068 #define PIN_INT4 PTA2 00069 #define PIN_INT5 PTB23 00070 /* Analog Input */ 00071 #define PIN_AN0 PTB2 00072 #define PIN_AN1 PTB3 00073 #define PIN_AN2 PTB10 00074 #define PIN_AN3 PTB11 00075 #define PIN_AN4 PTC11 00076 #define PIN_AN5 PTC10 00077 #define BOARD_NAME "FRDM-K64Z" 00078 00079 /** 00080 * NOTE: On FRDM-K22F 00081 * Both I2C and UART are assigned to 00082 * the same pins PTE1/PTE0. 00083 * So MSS does not work as is. 00084 */ 00085 #elif defined (TARGET_K22F) 00086 /* I2C */ 00087 #define PIN_SCL PTE1 00088 #define PIN_SDA PTE0 00089 /* SPI */ 00090 #define PIN_SCK PTD5 00091 #define PIN_MISO PTD7 00092 #define PIN_MOSI PTD6 00093 #define PIN_CS0 PTD4 00094 /* Interrupt */ 00095 #define PIN_INT0 PTA1 00096 #define PIN_INT1 PTB19 00097 #define PIN_INT2 PTC6 00098 #define PIN_INT3 PTC3 00099 #define PIN_INT4 PTB18 00100 #define PIN_INT5 PTA4 00101 /* Analog Input */ 00102 #define PIN_AN0 PTB0 00103 #define PIN_AN1 PTB1 00104 #define PIN_AN2 PTC1 00105 #define PIN_AN3 PTC2 00106 #define PIN_AN4 PTB3 00107 #define PIN_AN5 PTB2 00108 #define BOARD_NAME "FRDM-K22F" 00109 00110 #elif defined (TARGET_KL05Z) 00111 /* I2C */ 00112 #define PIN_SCL PTB3 00113 #define PIN_SDA PTB4 00114 /* SPI */ 00115 #define PIN_SCK PTB0 00116 #define PIN_MISO PTA6 00117 #define PIN_MOSI PTA7 00118 #define PIN_CS0 PTA5 00119 /* Interrupt */ 00120 #define PIN_INT0 PTB11 00121 #define PIN_INT1 PTB10 00122 #define PIN_INT2 PTB7 00123 #define PIN_INT3 PTB6 00124 #define PIN_INT4 PTA12 00125 #define PIN_INT5 PTA10 00126 /* Analog Input */ 00127 #define PIN_AN0 PTB8 00128 #define PIN_AN1 PTB9 00129 #define PIN_AN2 PTA8 00130 #define PIN_AN3 PTA0 00131 #define PIN_AN4 PTA9 00132 #define PIN_AN5 PTB13 00133 #define BOARD_NAME "FRDM-KL05Z" 00134 00135 #elif defined (TARGET_F411RE) 00136 /* I2C */ 00137 #define PIN_SCL PB_8 00138 #define PIN_SDA PB_9 00139 /* SPI */ 00140 #define PIN_SCK PA_5 00141 #define PIN_MISO PA_6 00142 #define PIN_MOSI PA_7 00143 #define PIN_CS0 PB_6 00144 /* Interrupt */ 00145 #define PIN_INT0 PC_7 00146 #define PIN_INT1 PA_9 00147 #define PIN_INT2 PA_8 00148 #define PIN_INT3 PB_10 00149 #define PIN_INT4 PB_4 00150 #define PIN_INT5 PB_5 00151 /* Analog In */ 00152 #define PIN_AN0 PA_0 00153 #define PIN_AN1 PA_1 00154 #define PIN_AN2 PA_4 00155 #define PIN_AN3 PB_0 00156 #define PIN_AN4 PC_1 00157 #define PIN_AN5 PC_0 00158 #define BOARD_NAME "NUCLEO-F411RE" 00159 00160 #elif defined (TARGET_LPC812) 00161 /* I2C */ 00162 #define PIN_SCL P0_11 00163 #define PIN_SDA P0_10 00164 /* SPI */ 00165 #define PIN_SCK P0_12 00166 #define PIN_MISO P0_15 00167 #define PIN_MOSI P0_14 00168 #define PIN_CS0 P0_13 00169 /* Interrupt */ 00170 #define PIN_INT0 P0_16 00171 #define PIN_INT1 P0_17 00172 #define PIN_INT2 P0_7 00173 #define PIN_INT3 XP_4 00174 #define PIN_INT4 XP_5 00175 #define PIN_INT5 P0_9 00176 /* Analog In */ 00177 #define PIN_AN0 A0 00178 #define PIN_AN1 A1 00179 #define PIN_AN2 A2 00180 #define PIN_AN3 A3 00181 #define PIN_AN4 A4 00182 #define PIN_AN5 A5 00183 /* MSS on board LEDs */ 00184 #define LED_D1 P0_12 00185 #define LED_D2 P0_15 00186 #define LED_D3 P0_14 00187 #define LED_D4 P0_13 00188 #define LED_D5 P0_8 00189 #define LED_D6 P0_6 00190 #define LED_D7 P0_4 00191 #define LED_D8 P0_0 00192 #define BOARD_NAME "NXP_LPC800MAX" 00193 00194 #else 00195 // #error TARGET NOT DEFINED 00196 /* I2C */ 00197 #define PIN_SCL P1_2 00198 #define PIN_SDA P1_3 00199 ///* SPI */ 00200 //#define PIN_SCK D13 00201 //#define PIN_MISO D12 00202 //#define PIN_MOSI D11 00203 //#define PIN_CS0 D10 00204 ///* Interrupt */ 00205 //#define PIN_INT0 D9 00206 //#define PIN_INT1 D8 00207 //#define PIN_INT2 D7 00208 //#define PIN_INT3 D6 00209 //#define PIN_INT4 D5 00210 //#define PIN_INT5 D4 00211 ///* Analog In */ 00212 //#define PIN_AN0 A0 00213 //#define PIN_AN1 A1 00214 //#define PIN_AN2 A2 00215 //#define PIN_AN3 A3 00216 //#define PIN_AN4 A4 00217 //#define PIN_AN5 A5 00218 ///* MSS on board LEDs */ 00219 //#define LED_D1 D13 00220 //#define LED_D2 D12 00221 //#define LED_D3 D11 00222 //#define LED_D4 D10 00223 //#define LED_D5 D3 00224 //#define LED_D6 D2 00225 //#define LED_D7 D1 00226 //#define LED_D8 D0 00227 00228 #endif 00229 00230 #endif /* _MSS_H_ */
Generated on Wed Jul 20 2022 07:09:01 by
1.7.2
