Leverage some bit timing logic from LPC17xx to the STM32 CAN driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4317 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
c62e27d17b
commit
fe2501d654
@ -480,6 +480,8 @@ HY-Mini specific Configuration Options
|
||||
mode for testing. The STM32 CAN driver does support loopback mode.
|
||||
CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN1 is defined.
|
||||
CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
|
||||
CONFIG_CAN_TSEG1 - The number of CAN time quanta in segment 1. Default: 6
|
||||
CONFIG_CAN_TSEG2 - the number of CAN time quanta in segment 2. Default: 7
|
||||
CONFIG_CAN_REGDEBUG - If CONFIG_DEBUG is set, this will generate an
|
||||
dump of all CAN registers.
|
||||
|
||||
|
@ -705,7 +705,7 @@ Olimex LPC1766-STK Configuration Options
|
||||
(the CCLK frequency is divided by this number to get the CAN clock).
|
||||
Options = {1,2,4,6}. Default: 4.
|
||||
CONFIG_CAN_TSEG1 - The number of CAN time quanta in segment 1. Default: 6
|
||||
CONFIG_CAN_TSEG2 = the number of CAN time quanta in segment 2. Default: 7
|
||||
CONFIG_CAN_TSEG2 - the number of CAN time quanta in segment 2. Default: 7
|
||||
|
||||
LPC17xx specific PHY/Ethernet device driver settings. These setting
|
||||
also require CONFIG_NET and CONFIG_LPC17_ETHERNET.
|
||||
|
@ -570,6 +570,8 @@ STM3210E-EVAL-specific Configuration Options
|
||||
mode for testing. The STM32 CAN driver does support loopback mode.
|
||||
CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN1 is defined.
|
||||
CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
|
||||
CONFIG_CAN_TSEG1 - The number of CAN time quanta in segment 1. Default: 6
|
||||
CONFIG_CAN_TSEG2 - the number of CAN time quanta in segment 2. Default: 7
|
||||
CONFIG_CAN_REGDEBUG - If CONFIG_DEBUG is set, this will generate an
|
||||
dump of all CAN registers.
|
||||
|
||||
|
@ -241,6 +241,29 @@ CONFIG_STM32_AM240320_DISABLE=n
|
||||
CONFIG_STM32_SPFD5408B_DISABLE=n
|
||||
CONFIG_STM32_R61580_DISABLE=y
|
||||
|
||||
#
|
||||
# STM32F103Z specific CAN device driver settings
|
||||
#
|
||||
# CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
|
||||
# CONFIG_STM32_CAN2 must also be defined)
|
||||
# CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
|
||||
# Default: 8
|
||||
# CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
|
||||
# Default: 4
|
||||
# CONFIG_CAN_LOOPBACK - A CAN driver may or may not support a loopback
|
||||
# mode for testing. The STM32 CAN driver does support loopback mode.
|
||||
# CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN1 is defined.
|
||||
# CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
|
||||
# CONFIG_CAN_TSEG1 - The number of CAN time quanta in segment 1. Default: 6
|
||||
# CONFIG_CAN_TSEG2 - the number of CAN time quanta in segment 2. Default: 7
|
||||
#
|
||||
CONFIG_CAN=n
|
||||
#CONFIG_CAN_FIFOSIZE
|
||||
#CONFIG_CAN_NPENDINGRTR
|
||||
CONFIG_CAN_LOOPBACK=n
|
||||
CONFIG_CAN1_BAUD=700000
|
||||
CONFIG_CAN2_BAUD=700000
|
||||
|
||||
#
|
||||
# General build options
|
||||
#
|
||||
|
@ -282,6 +282,8 @@ Configuration Options:
|
||||
CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN1 is defined.
|
||||
CONFIG_STM32_CAN2 - Enable support for CAN2
|
||||
CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
|
||||
CONFIG_CAN_TSEG1 - The number of CAN time quanta in segment 1. Default: 6
|
||||
CONFIG_CAN_TSEG2 - the number of CAN time quanta in segment 2. Default: 7
|
||||
CONFIG_CAN_REGDEBUG - If CONFIG_DEBUG is set, this will generate an
|
||||
dump of all CAN registers.
|
||||
|
||||
@ -535,6 +537,8 @@ STM3240G-EVAL-specific Configuration Options
|
||||
mode for testing. The STM32 CAN driver does support loopback mode.
|
||||
CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN1 is defined.
|
||||
CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
|
||||
CONFIG_CAN_TSEG1 - The number of CAN time quanta in segment 1. Default: 6
|
||||
CONFIG_CAN_TSEG2 - the number of CAN time quanta in segment 2. Default: 7
|
||||
CONFIG_CAN_REGDEBUG - If CONFIG_DEBUG is set, this will generate an
|
||||
dump of all CAN registers.
|
||||
|
||||
|
@ -269,6 +269,8 @@ CONFIG_SSI_POLLWAIT=y
|
||||
# mode for testing. The STM32 CAN driver does support loopback mode.
|
||||
# CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN1 is defined.
|
||||
# CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
|
||||
# CONFIG_CAN_TSEG1 - The number of CAN time quanta in segment 1. Default: 6
|
||||
# CONFIG_CAN_TSEG2 - the number of CAN time quanta in segment 2. Default: 7
|
||||
#
|
||||
CONFIG_CAN=n
|
||||
#CONFIG_CAN_FIFOSIZE
|
||||
|
@ -269,6 +269,8 @@ CONFIG_SSI_POLLWAIT=y
|
||||
# mode for testing. The STM32 CAN driver does support loopback mode.
|
||||
# CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN1 is defined.
|
||||
# CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
|
||||
# CONFIG_CAN_TSEG1 - The number of CAN time quanta in segment 1. Default: 6
|
||||
# CONFIG_CAN_TSEG2 - the number of CAN time quanta in segment 2. Default: 7
|
||||
#
|
||||
CONFIG_CAN=n
|
||||
#CONFIG_CAN_FIFOSIZE
|
||||
@ -986,7 +988,7 @@ CONFIG_USBSTRG_REMOVABLE=y
|
||||
# too many messages (CONFIG_PREALLOC_MQ_MSGS controls how many
|
||||
# messages are pre-allocated).
|
||||
#
|
||||
CONFIG_NX=y
|
||||
CONFIG_NX=n
|
||||
CONFIG_NX_MULTIUSER=n
|
||||
CONFIG_NX_NPLANES=1
|
||||
CONFIG_NX_DISABLE_1BPP=y
|
||||
|
@ -398,12 +398,33 @@ stm32f4discovery-specific Configuration Options
|
||||
CONFIG_U[S]ARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity
|
||||
CONFIG_U[S]ARTn_2STOP - Two stop bits
|
||||
|
||||
STM3240xxx CAN Configuration
|
||||
|
||||
CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
|
||||
CONFIG_STM32_CAN2 must also be defined)
|
||||
CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
|
||||
Default: 8
|
||||
CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
|
||||
Default: 4
|
||||
CONFIG_CAN_LOOPBACK - A CAN driver may or may not support a loopback
|
||||
mode for testing. The STM32 CAN driver does support loopback mode.
|
||||
CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN1 is defined.
|
||||
CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
|
||||
CONFIG_CAN_TSEG1 - The number of CAN time quanta in segment 1. Default: 6
|
||||
CONFIG_CAN_TSEG2 - the number of CAN time quanta in segment 2. Default: 7
|
||||
CONFIG_CAN_REGDEBUG - If CONFIG_DEBUG is set, this will generate an
|
||||
dump of all CAN registers.
|
||||
|
||||
STM3240xxx SPI Configuration
|
||||
|
||||
CONFIG_STM32_SPI_INTERRUPTS - Select to enable interrupt driven SPI
|
||||
support. Non-interrupt-driven, poll-waiting is recommended if the
|
||||
interrupt rate would be to high in the interrupt driven case.
|
||||
CONFIG_STM32_SPI_DMA - Use DMA to improve SPI transfer performance.
|
||||
Cannot be used with CONFIG_STM32_SPI_INTERRUPT.
|
||||
|
||||
STM3240xxx DMA Configuration
|
||||
|
||||
CONFIG_SDIO_DMA - Support DMA data transfers. Requires CONFIG_STM32_SDIO
|
||||
and CONFIG_STM32_DMA2.
|
||||
CONFIG_SDIO_PRI - Select SDIO interrupt prority. Default: 128
|
||||
|
Loading…
Reference in New Issue
Block a user