diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-08-14 15:53:19 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-08-14 15:53:19 +0000 |
commit | 6e69036ba018c62efcda6d93ded93850841e6f5d (patch) | |
tree | 873a42c6903c56542ef2597a0d22686b47c3e9c5 /nuttx/configs/kwikstik-k40 | |
parent | fcd51cbc81e18535d3b4221ae6e4cb18bf3623e9 (diff) | |
download | px4-nuttx-6e69036ba018c62efcda6d93ded93850841e6f5d.tar.gz px4-nuttx-6e69036ba018c62efcda6d93ded93850841e6f5d.tar.bz2 px4-nuttx-6e69036ba018c62efcda6d93ded93850841e6f5d.zip |
Add basic Kinetis serial support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3878 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/kwikstik-k40')
-rw-r--r-- | nuttx/configs/kwikstik-k40/README.txt | 9 | ||||
-rwxr-xr-x | nuttx/configs/kwikstik-k40/include/board.h | 2 | ||||
-rwxr-xr-x | nuttx/configs/kwikstik-k40/ostest/defconfig | 13 |
3 files changed, 8 insertions, 16 deletions
diff --git a/nuttx/configs/kwikstik-k40/README.txt b/nuttx/configs/kwikstik-k40/README.txt index 08a6ac018..e8f3865f7 100644 --- a/nuttx/configs/kwikstik-k40/README.txt +++ b/nuttx/configs/kwikstik-k40/README.txt @@ -300,16 +300,15 @@ KwikStik-K40-specific Configuration Options Kinetis K40 specific device driver settings - CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn (n=1,2,3) or UART - m (m=4,5) for the console and ttys0 (default is the UART1). + CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn (n=0..5) for the + console and ttys0 (default is the UART0). CONFIG_UARTn_RXBUFSIZE - Characters are buffered as received. This specific the size of the receive buffer CONFIG_UARTn_TXBUFSIZE - Characters are buffered before being sent. This specific the size of the transmit buffer - CONFIG_UARTn_BAUD - The configure BAUD of the UART. Must be - CONFIG_UARTn_BITS - The number of bits. Must be either 7 or 8. + CONFIG_UARTn_BAUD - The configure BAUD of the UART. + CONFIG_UARTn_BITS - The number of bits. Must be either 8 or 8. CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity - CONFIG_UARTn_2STOP - Two stop bits CONFIG_KINETIS_SPI_INTERRUPTS - Select to enable interrupt driven SPI support. Non-interrupt-driven, poll-waiting is recommended if the diff --git a/nuttx/configs/kwikstik-k40/include/board.h b/nuttx/configs/kwikstik-k40/include/board.h index ee5083454..97fd786ac 100755 --- a/nuttx/configs/kwikstik-k40/include/board.h +++ b/nuttx/configs/kwikstik-k40/include/board.h @@ -70,7 +70,7 @@ #define BOARD_PLLIN_FREQ (BOARD_EXTAL_FREQ / BOARD_PRDIV) #define BOARD_PLLOUT_FREQ (BOARD_EXTAL_FREQ * BOARD_VDIV) -#define BOARD_MCG_FREQ BOARD_PLL_FREQ +#define BOARD_MCG_FREQ BOARD_PLLOUT_FREQ /* SIM CLKDIV1 dividers */ diff --git a/nuttx/configs/kwikstik-k40/ostest/defconfig b/nuttx/configs/kwikstik-k40/ostest/defconfig index 1569289ff..651404aa8 100755 --- a/nuttx/configs/kwikstik-k40/ostest/defconfig +++ b/nuttx/configs/kwikstik-k40/ostest/defconfig @@ -142,15 +142,14 @@ CONFIG_KINETIS_ADC3=n # K40X256VLQ100 specific serial device driver settings # # CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the -# console and ttys0 (default is the UART1). +# console and ttys0 (default is the UART0). # CONFIG_UARTn_RXBUFSIZE - Characters are buffered as received. # This specific the size of the receive buffer # CONFIG_UARTn_TXBUFSIZE - Characters are buffered before # being sent. This specific the size of the transmit buffer -# CONFIG_UARTn_BAUD - The configure BAUD of the UART. Must be -# CONFIG_UARTn_BITS - The number of bits. Must be either 7 or 8. +# CONFIG_UARTn_BAUD - The configure BAUD of the UART. +# CONFIG_UARTn_BITS - The number of bits. Must be either 8 or 9. # CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity -# CONFIG_UARTn_2STOP - Two stop bits # CONFIG_UART1_SERIAL_CONSOLE=y CONFIG_UART2_SERIAL_CONSOLE=n @@ -188,12 +187,6 @@ CONFIG_UART3_PARITY=0 CONFIG_UART4_PARITY=0 CONFIG_UART5_PARITY=0 -CONFIG_UART1_2STOP=0 -CONFIG_UART2_2STOP=0 -CONFIG_UART3_2STOP=0 -CONFIG_UART4_2STOP=0 -CONFIG_UART5_2STOP=0 - # # K40X256VLQ100 specific SSI device driver settings # |