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
This commit is contained in:
patacongo
2011-12-15 20:31:54 +00:00
parent b890380f57
commit c094e68c14
4 changed files with 377 additions and 19 deletions
+4
View File
@@ -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 */
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -298,7 +298,7 @@ static inline void rcc_enableapb1(void)
regval |= RCC_APB1ENR_PWREN;
#endif
#ifdefined (CONFIG_STM32_DAC1) || defined(CONFIG_STM32_DAC2)
#if defined (CONFIG_STM32_DAC1) || defined(CONFIG_STM32_DAC2)
/* DAC interface clock enable */
regval |= RCC_APB1ENR_DACEN;
+1 -1
View File
@@ -431,7 +431,7 @@ static inline void rcc_enableapb1(void)
regval |= RCC_APB1ENR_PWREN;
#ifdefined (CONFIG_STM32_DAC1) || defined(CONFIG_STM32_DAC2)
#if defined (CONFIG_STM32_DAC1) || defined(CONFIG_STM32_DAC2)
/* DAC interface clock enable */
regval |= RCC_APB1ENR_DACEN;