aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32f1/include/series/nvic.h
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-04-05 16:44:11 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-04-11 16:56:56 -0400
commitfb061ae2e50a81904797146c3b5de8156dfd3f91 (patch)
tree64278d931487d727a8d25f5d5d3e326fb534c73b /libmaple/stm32f1/include/series/nvic.h
parent342c8de23e22b0b91daafb412f47b13deddf2128 (diff)
downloadlibrambutan-fb061ae2e50a81904797146c3b5de8156dfd3f91.tar.gz
librambutan-fb061ae2e50a81904797146c3b5de8156dfd3f91.zip
Don't conditionally compile rcc_clk_id or nvic_irq_num enumerators.
Whether or not a given peripheral is present on an F1 series MCU doesn't matter. It doesn't take up any extra space to include these enumerators, and it's convenient to have them defined so portable libmaple routines can safely refer to them. This can prevent the need for special series-specific versions of some functions. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f1/include/series/nvic.h')
-rw-r--r--libmaple/stm32f1/include/series/nvic.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/libmaple/stm32f1/include/series/nvic.h b/libmaple/stm32f1/include/series/nvic.h
index 69fd945..33783f3 100644
--- a/libmaple/stm32f1/include/series/nvic.h
+++ b/libmaple/stm32f1/include/series/nvic.h
@@ -102,7 +102,6 @@ typedef enum nvic_irq_num {
NVIC_TIMER8_UP = 44, /**< Timer 8 update */
NVIC_TIMER8_TRG_COM = 45, /**< Timer 8 trigger and commutation */
NVIC_TIMER8_CC = 46, /**< Timer 8 capture/compare */
-#ifdef STM32_HIGH_DENSITY
NVIC_ADC3 = 47, /**< ADC3 */
NVIC_FSMC = 48, /**< FSMC */
NVIC_SDIO = 49, /**< SDIO */
@@ -116,7 +115,6 @@ typedef enum nvic_irq_num {
NVIC_DMA2_CH2 = 57, /**< DMA2 channel 2 */
NVIC_DMA2_CH3 = 58, /**< DMA2 channel 3 */
NVIC_DMA2_CH_4_5 = 59, /**< DMA2 channels 4 and 5 */
-#endif
} nvic_irq_num;
static inline void nvic_irq_disable_all(void) {