summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/kinetis/chip.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-08-06 00:29:57 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-08-06 00:29:57 +0000
commit74b1bdf08eac463c35d6469e3bf5cc0cd6953208 (patch)
tree0ad51b8fdb851e4d47b88a8ac09580bdff632735 /nuttx/arch/arm/src/kinetis/chip.h
parentdc0299c4649815ba8b5740fc8b211dad1d7bc3bd (diff)
downloadpx4-nuttx-74b1bdf08eac463c35d6469e3bf5cc0cd6953208.tar.gz
px4-nuttx-74b1bdf08eac463c35d6469e3bf5cc0cd6953208.tar.bz2
px4-nuttx-74b1bdf08eac463c35d6469e3bf5cc0cd6953208.zip
First cut at Kinesis chip capabilities (lots of errors)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3847 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/kinetis/chip.h')
-rwxr-xr-xnuttx/arch/arm/src/kinetis/chip.h735
1 files changed, 729 insertions, 6 deletions
diff --git a/nuttx/arch/arm/src/kinetis/chip.h b/nuttx/arch/arm/src/kinetis/chip.h
index 18ff0a00e..1cfae0d99 100755
--- a/nuttx/arch/arm/src/kinetis/chip.h
+++ b/nuttx/arch/arm/src/kinetis/chip.h
@@ -48,16 +48,739 @@
/* Get customizations for each supported chip */
-#if defined(CONFIG_ARCH_CHIP_K40X256VLQ100)
+#if defined(CONFIG_ARCH_CHIP_K40X64VFX50) || defined(CONFIG_ARCH_CHIP_K40X64VLH50) \
+ defined(CONFIG_ARCH_CHIP_K40X64VLK50) || defined(CONFIG_ARCH_CHIP_K40X64VMB50)
+# define KINETIS_FLASH_SIZE (64*1024) /* 64Kb */
+# define KINETIS_FLEXMEM_SIZE (32*1024) /* 32Kb */
+# define KINETIS_SRAM_SIZE (16*1024) /* 16Kb */
+# undef KINETIS_MPU /* No memory protection unit */
+# undef KINETIS_EXTBUS /* No external bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# undef KINETIS_NETHERNET /* No Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# undef KINETIS_NSDHC /* No SD host controller */
+# undef KINETIS_NTOUCHIF /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 2 /* Two I2C modules */
+# undef KINETIS_NISO7816 /* No UART with ISO-786 */
+# define KINETIS_NUART 6 /* Six UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# if defined(CONFIG_ARCH_CHIP_K40X64VLK50) || defined(CONFIG_ARCH_CHIP_K40X64VMB50)
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# else
+# undef KINETIS_NCAN /* No CAN in 64-pin chips */
+# endif
+# define KINETIS_NI2S 1 /* One I2S module */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 25x8/29x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# undef KINETIS_NADC15 /* No 15-channel ADC */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 2 /* Two Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# define KINETIS_NDAC6 3 /* Three 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Two 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# undef KINETIS_NRNG /* No random number generator */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(CONFIG_ARCH_CHIP_K40X128VFX50) || defined(CONFIG_ARCH_CHIP_K40X128VLH50) \
+ defined(CONFIG_ARCH_CHIP_K40X128VLK50) || defined(CONFIG_ARCH_CHIP_K40X128VMB50) \
+ defined(CONFIG_ARCH_CHIP_K40X128VLL50) || defined(CONFIG_ARCH_CHIP_K40X128VML50) \
+ defined(CONFIG_ARCH_CHIP_K40X128VFX72) || defined(CONFIG_ARCH_CHIP_K40X128VLH72) \
+ defined(CONFIG_ARCH_CHIP_K40X128VLK72) || defined(CONFIG_ARCH_CHIP_K40X128VMB72) \
+ defined(CONFIG_ARCH_CHIP_K40X128VLL72) || defined(CONFIG_ARCH_CHIP_K40X128VML72)
+# define KINETIS_FLASH_SIZE (128*1024) /* 128Kb */
+# define KINETIS_FLEXMEM_SIZE (32*1024) /* 32Kb */
+# define KINETIS_SRAM_SIZE (32*1024) /* 32Kb */
+# undef KINETIS_MPU /* No memory protection unit */
+# undef KINETIS_EXTBUS /* No external bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# undef KINETIS_NETHERNET /* No Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# undef KINETIS_NSDHC /* No SD host controller */
+# undef KINETIS_NTOUCHIF /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 2 /* Two I2C modules */
+# undef KINETIS_NISO7816 /* No UART with ISO-786 */
+# define KINETIS_NUART 6 /* Six UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 1 /* One I2S module */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# undef KINETIS_NADC15 /* No 15-channel ADC */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 2 /* Two Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# define KINETIS_NDAC6 3 /* Three 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Two 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(CONFIG_ARCH_CHIP_K40X256VLK72) || defined(CONFIG_ARCH_CHIP_K40X256VMB72) \
+ defined(CONFIG_ARCH_CHIP_K40X256VLL72) || defined(CONFIG_ARCH_CHIP_K40X256VML72)
# define KINETIS_FLASH_SIZE (256*1024) /* 256Kb */
-# define KINETIS_SRAM_SIZE (256*1024) /* 64Kb */
-# undef KINETIS_NETHCONTROLLERS /* No Ethernet controller */
-# undef KINETIS_NUSBHOST /* No USB host controller */
-# undef KINETIS_NUSBOTG /* No USB OTG controller */
+# define KINETIS_FLEXMEM_SIZE (32*1024) /* 32Kb */
+# define KINETIS_SRAM_SIZE (32*1024) /* 64Kb */
+# undef KINETIS_MPU /* No memory protection unit */
+# undef KINETIS_EXTBUS /* No external bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# undef KINETIS_NETHERNET /* No Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# undef KINETIS_NSDHC /* No SD host controller */
+# undef KINETIS_NTOUCHIF /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 2 /* Two I2C modules */
+# undef KINETIS_NISO7816 /* No UART with ISO-786 */
+# define KINETIS_NUART 6 /* Six UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
# define KINETIS_NCAN 2 /* Two CAN controllers */
# define KINETIS_NI2S 1 /* One I2S module */
-# define KINETIS_NDAC 1 /* One DAC module */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# undef KINETIS_NADC15 /* No 15-channel ADC */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 2 /* Two Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# define KINETIS_NDAC6 3 /* Three 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Two 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(CONFIG_ARCH_CHIP_K40X128VLQ100) || defined(CONFIG_ARCH_CHIP_K40X128VMD100)
+# define KINETIS_FLASH_SIZE (128*1024) /* 128Kb */
+# define KINETIS_FLEXMEM_SIZE (128*1024) /* 128Kb */
+# define KINETIS_SRAM_SIZE (32*1024) /* 32Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# undef KINETIS_NETHERNET /* No Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* One SD host controller */
+# undef KINETIS_NTOUCHIF /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 2 /* Two I2C modules */
+# undef KINETIS_NISO7816 /* No UART with ISO-786 */
+# define KINETIS_NUART 6 /* Six UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 1 /* One I2S module */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 40x8/44x4)*/
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# undef KINETIS_NADC15 /* No 15-channel ADC */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 2 /* Two Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# define KINETIS_NDAC6 3 /* Three 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Two 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(CONFIG_ARCH_CHIP_K40X256VLQ100) || defined(CONFIG_ARCH_CHIP_K40X256VMD100)
+# define KINETIS_FLASH_SIZE (256*1024) /* 256Kb */
+# define KINETIS_FLEXMEM_SIZE (256*1024) /* 256Kb */
+# define KINETIS_SRAM_SIZE (64*1024) /* 32Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# undef KINETIS_NETHERNET /* No Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* One SD host controller */
+# undef KINETIS_NTOUCHIF /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 2 /* Two I2C modules */
+# undef KINETIS_NISO7816 /* No UART with ISO-786 */
+# define KINETIS_NUART 6 /* Six UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 1 /* One I2S module */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 40x8/44x4)*/
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# undef KINETIS_NADC15 /* No 15-channel ADC */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 2 /* Two Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# define KINETIS_NDAC6 3 /* Three 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Two 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(CONFIG_ARCH_CHIP_K40X512VLK100) || defined(CONFIG_ARCH_CHIP_K40X512VMB100) \
+ defined(CONFIG_ARCH_CHIP_K40X512VLL100) || defined(CONFIG_ARCH_CHIP_K40X512VML100) \
+ defined(CONFIG_ARCH_CHIP_K40X512VLQ100) || defined(CONFIG_ARCH_CHIP_K40X512VMD100)
+# define KINETIS_FLASH_SIZE (512*1024) /* 512Kb */
+# undef KINETIS_FLEXMEM_SIZE /* No FlexMemory */
+# define KINETIS_SRAM_SIZE (128*1024) /* 128Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# undef KINETIS_NETHERNET /* No Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* One SD host controller */
+# undef KINETIS_NTOUCHIF /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 2 /* Two I2C modules */
+# undef KINETIS_NISO7816 /* No UART with ISO-786 */
+# define KINETIS_NUART 6 /* Six UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 1 /* One I2S module */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 40x8/44x4)*/
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# undef KINETIS_NADC15 /* No 15-channel ADC */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 2 /* Two Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# define KINETIS_NDAC6 3 /* Three 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Two 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60N256VLL100)
+# define KINETIS_FLASH_SIZE (256*1024) /* 256Kb */
+# undef KINETIS_FLEXNVM_SIZE /* No FlexNVM */
+# undef KINETIS_FLEXRAM_SIZE /* No FlexRAM */
+# define KINETIS_SRAM_SIZE (64*1024) /* 64Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 4 /* Four additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# define KINETIS_NADC12 1 /* One 12-channel ADC (ADC0)*/
+# define KINETIS_NADC13 1 /* No 13-channel ADC (ADC1) */
+# undef KINETIS_NADC15 /* No 15-channel ADC */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 1 /* One 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60X256VLL100)
+# define KINETIS_FLASH_SIZE (256*1024) /* 256Kb */
+# define KINETIS_FLEXNVM_SIZE (256*1024) /* 256Kb */
+# define KINETIS_FLEXRAM_SIZE (4*1024) /* 32Kb */
+# define KINETIS_SRAM_SIZE (64*1024) /* 64Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 4 /* Four additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# define KINETIS_NADC12 1 /* One 12-channel ADC (ADC0)*/
+# define KINETIS_NADC13 1 /* No 13-channel ADC (ADC1) */
+# undef KINETIS_NADC15 /* No 15-channel ADC */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 1 /* One 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60N512VLL100)
+# define KINETIS_FLASH_SIZE (512*1024) /* 256Kb */
+# undef KINETIS_FLEXNVM_SIZE /* No FlexNVM */
+# undef KINETIS_FLEXRAM_SIZE /* No FlexRAM */
+# define KINETIS_SRAM_SIZE (128*1024) /* 128Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 4 /* Four additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# define KINETIS_NADC12 1 /* One 12-channel ADC (ADC0)*/
+# define KINETIS_NADC13 1 /* No 13-channel ADC (ADC1) */
+# undef KINETIS_NADC15 /* No 15-channel ADC */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 1 /* One 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60N256VML100)
+# define KINETIS_FLASH_SIZE (256*1024) /* 256Kb */
+# undef KINETIS_FLEXNVM_SIZE /* No FlexNVM */
+# undef KINETIS_FLEXRAM_SIZE /* No FlexRAM */
+# define KINETIS_SRAM_SIZE (64*1024) /* 64Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 4 /* Four additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# define KINETIS_NADC12 1 /* One 12-channel ADC (ADC0)*/
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# define KINETIS_NADC15 1 /* One 15-channel ADC (ADC1) */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 1 /* One 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60X256VML100)
+# define KINETIS_FLASH_SIZE (256*1024) /* 256Kb */
+# define KINETIS_FLEXNVM_SIZE (256*1024) /* 256Kb */
+# define KINETIS_FLEXRAM_SIZE (4*1024) /* 4Kb */
+# define KINETIS_SRAM_SIZE (64*1024) /* 64Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 4 /* Four additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# define KINETIS_NADC12 1 /* One 12-channel ADC (ADC0)*/
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# define KINETIS_NADC15 1 /* One 15-channel ADC (ADC1) */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 1 /* One 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60N512VML100)
+# define KINETIS_FLASH_SIZE (512*1024) /* 256Kb */
+# undef KINETIS_FLEXNVM_SIZE /* No FlexNVM */
+# undef KINETIS_FLEXRAM_SIZE /* No FlexRAM */
+# define KINETIS_SRAM_SIZE (128*1024) /* 128Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 4 /* Four additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# define KINETIS_NADC12 1 /* One 12-channel ADC (ADC0)*/
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# define KINETIS_NADC15 1 /* One 15-channel ADC (ADC1) */
+# undef KINETIS_NADC18 /* No 18-channel ADC */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 1 /* One 12-bit DAC */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60N256VLQ100)
+# define KINETIS_FLASH_SIZE (256*1024) /* 256Kb */
+# undef KINETIS_FLEXNVM_SIZE /* No FlexNVM */
+# undef KINETIS_FLEXRAM_SIZE /* No FlexRAM */
+# define KINETIS_SRAM_SIZE (64*1024) /* 64Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 5 /* Five additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# define KINETIS_NADC15 1 /* One 15-channel ADC (ADC0) */
+# define KINETIS_NADC18 1 /* One 18-channel ADC (ADC1) */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Twp 12-bit DACs */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60X256VLQ100)
+# define KINETIS_FLASH_SIZE (256*1024) /* 256Kb */
+# define KINETIS_FLEXNVM_SIZE (256*1024) /* 256Kb */
+# define KINETIS_FLEXRAM_SIZE (4*1024) /* 4Kb */
+# define KINETIS_SRAM_SIZE (64*1024) /* 64Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 5 /* Five additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# define KINETIS_NADC15 1 /* One 15-channel ADC (ADC0) */
+# define KINETIS_NADC18 1 /* One 18-channel ADC (ADC1) */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Twp 12-bit DACs */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60N512VLQ100)
+# define KINETIS_FLASH_SIZE (512*1024) /* 512Kb */
+# undef KINETIS_FLEXNVM_SIZE /* No FlexNVM */
+# undef KINETIS_FLEXRAM_SIZE /* No FlexRAM */
+# define KINETIS_SRAM_SIZE (128*1024) /* 128Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 5 /* Five additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# define KINETIS_NADC15 1 /* One 15-channel ADC (ADC0) */
+# define KINETIS_NADC18 1 /* One 18-channel ADC (ADC1) */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Twp 12-bit DACs */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60N256VMD100)
+# define KINETIS_FLASH_SIZE (256*1024) /* 256Kb */
+# undef KINETIS_FLEXNVM_SIZE /* No FlexNVM */
+# undef KINETIS_FLEXRAM_SIZE /* No FlexRAM */
+# define KINETIS_SRAM_SIZE (64*1024) /* 64Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 5 /* Five additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# define KINETIS_NADC15 1 /* One 15-channel ADC (ADC0) */
+# define KINETIS_NADC18 1 /* One 18-channel ADC (ADC1) */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Twp 12-bit DACs */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60X256VMD100)
+# define KINETIS_FLASH_SIZE (256*1024) /* 256Kb */
+# define KINETIS_FLEXNVM_SIZE (256*1024) /* 256Kb */
+# define KINETIS_FLEXRAM_SIZE (4*1024) /* 4Kb */
+# define KINETIS_SRAM_SIZE (64*1024) /* 64Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 5 /* Five additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# define KINETIS_NADC15 1 /* One 15-channel ADC (ADC0) */
+# define KINETIS_NADC18 1 /* One 18-channel ADC (ADC1) */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Twp 12-bit DACs */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
+#elif defined(MK60N512VMD100)
+# define KINETIS_FLASH_SIZE (512*1024) /* 512Kb */
+# undef KINETIS_FLEXNVM_SIZE /* No FlexNVM */
+# undef KINETIS_FLEXRAM_SIZE /* No FlexRAM */
+# define KINETIS_SRAM_SIZE (128*1024) /* 128Kb */
+# define KINETIS_MPU 1 /* Memory protection unit */
+# define KINETIS_EXTBUS 1 /* External bus interface */
+# define KINETIS_NDMACH 16 /* Up to 16 DMA channels */
+# define KINETIS_NETHERNET 1 /* One IEEE 1588 Ethernet controller */
+# define KINETIS_NUSBHOST 1 /* One USB host controller */
+# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
+# define KINETIS_NUSBDEV 1 /* One USB device controller */
+# define KINETIS_NSDHC 1 /* SD host controller */
+# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
+# define KINETIS_NI2C 3 /* Three I2C modules */
+# define KINETIS_NISO7816 1 /* One UART with ISO-786 */
+# define KINETIS_NUART 5 /* Five additional UARTs */
+# define KINETIS_NSPI 3 /* Three SPI modules */
+# define KINETIS_NCAN 2 /* Two CAN controllers */
+# define KINETIS_NI2S 2 /* Two I2S modules */
+# define KINETIS_NSEGLCD 1 /* One segment LCD interface (up to 36x8/40x4) */
+# define KINETIS_NADC16 4 /* Four 16-bit ADC */
+# undef KINETIS_NADC12 /* No 12-channel ADC */
+# undef KINETIS_NADC13 /* No 13-channel ADC */
+# define KINETIS_NADC15 1 /* One 15-channel ADC (ADC0) */
+# define KINETIS_NADC18 1 /* One 18-channel ADC (ADC1) */
+# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
+# define KINETIS_NCMP 3 /* Three analog comparators */
+# undef KINETIS_NDAC6 /* No 6-bit DAC */
+# define KINETIS_NDAC12 2 /* Twp 12-bit DACs */
+# define KINETIS_NVREF 1 /* Voltage reference */
+# undef KINETIS_NTIMERS12 /* No 12 channel timers */
+# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
+# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
+# undef KINETIS_NTIMERS20 /* No 20 channel timers */
+# define KINETIS_RTC 1 /* Real time clock */
+# undef KINETIS_NRNG /* No random number generator */
+# undef KINETIS_NENCRYPT /* No hardware encryption */
+# undef KINETIS_NTAMPER /* No tamper detect */
+# define KINETIS_NCRC 1 /* CRC */
+
#else
# error "Unsupported Kinetis chip"
#endif