mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
[dac] remove DAC
This commit is contained in:
committed by
Freek van Tienen
parent
37a86bb389
commit
616ee240a6
@@ -1,21 +0,0 @@
|
||||
<!DOCTYPE module SYSTEM "module.dtd">
|
||||
|
||||
<module name="dac" dir="mcu_periph" task="mcu">
|
||||
<doc>
|
||||
<description>
|
||||
General DAC driver
|
||||
To activate a specific DAC input, define flag USE_DACX where X is your DAC input number
|
||||
</description>
|
||||
</doc>
|
||||
<dep>
|
||||
<depends>mcu</depends>
|
||||
</dep>
|
||||
<header>
|
||||
<file name="dac.h" dir="mcu_periph"/>
|
||||
</header>
|
||||
<makefile>
|
||||
<define name="USE_DAC"/>
|
||||
<file_arch name="dac_arch.c" dir="mcu_periph"/>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
@@ -73,12 +73,8 @@
|
||||
* @brief Enables the DAC subsystem.
|
||||
*/
|
||||
#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
|
||||
#if USE_DAC1 || USE_DAC2
|
||||
#define HAL_USE_DAC TRUE
|
||||
#else
|
||||
#define HAL_USE_DAC FALSE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Enables the EFlash subsystem.
|
||||
|
||||
@@ -192,11 +192,7 @@
|
||||
*/
|
||||
#define STM32_DAC_DUAL_MODE FALSE
|
||||
#define STM32_DAC_USE_DAC1_CH1 FALSE
|
||||
#if USE_DAC1
|
||||
#define STM32_DAC_USE_DAC1_CH2 TRUE
|
||||
#else
|
||||
#define STM32_DAC_USE_DAC1_CH2 FALSE
|
||||
#endif
|
||||
#define STM32_DAC_DAC1_CH1_IRQ_PRIORITY 10
|
||||
#define STM32_DAC_DAC1_CH2_IRQ_PRIORITY 10
|
||||
#define STM32_DAC_DAC1_CH1_DMA_PRIORITY 2
|
||||
|
||||
@@ -146,16 +146,8 @@
|
||||
* DAC driver system settings.
|
||||
*/
|
||||
#define STM32_DAC_DUAL_MODE FALSE
|
||||
#if USE_DAC1
|
||||
#define STM32_DAC_USE_DAC1_CH1 TRUE
|
||||
#else
|
||||
#define STM32_DAC_USE_DAC1_CH1 FALSE
|
||||
#endif
|
||||
#if USE_DAC2
|
||||
#define STM32_DAC_USE_DAC1_CH2 TRUE
|
||||
#else
|
||||
#define STM32_DAC_USE_DAC1_CH2 FALSE
|
||||
#endif
|
||||
#define STM32_DAC_DAC1_CH1_IRQ_PRIORITY 10
|
||||
#define STM32_DAC_DAC1_CH2_IRQ_PRIORITY 10
|
||||
#define STM32_DAC_DAC1_CH1_DMA_PRIORITY 2
|
||||
|
||||
@@ -146,16 +146,8 @@
|
||||
* DAC driver system settings.
|
||||
*/
|
||||
#define STM32_DAC_DUAL_MODE FALSE
|
||||
#if USE_DAC1
|
||||
#define STM32_DAC_USE_DAC1_CH1 TRUE
|
||||
#else
|
||||
#define STM32_DAC_USE_DAC1_CH1 FALSE
|
||||
#endif
|
||||
#if USE_DAC2
|
||||
#define STM32_DAC_USE_DAC1_CH2 TRUE
|
||||
#else
|
||||
#define STM32_DAC_USE_DAC1_CH2 FALSE
|
||||
#endif
|
||||
#define STM32_DAC_DAC1_CH1_IRQ_PRIORITY 10
|
||||
#define STM32_DAC_DAC1_CH2_IRQ_PRIORITY 10
|
||||
#define STM32_DAC_DAC1_CH1_DMA_PRIORITY 2
|
||||
|
||||
@@ -67,9 +67,6 @@
|
||||
#if USE_SPI
|
||||
#include "mcu_periph/spi.h"
|
||||
#endif
|
||||
#ifdef USE_DAC
|
||||
#include "mcu_periph/dac.h"
|
||||
#endif
|
||||
#ifdef USE_RNG
|
||||
#include "mcu_periph/rng.h"
|
||||
#endif
|
||||
@@ -252,10 +249,6 @@ void mcu_init(void)
|
||||
#endif
|
||||
#endif // USE_SPI
|
||||
|
||||
#ifdef USE_DAC
|
||||
dac_init();
|
||||
#endif
|
||||
|
||||
#if USE_UDP0 || USE_UDP1 || USE_UDP2
|
||||
udp_arch_init();
|
||||
#endif
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#ifndef MCU_PERIPH_DAC_H
|
||||
#define MCU_PERIPH_DAC_H
|
||||
|
||||
#include "mcu_periph/dac_arch.h"
|
||||
|
||||
extern void dac_init(void);
|
||||
|
||||
|
||||
#endif /* MCU_PERIPH_DAC_H */
|
||||
Reference in New Issue
Block a user