aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates')
-rw-r--r--os/hal/templates/dac_lld.h2
-rw-r--r--os/hal/templates/halconf.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/os/hal/templates/dac_lld.h b/os/hal/templates/dac_lld.h
index ab2c3494a..c9cb13fc6 100644
--- a/os/hal/templates/dac_lld.h
+++ b/os/hal/templates/dac_lld.h
@@ -154,7 +154,7 @@ struct DACDriver {
/**
* @brief Current samples buffer pointer or @p NULL.
*/
- dacsample_t *samples;
+ const dacsample_t *samples;
/**
* @brief Current samples buffer depth or @p 0.
*/
diff --git a/os/hal/templates/halconf.h b/os/hal/templates/halconf.h
index d61f89d56..f879c03b3 100644
--- a/os/hal/templates/halconf.h
+++ b/os/hal/templates/halconf.h
@@ -62,6 +62,13 @@
#endif
/**
+ * @brief Enables the DAC subsystem.
+ */
+#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
+#define HAL_USE_DAC TRUE
+#endif
+
+/**
* @brief Enables the EXT subsystem.
*/
#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)