[dac] remove DAC

This commit is contained in:
Fabien-B
2026-02-02 14:54:31 +01:00
committed by Freek van Tienen
parent 37a86bb389
commit 616ee240a6
7 changed files with 0 additions and 61 deletions
-21
View File
@@ -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>
-4
View File
@@ -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
-7
View File
@@ -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
-9
View File
@@ -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 */