Skip to content
Snippets Groups Projects
Commit ea33be59 authored by patacongo's avatar patacongo
Browse files

Add Kinetis UART header file

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3851 42af7a65-404d-4744-a932-0658087f49c3
parent bf0d9cd2
No related branches found
No related tags found
No related merge requests found
......@@ -193,8 +193,8 @@
*/
#elif defined(CONFIG_ARCH_CHIP_MK60N256VLQ100) || defined(CONFIG_ARCH_CHIP_MK60X256VLQ100) \
defined(CONFIG_ARCH_CHIP_MK60N512VLQ100) || defined(CONFIG_ARCH_CHIP_MK60N256VMD100) \
defined(CONFIG_ARCH_CHIP_MK60X256VMD100) || defined(CONFIG_ARCH_CHIP_MK60N512VMD100)
defined(CONFIG_ARCH_CHIP_MK60N512VLQ100) || defined(CONFIG_ARCH_CHIP_MK60N256VMD100) \
defined(CONFIG_ARCH_CHIP_MK60X256VMD100) || defined(CONFIG_ARCH_CHIP_MK60N512VMD100)
# define KINETIS_IRQ_DMACH0 (16) /* Vector 16: DMA channel 0 transfer complete */
# define KINETIS_IRQ_DMACH1 (17) /* Vector 17: DMA channel 1 transfer complete */
......@@ -291,8 +291,8 @@
/* Note that the total number of IRQ numbers supported is equal to the number of
* valid interrupt vectors. This is wasteful in that certain tables are sized by
* this value. There are only 94 valid interrupts so, potentially the numver of
* IRQs to could be reduced to 94. However, equating IRQ numbers with vector numbers
* this value. There are only 97 valid interrupts so, potentially the numver of
* IRQs to could be reduced to 97. However, equating IRQ numbers with vector numbers
* also simplifies operations on NVIC registers and (at least in my state of mind
* now) seems to justify the waste.
*/
......
......@@ -74,7 +74,7 @@
# 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_NSLCD 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 */
......@@ -119,7 +119,7 @@
# 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_NSLCD 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 */
......@@ -160,7 +160,7 @@
# 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_NSLCD 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 */
......@@ -200,7 +200,7 @@
# 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_NSLCD 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 */
......@@ -240,7 +240,7 @@
# 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_NSLCD 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 */
......@@ -282,7 +282,7 @@
# 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_NSLCD 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 */
......@@ -323,7 +323,7 @@
# 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_NSLCD 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) */
......@@ -366,7 +366,7 @@
# 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_NSLCD 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) */
......@@ -409,7 +409,7 @@
# 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_NSLCD 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) */
......@@ -452,7 +452,7 @@
# 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_NSLCD 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 */
......@@ -495,7 +495,7 @@
# 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_NSLCD 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 */
......@@ -538,7 +538,7 @@
# 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_NSLCD 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 */
......@@ -581,7 +581,7 @@
# 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_NSLCD 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 */
......@@ -624,7 +624,7 @@
# 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_NSLCD 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 */
......@@ -667,7 +667,7 @@
# 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_NSLCD 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 */
......@@ -710,7 +710,7 @@
# 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_NSLCD 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 */
......@@ -753,7 +753,7 @@
# 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_NSLCD 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 */
......@@ -796,7 +796,7 @@
# 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_NSLCD 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 */
......
......@@ -155,7 +155,7 @@
# define KINETIS_SDHC_BASE 0x400b1000 /* SDHC */
# define KINETIS_FTM2_BASE 0x400b8000 /* FlexTimer 2 */
# define KINETIS_ADC1_BASE 0x400bb000 /* Analog-to-digital converter (ADC) 1 */
# define KINETIS_SEGLCD_BASE 0x400be000 /* Segment LCD */
# define KINETIS_SLCD_BASE 0x400be000 /* Segment LCD */
# define KINETIS_DAC0_BASE 0x400cc000 /* 12-bit digital-to-analog converter (DAC) 0 */
# define KINETIS_DAC1_BASE 0x400cd000 /* 12-bit digital-to-analog converter (DAC) 1 */
# define KINETIS_UART4_BASE 0x400ea000 /* UART4 */
......@@ -185,8 +185,8 @@
*/
#elif defined(CONFIG_ARCH_CHIP_MK60N256VLQ100) || defined(CONFIG_ARCH_CHIP_MK60X256VLQ100) \
defined(CONFIG_ARCH_CHIP_MK60N512VLQ100) || defined(CONFIG_ARCH_CHIP_MK60N256VMD100) \
defined(CONFIG_ARCH_CHIP_MK60X256VMD100) || defined(CONFIG_ARCH_CHIP_MK60N512VMD100)
defined(CONFIG_ARCH_CHIP_MK60N512VLQ100) || defined(CONFIG_ARCH_CHIP_MK60N256VMD100) \
defined(CONFIG_ARCH_CHIP_MK60X256VMD100) || defined(CONFIG_ARCH_CHIP_MK60N512VMD100)
# define KINETIS_FLASH_BASE 0x00000000 /* 0x0fffffff Program flash and read-
* only data (Includes exception
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment