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.
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 define (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 #else 00161 #error TARGET NOT DEFINED 00162 /* I2C */ 00163 #define PIN_SCL D15 00164 #define PIN_SDA D14 00165 /* SPI */ 00166 #define PIN_SCK D13 00167 #define PIN_MISO D12 00168 #define PIN_MOSI D11 00169 #define PIN_CS0 D10 00170 /* Interrupt */ 00171 #define PIN_INT0 D9 00172 #define PIN_INT1 D8 00173 #define PIN_INT2 D7 00174 #define PIN_INT3 D6 00175 #define PIN_INT4 D5 00176 #define PIN_INT5 D4 00177 /* Analog In */ 00178 #define PIN_AN0 A0 00179 #define PIN_AN1 A1 00180 #define PIN_AN2 A2 00181 #define PIN_AN3 A3 00182 #define PIN_AN4 A4 00183 #define PIN_AN5 A5 00184 /* MSS on board LEDs */ 00185 #define LED_D1 D13 00186 #define LED_D2 D12 00187 #define LED_D3 D11 00188 #define LED_D4 D10 00189 #define LED_D5 D3 00190 #define LED_D6 D2 00191 #define LED_D7 D1 00192 #define LED_D8 D0 00193 00194 #endif 00195 00196 #endif /* _MSS_H_ */
Generated on Tue Jul 12 2022 16:12:42 by
