Add support for extended (29-bit) CAN IDs

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4319 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-01-20 21:52:35 +00:00
parent 993cbe5387
commit 066ab944c4
17 changed files with 46 additions and 3 deletions
+2
View File
@@ -646,6 +646,8 @@ defconfig -- This is a configuration file similar to the Linux
CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
CONFIG_STM32_CAN2 must also be defined) CONFIG_STM32_CAN2 must also be defined)
CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
Standard 11-bit IDs.
CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
Default: 8 Default: 8
CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
+2
View File
@@ -472,6 +472,8 @@ HY-Mini specific Configuration Options
CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
CONFIG_STM32_CAN2 must also be defined) CONFIG_STM32_CAN2 must also be defined)
CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
Standard 11-bit IDs.
CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
Default: 8 Default: 8
CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
+2
View File
@@ -647,6 +647,8 @@ LPCXpresso Configuration Options
LPC17xx specific CAN device driver settings. These settings all LPC17xx specific CAN device driver settings. These settings all
require CONFIG_CAN: require CONFIG_CAN:
CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
Standard 11-bit IDs.
CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN1 is defined. CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN1 is defined.
CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN2 is defined. CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN2 is defined.
CONFIG_CAN1_DIVISOR - CAN1 is clocked at CCLK divided by this number. CONFIG_CAN1_DIVISOR - CAN1 is clocked at CCLK divided by this number.
+2
View File
@@ -287,6 +287,8 @@ mbed Configuration Options
LPC17xx specific CAN device driver settings. These settings all LPC17xx specific CAN device driver settings. These settings all
require CONFIG_CAN: require CONFIG_CAN:
CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
Standard 11-bit IDs.
CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN1 is defined. CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN1 is defined.
CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN2 is defined. CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN2 is defined.
CONFIG_CAN1_DIVISOR - CAN1 is clocked at CCLK divided by this number. CONFIG_CAN1_DIVISOR - CAN1 is clocked at CCLK divided by this number.
+2
View File
@@ -399,6 +399,8 @@ Nucleus 2G Configuration Options
LPC17xx specific CAN device driver settings. These settings all LPC17xx specific CAN device driver settings. These settings all
require CONFIG_CAN: require CONFIG_CAN:
CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
Standard 11-bit IDs.
CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN1 is defined. CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN1 is defined.
CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN2 is defined. CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN2 is defined.
CONFIG_CAN1_DIVISOR - CAN1 is clocked at CCLK divided by this number. CONFIG_CAN1_DIVISOR - CAN1 is clocked at CCLK divided by this number.
+2
View File
@@ -696,6 +696,8 @@ Olimex LPC1766-STK Configuration Options
LPC17xx specific CAN device driver settings. These settings all LPC17xx specific CAN device driver settings. These settings all
require CONFIG_CAN: require CONFIG_CAN:
CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
Standard 11-bit IDs.
CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN1 is defined. CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN1 is defined.
CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN2 is defined. CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN2 is defined.
CONFIG_CAN1_DIVISOR - CAN1 is clocked at CCLK divided by this number. CONFIG_CAN1_DIVISOR - CAN1 is clocked at CCLK divided by this number.
+3
View File
@@ -631,6 +631,8 @@ CONFIG_NET_RESOLV_ENTRIES=4
# #
# CONFIG_CAN - Enables CAN support (one or both of CONFIG_LPC17_CAN1 or # CONFIG_CAN - Enables CAN support (one or both of CONFIG_LPC17_CAN1 or
# CONFIG_LPC17_CAN2 must also be defined) # CONFIG_LPC17_CAN2 must also be defined)
# CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
# Standard 11-bit IDs.
# CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. # CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
# Default: 8 # Default: 8
# CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. # CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
@@ -641,6 +643,7 @@ CONFIG_NET_RESOLV_ENTRIES=4
# CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN2 is defined. # CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_LPC17_CAN2 is defined.
# #
CONFIG_CAN=n CONFIG_CAN=n
CONFIG_CAN_EXTID=n
#CONFIG_CAN_FIFOSIZE #CONFIG_CAN_FIFOSIZE
#CONFIG_CAN_NPENDINGRTR #CONFIG_CAN_NPENDINGRTR
CONFIG_CAN_LOOPBACK=n CONFIG_CAN_LOOPBACK=n
+2
View File
@@ -562,6 +562,8 @@ STM3210E-EVAL-specific Configuration Options
CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
CONFIG_STM32_CAN2 must also be defined) CONFIG_STM32_CAN2 must also be defined)
CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
Standard 11-bit IDs.
CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
Default: 8 Default: 8
CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
+3
View File
@@ -246,6 +246,8 @@ CONFIG_STM32_R61580_DISABLE=y
# #
# CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or # CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
# CONFIG_STM32_CAN2 must also be defined) # CONFIG_STM32_CAN2 must also be defined)
# CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
# Standard 11-bit IDs.
# CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. # CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
# Default: 8 # Default: 8
# CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. # CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
@@ -258,6 +260,7 @@ CONFIG_STM32_R61580_DISABLE=y
# 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
# #
CONFIG_CAN=n CONFIG_CAN=n
CONFIG_CAN_EXTID=n
#CONFIG_CAN_FIFOSIZE #CONFIG_CAN_FIFOSIZE
#CONFIG_CAN_NPENDINGRTR #CONFIG_CAN_NPENDINGRTR
CONFIG_CAN_LOOPBACK=n CONFIG_CAN_LOOPBACK=n
+3
View File
@@ -273,6 +273,8 @@ Configuration Options:
CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
CONFIG_STM32_CAN2 must also be defined) CONFIG_STM32_CAN2 must also be defined)
CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
Standard 11-bit IDs.
CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
Default: 8 Default: 8
CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
@@ -656,6 +658,7 @@ Where <subdir> is one of the following:
must be manually enabled by selecting: must be manually enabled by selecting:
CONFIG_CAN=y : Enable the generic CAN infrastructure CONFIG_CAN=y : Enable the generic CAN infrastructure
CONFIG_CAN_EXID=y or n : Enable to support extended ID frames
CONFIG_STM32_CAN1=y : Enable CAN1 CONFIG_STM32_CAN1=y : Enable CAN1
CONFIG_CAN_LOOPBACK=y : Enable CAN loopback mode CONFIG_CAN_LOOPBACK=y : Enable CAN loopback mode
+3
View File
@@ -261,6 +261,8 @@ CONFIG_SSI_POLLWAIT=y
# #
# CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or # CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
# CONFIG_STM32_CAN2 must also be defined) # CONFIG_STM32_CAN2 must also be defined)
# CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
# Standard 11-bit IDs.
# CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. # CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
# Default: 8 # Default: 8
# CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. # CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
@@ -271,6 +273,7 @@ CONFIG_SSI_POLLWAIT=y
# CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined. # CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
# #
CONFIG_CAN=n CONFIG_CAN=n
CONFIG_CAN_EXTID=n
#CONFIG_CAN_FIFOSIZE #CONFIG_CAN_FIFOSIZE
#CONFIG_CAN_NPENDINGRTR #CONFIG_CAN_NPENDINGRTR
CONFIG_CAN_LOOPBACK=n CONFIG_CAN_LOOPBACK=n
+3
View File
@@ -261,6 +261,8 @@ CONFIG_SSI_POLLWAIT=y
# #
# CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or # CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
# CONFIG_STM32_CAN2 must also be defined) # CONFIG_STM32_CAN2 must also be defined)
# CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
# Standard 11-bit IDs.
# CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. # CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
# Default: 8 # Default: 8
# CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. # CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
@@ -271,6 +273,7 @@ CONFIG_SSI_POLLWAIT=y
# CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined. # CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
# #
CONFIG_CAN=n CONFIG_CAN=n
CONFIG_CAN_EXTID=n
#CONFIG_CAN_FIFOSIZE #CONFIG_CAN_FIFOSIZE
#CONFIG_CAN_NPENDINGRTR #CONFIG_CAN_NPENDINGRTR
CONFIG_CAN_LOOPBACK=n CONFIG_CAN_LOOPBACK=n
+3
View File
@@ -261,6 +261,8 @@ CONFIG_SSI_POLLWAIT=y
# #
# CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or # CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
# CONFIG_STM32_CAN2 must also be defined) # CONFIG_STM32_CAN2 must also be defined)
# CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
# Standard 11-bit IDs.
# CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. # CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
# Default: 8 # Default: 8
# CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. # CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
@@ -273,6 +275,7 @@ CONFIG_SSI_POLLWAIT=y
# 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
# #
CONFIG_CAN=n CONFIG_CAN=n
CONFIG_CAN_EXTID=n
#CONFIG_CAN_FIFOSIZE #CONFIG_CAN_FIFOSIZE
#CONFIG_CAN_NPENDINGRTR #CONFIG_CAN_NPENDINGRTR
CONFIG_CAN_LOOPBACK=n CONFIG_CAN_LOOPBACK=n
+3
View File
@@ -261,6 +261,8 @@ CONFIG_SSI_POLLWAIT=y
# #
# CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or # CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
# CONFIG_STM32_CAN2 must also be defined) # CONFIG_STM32_CAN2 must also be defined)
# CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
# Standard 11-bit IDs.
# CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. # CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
# Default: 8 # Default: 8
# CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. # CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
@@ -273,6 +275,7 @@ CONFIG_SSI_POLLWAIT=y
# 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
# #
CONFIG_CAN=n CONFIG_CAN=n
CONFIG_CAN_EXTID=n
#CONFIG_CAN_FIFOSIZE #CONFIG_CAN_FIFOSIZE
#CONFIG_CAN_NPENDINGRTR #CONFIG_CAN_NPENDINGRTR
CONFIG_CAN_LOOPBACK=n CONFIG_CAN_LOOPBACK=n
+2
View File
@@ -402,6 +402,8 @@ stm32f4discovery-specific Configuration Options
CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
CONFIG_STM32_CAN2 must also be defined) CONFIG_STM32_CAN2 must also be defined)
CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
Standard 11-bit IDs.
CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
Default: 8 Default: 8
CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
+3
View File
@@ -248,6 +248,8 @@ CONFIG_SPI_EXCHANGE=y
# #
# CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or # CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
# CONFIG_STM32_CAN2 must also be defined) # CONFIG_STM32_CAN2 must also be defined)
# CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
# Standard 11-bit IDs.
# CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. # CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
# Default: 8 # Default: 8
# CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. # CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
@@ -258,6 +260,7 @@ CONFIG_SPI_EXCHANGE=y
# CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined. # CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
# #
CONFIG_CAN=n CONFIG_CAN=n
CONFIG_CAN_EXTID=n
#CONFIG_CAN_FIFOSIZE #CONFIG_CAN_FIFOSIZE
#CONFIG_CAN_NPENDINGRTR #CONFIG_CAN_NPENDINGRTR
CONFIG_CAN_LOOPBACK=n CONFIG_CAN_LOOPBACK=n
@@ -261,6 +261,8 @@ CONFIG_SSI_POLLWAIT=y
# #
# CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or # CONFIG_CAN - Enables CAN support (one or both of CONFIG_STM32_CAN1 or
# CONFIG_STM32_CAN2 must also be defined) # CONFIG_STM32_CAN2 must also be defined)
# CONFIG_CAN_EXTID - Enables support for the 29-bit extended ID. Default
# Standard 11-bit IDs.
# CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages. # CONFIG_CAN_FIFOSIZE - The size of the circular buffer of CAN messages.
# Default: 8 # Default: 8
# CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests. # CONFIG_CAN_NPENDINGRTR - The size of the list of pending RTR requests.
@@ -271,6 +273,7 @@ CONFIG_SSI_POLLWAIT=y
# CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined. # CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
# #
CONFIG_CAN=n CONFIG_CAN=n
CONFIG_CAN_EXTID=n
#CONFIG_CAN_FIFOSIZE #CONFIG_CAN_FIFOSIZE
#CONFIG_CAN_NPENDINGRTR #CONFIG_CAN_NPENDINGRTR
CONFIG_CAN_LOOPBACK=n CONFIG_CAN_LOOPBACK=n