Update to the STM32 ADC and CAN drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4215 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
9ff5eb279d
commit
4fb2f8f148
@ -499,6 +499,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_REGDEBUG - If CONFIG_DEBUG is set, this will generate an
|
||||
dump of all CAN registers.
|
||||
|
||||
HY-MiniSTM32V LCD Hardware Configuration (SSD1289 controler)
|
||||
|
||||
|
@ -587,6 +587,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_REGDEBUG - If CONFIG_DEBUG is set, this will generate an
|
||||
dump of all CAN registers.
|
||||
|
||||
STM3210E-EVAL LCD Hardware Configuration
|
||||
|
||||
|
@ -76,19 +76,19 @@
|
||||
|
||||
/* The number of ADC channels in the conversion list */
|
||||
|
||||
#define ADC_NCHANNELS 2
|
||||
#define ADC_NCHANNELS 1
|
||||
|
||||
/************************************************************************************
|
||||
* Private Data
|
||||
************************************************************************************/
|
||||
|
||||
/* Identifying number of each ADC channel: Variable Resistor and BNC_CN5 */
|
||||
/* Identifying number of each ADC channel: Variable Resistor */
|
||||
|
||||
static const uint8_t g_chanlist[ADC_NCHANNELS] = {14, 11};
|
||||
static const uint8_t g_chanlist[ADC_NCHANNELS] = {14};
|
||||
|
||||
/* Configurations of pins used byte each ADC channels */
|
||||
|
||||
static const uint32_t g_pinlist[ADC_NCHANNELS] = {GPIO_ADC1_IN14 , GPIO_ADC1_IN11};
|
||||
static const uint32_t g_pinlist[ADC_NCHANNELS] = {GPIO_ADC1_IN14};
|
||||
|
||||
/************************************************************************************
|
||||
* Private Functions
|
||||
|
@ -254,6 +254,8 @@ Configuration Options:
|
||||
CONFIG_CAN1_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN1 is defined.
|
||||
CONFIG_STM32_CAN2 - Enable support for CAN1
|
||||
CONFIG_CAN2_BAUD - CAN1 BAUD rate. Required if CONFIG_STM32_CAN2 is defined.
|
||||
CONFIG_CAN_REGDEBUG - If CONFIG_DEBUG is set, this will generate an
|
||||
dump of all CAN registers.
|
||||
|
||||
STM3240G-EVAL-specific Configuration Options
|
||||
============================================
|
||||
@ -528,6 +530,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_REGDEBUG - If CONFIG_DEBUG is set, this will generate an
|
||||
dump of all CAN registers.
|
||||
|
||||
STM3240G-EVAL LCD Hardware Configuration
|
||||
|
||||
|
@ -74,10 +74,8 @@
|
||||
* PD1 = FSMC_D3 & CAN1_TX
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_CAN_LOOPBACK
|
||||
# if defined(CONFIG_STM32_CAN1) && defined(CONFIG_STM32_FSMC)
|
||||
# warning "The STM3250G-EVAL will only support one of CAN1 and FSMC"
|
||||
# endif
|
||||
#if defined(CONFIG_STM32_CAN1) && defined(CONFIG_STM32_FSMC)
|
||||
# warning "The STM3250G-EVAL will only support one of CAN1 and FSMC"
|
||||
#endif
|
||||
|
||||
/* The USB OTG HS ULPI bus is shared with CAN2 bus:
|
||||
@ -86,10 +84,8 @@
|
||||
* PB5 = ULPI_D7 & CAN2_RX
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_CAN_LOOPBACK
|
||||
# if defined(CONFIG_STM32_CAN2) && defined(CONFIG_STM32_OTGHS)
|
||||
# warning "The STM3250G-EVAL will only support one of CAN2 and USB OTG HS"
|
||||
# endif
|
||||
#if defined(CONFIG_STM32_CAN2) && defined(CONFIG_STM32_OTGHS)
|
||||
# warning "The STM3250G-EVAL will only support one of CAN2 and USB OTG HS"
|
||||
#endif
|
||||
|
||||
/* STM3240G-EVAL GPIOs ******************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user