From f112ffa1e6e4a2e3bc3c6754f2e6ed7de030c12f Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 1 May 2015 16:03:03 +0000 Subject: DAC driver *almost* done. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7934 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- .../STM32F4xx-DAC (OpenOCD, Flash and Run).launch | 52 ++++++++++++++++++++++ testhal/STM32/STM32F4xx/DAC/mcuconf.h | 18 ++++---- 2 files changed, 61 insertions(+), 9 deletions(-) create mode 100644 testhal/STM32/STM32F4xx/DAC/debug/STM32F4xx-DAC (OpenOCD, Flash and Run).launch (limited to 'testhal/STM32') diff --git a/testhal/STM32/STM32F4xx/DAC/debug/STM32F4xx-DAC (OpenOCD, Flash and Run).launch b/testhal/STM32/STM32F4xx/DAC/debug/STM32F4xx-DAC (OpenOCD, Flash and Run).launch new file mode 100644 index 000000000..bb8c1ea60 --- /dev/null +++ b/testhal/STM32/STM32F4xx/DAC/debug/STM32F4xx-DAC (OpenOCD, Flash and Run).launch @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testhal/STM32/STM32F4xx/DAC/mcuconf.h b/testhal/STM32/STM32F4xx/DAC/mcuconf.h index 4aeb855d4..419775ba1 100644 --- a/testhal/STM32/STM32F4xx/DAC/mcuconf.h +++ b/testhal/STM32/STM32F4xx/DAC/mcuconf.h @@ -93,15 +93,15 @@ /* * DAC driver system settings. */ -#define STM32_DAC_USE_CHN1 TRUE -#define STM32_DAC_USE_CHN2 FALSE -#define STM32_DAC_CHN1_IRQ_PRIORITY 10 -#define STM32_DAC_CHN2_IRQ_PRIORITY 10 -#define STM32_DAC_CHN1_DMA_PRIORITY 2 -#define STM32_DAC_CHN2_DMA_PRIORITY 2 -#define STM32_DAC_DMA_ERROR_HOOK(dacp) osalSysHalt() -#define STM32_DAC_CHN1_DMA_STREAM STM32_DMA_STREAM_ID(1, 3) -#define STM32_DAC_CHN2_DMA_STREAM STM32_DMA_STREAM_ID(1, 4) +#define STM32_DAC_DUAL_MODE FALSE +#define STM32_DAC_USE_DAC1_CH1 TRUE +#define STM32_DAC_USE_DAC1_CH2 TRUE +#define STM32_DAC1_CH1_IRQ_PRIORITY 10 +#define STM32_DAC1_CH2_IRQ_PRIORITY 10 +#define STM32_DAC1_CH1_DMA_PRIORITY 2 +#define STM32_DAC1_CH2_DMA_PRIORITY 2 +#define STM32_DAC1_CH1_DMA_STREAM STM32_DMA_STREAM_ID(1, 5) +#define STM32_DAC1_CH2_DMA_STREAM STM32_DMA_STREAM_ID(1, 6) /* * EXT driver system settings. -- cgit v1.2.3