git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3518 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
a30f84ac78
commit
c399cbbddf
|
@ -19,7 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* STM32L1xx drivers configuration.
|
* STM32F4xx drivers configuration.
|
||||||
* The following settings override the default settings present in
|
* The following settings override the default settings present in
|
||||||
* the various device driver implementation headers.
|
* the various device driver implementation headers.
|
||||||
* Note that the settings for each driver only have effect if the whole
|
* Note that the settings for each driver only have effect if the whole
|
||||||
|
@ -198,11 +198,3 @@
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
||||||
|
|
||||||
/*
|
|
||||||
* USB driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_USB_USE_USB1 TRUE
|
|
||||||
#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
|
|
||||||
#define STM32_USB_USB1_HP_IRQ_PRIORITY 6
|
|
||||||
#define STM32_USB_USB1_LP_IRQ_PRIORITY 14
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file STM32/GPIOv2/pal_lld.c
|
* @file STM32/GPIOv2/pal_lld.c
|
||||||
* @brief STM32L1xx/STM32F2xx GPIO low level driver code.
|
* @brief STM32L1xx/STM32F2xx/STM32F4xx GPIO low level driver code.
|
||||||
*
|
*
|
||||||
* @addtogroup PAL
|
* @addtogroup PAL
|
||||||
* @{
|
* @{
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file STM32/GPIOv2/pal_lld.h
|
* @file STM32/GPIOv2/pal_lld.h
|
||||||
* @brief STM32L1xx/STM32F2xx GPIO low level driver header.
|
* @brief STM32L1xx/STM32F2xx/STM32F4xx GPIO low level driver header.
|
||||||
*
|
*
|
||||||
* @addtogroup PAL
|
* @addtogroup PAL
|
||||||
* @{
|
* @{
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* STM32L1xx drivers configuration.
|
* STM32F4xx drivers configuration.
|
||||||
* The following settings override the default settings present in
|
* The following settings override the default settings present in
|
||||||
* the various device driver implementation headers.
|
* the various device driver implementation headers.
|
||||||
* Note that the settings for each driver only have effect if the whole
|
* Note that the settings for each driver only have effect if the whole
|
||||||
|
@ -198,11 +198,3 @@
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
||||||
|
|
||||||
/*
|
|
||||||
* USB driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_USB_USE_USB1 TRUE
|
|
||||||
#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
|
|
||||||
#define STM32_USB_USB1_HP_IRQ_PRIORITY 6
|
|
||||||
#define STM32_USB_USB1_LP_IRQ_PRIORITY 14
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* STM32L1xx drivers configuration.
|
* STM32F4xx drivers configuration.
|
||||||
* The following settings override the default settings present in
|
* The following settings override the default settings present in
|
||||||
* the various device driver implementation headers.
|
* the various device driver implementation headers.
|
||||||
* Note that the settings for each driver only have effect if the whole
|
* Note that the settings for each driver only have effect if the whole
|
||||||
|
@ -187,11 +187,3 @@
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
||||||
|
|
||||||
/*
|
|
||||||
* USB driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_USB_USE_USB1 TRUE
|
|
||||||
#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
|
|
||||||
#define STM32_USB_USB1_HP_IRQ_PRIORITY 6
|
|
||||||
#define STM32_USB_USB1_LP_IRQ_PRIORITY 14
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* STM32L1xx drivers configuration.
|
* STM32F4xx drivers configuration.
|
||||||
* The following settings override the default settings present in
|
* The following settings override the default settings present in
|
||||||
* the various device driver implementation headers.
|
* the various device driver implementation headers.
|
||||||
* Note that the settings for each driver only have effect if the whole
|
* Note that the settings for each driver only have effect if the whole
|
||||||
|
@ -187,11 +187,3 @@
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
||||||
|
|
||||||
/*
|
|
||||||
* USB driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_USB_USE_USB1 TRUE
|
|
||||||
#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
|
|
||||||
#define STM32_USB_USB1_HP_IRQ_PRIORITY 6
|
|
||||||
#define STM32_USB_USB1_LP_IRQ_PRIORITY 14
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* STM32L1xx drivers configuration.
|
* STM32F4xx drivers configuration.
|
||||||
* The following settings override the default settings present in
|
* The following settings override the default settings present in
|
||||||
* the various device driver implementation headers.
|
* the various device driver implementation headers.
|
||||||
* Note that the settings for each driver only have effect if the whole
|
* Note that the settings for each driver only have effect if the whole
|
||||||
|
@ -198,11 +198,3 @@
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
||||||
|
|
||||||
/*
|
|
||||||
* USB driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_USB_USE_USB1 TRUE
|
|
||||||
#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
|
|
||||||
#define STM32_USB_USB1_HP_IRQ_PRIORITY 6
|
|
||||||
#define STM32_USB_USB1_LP_IRQ_PRIORITY 14
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* STM32 drivers configuration.
|
* STM32F4xx drivers configuration.
|
||||||
* The following settings override the default settings present in
|
* The following settings override the default settings present in
|
||||||
* the various device driver implementation headers.
|
* the various device driver implementation headers.
|
||||||
* Note that the settings for each driver only have effect if the whole
|
* Note that the settings for each driver only have effect if the whole
|
||||||
|
@ -64,9 +64,20 @@
|
||||||
/*
|
/*
|
||||||
* ADC driver system settings.
|
* ADC driver system settings.
|
||||||
*/
|
*/
|
||||||
|
#define STM32_ADC_ADCPRE ADC_CCR_ADCPRE_DIV2
|
||||||
#define STM32_ADC_USE_ADC1 TRUE
|
#define STM32_ADC_USE_ADC1 TRUE
|
||||||
|
#define STM32_ADC_USE_ADC2 TRUE
|
||||||
|
#define STM32_ADC_USE_ADC3 TRUE
|
||||||
|
#define STM32_ADC_ADC1_DMA_STREAM STM32_DMA_STREAM_ID(2, 4)
|
||||||
|
#define STM32_ADC_ADC2_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
||||||
|
#define STM32_ADC_ADC3_DMA_STREAM STM32_DMA_STREAM_ID(2, 1)
|
||||||
#define STM32_ADC_ADC1_DMA_PRIORITY 2
|
#define STM32_ADC_ADC1_DMA_PRIORITY 2
|
||||||
#define STM32_ADC_ADC1_IRQ_PRIORITY 5
|
#define STM32_ADC_ADC2_DMA_PRIORITY 2
|
||||||
|
#define STM32_ADC_ADC3_DMA_PRIORITY 2
|
||||||
|
#define STM32_ADC_IRQ_PRIORITY 5
|
||||||
|
#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 5
|
||||||
|
#define STM32_ADC_ADC2_DMA_IRQ_PRIORITY 5
|
||||||
|
#define STM32_ADC_ADC3_DMA_IRQ_PRIORITY 5
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CAN driver system settings.
|
* CAN driver system settings.
|
||||||
|
@ -187,11 +198,3 @@
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
#define STM32_UART_DMA_ERROR_HOOK(uartp) chSysHalt()
|
||||||
|
|
||||||
/*
|
|
||||||
* USB driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_USB_USE_USB1 TRUE
|
|
||||||
#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
|
|
||||||
#define STM32_USB_USB1_HP_IRQ_PRIORITY 6
|
|
||||||
#define STM32_USB_USB1_LP_IRQ_PRIORITY 14
|
|
||||||
|
|
Loading…
Reference in New Issue