aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/include
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-03 23:09:37 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-04 00:17:01 -0400
commit6ad1757e62dcfe112a473ef6474b9f4c1317cf9e (patch)
tree88fbb7030f35132a2a45578db08b8e65694da0c8 /libmaple/include
parent0873e4fc167f08fbac4b188a755a61f5afb03d20 (diff)
downloadlibrambutan-6ad1757e62dcfe112a473ef6474b9f4c1317cf9e.tar.gz
librambutan-6ad1757e62dcfe112a473ef6474b9f4c1317cf9e.zip
stm32.h: Add STM32_HAVE_DAC feature-test.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/include')
-rw-r--r--libmaple/include/libmaple/stm32.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmaple/include/libmaple/stm32.h b/libmaple/include/libmaple/stm32.h
index 94fb689..3845cab 100644
--- a/libmaple/include/libmaple/stm32.h
+++ b/libmaple/include/libmaple/stm32.h
@@ -78,6 +78,7 @@ extern "C" {
!defined(STM32_TIMER_MASK) || \
!defined(STM32_DELAY_US_MULT) || \
!defined(STM32_SRAM_END) || \
+ !defined(STM32_HAVE_DAC) || \
!defined(STM32_HAVE_FSMC) || \
!defined(STM32_HAVE_USB))
#error "Bad STM32F1 configuration. Check <series/stm32.h> header for your MCU."
@@ -180,6 +181,11 @@ extern "C" {
#define STM32_SRAM_END
/**
+ * @brief 1 if the target MCU has a DAC, and 0 otherwise.
+ */
+#define STM32_HAVE_DAC
+
+/**
* @brief 1 if the target MCU has the FSMC peripheral, and 0 otherwise.
*
* Note that the feature set of the FSMC peripheral is restricted on