diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-15 20:31:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-15 20:31:54 +0000 |
commit | 06f42a77c40e148fb5dd7c8a6684ee0197832ab8 (patch) | |
tree | 9765a8856be27bc68e81c44e074e9937f5987e10 /nuttx/arch/arm/src/stm32/chip | |
parent | 35efe997b4ea5352c341b8a1e8661ac83d1bc5ae (diff) | |
download | px4-nuttx-06f42a77c40e148fb5dd7c8a6684ee0197832ab8.tar.gz px4-nuttx-06f42a77c40e148fb5dd7c8a6684ee0197832ab8.tar.bz2 px4-nuttx-06f42a77c40e148fb5dd7c8a6684ee0197832ab8.zip |
Started then stopped development of the STM32 DAC driver -- I guess it isn't needed afterall
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4187 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/chip')
-rw-r--r-- | nuttx/arch/arm/src/stm32/chip/stm32_dac.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32_dac.h b/nuttx/arch/arm/src/stm32/chip/stm32_dac.h index 13908c117..1498c8c93 100644 --- a/nuttx/arch/arm/src/stm32/chip/stm32_dac.h +++ b/nuttx/arch/arm/src/stm32/chip/stm32_dac.h @@ -91,7 +91,11 @@ #define DAC_CR_TSEL_SHIFT (3) /* Bits 3-5: DAC channel1 trigger selection */ #define DAC_CR_TSEL_MASK (7 << DAC_CR_TSEL_SHIFT) # define DAC_CR_TSEL_TIM6 (0 << DAC_CR_TSEL_SHIFT) /* Timer 6 TRGO event */ +#ifdef CONFIG_STM32_CONNECTIVITYLINE +# define DAC_CR_TSEL_TIM3 (1 << DAC_CR_TSEL_SHIFT) /* Timer 3 TRGO event */ +#else # define DAC_CR_TSEL_TIM8 (1 << DAC_CR_TSEL_SHIFT) /* Timer 8 TRGO event */ +#endif # define DAC_CR_TSEL_TIM7 (2 << DAC_CR_TSEL_SHIFT) /* Timer 7 TRGO event */ # define DAC_CR_TSEL_TIM5 (3 << DAC_CR_TSEL_SHIFT) /* Timer 5 TRGO event */ # define DAC_CR_TSEL_TIM2 (4 << DAC_CR_TSEL_SHIFT) /* Timer 2 TRGO event */ |