diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-04-10 15:22:21 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-04-11 16:56:57 -0400 |
commit | 3300145b6c7cb9cc1d57c47f0ed85bd16e57c615 (patch) | |
tree | 7403ff6d200bbb6e097408641070949480cbbeae | |
parent | 8ca93860929f99807190bf43049dce750cff4b2c (diff) | |
download | librambutan-3300145b6c7cb9cc1d57c47f0ed85bd16e57c615.tar.gz librambutan-3300145b6c7cb9cc1d57c47f0ed85bd16e57c615.zip |
stm32f2/nvic.h: Add fake NVIC_TIMER6 irq number.
This is necessary to make some timer code portable, but I'm not sure
it's a good idea.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r-- | libmaple/stm32f2/include/series/nvic.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmaple/stm32f2/include/series/nvic.h b/libmaple/stm32f2/include/series/nvic.h index 129e3bc..c433068 100644 --- a/libmaple/stm32f2/include/series/nvic.h +++ b/libmaple/stm32f2/include/series/nvic.h @@ -141,6 +141,10 @@ typedef enum nvic_irq_num { NVIC_CRYP = 79, /**< Cryptographic processor */ NVIC_HASH_RNG = 80, /**< Hash and random number generation */ + + /* Fake enumerator values, for compatiblity with F1. + * TODO decide if this is actually a good idea. */ + NVIC_TIMER6 = NVIC_TIMER6_DAC, /**< For compatibility with STM32F1. */ } nvic_irq_num; static inline void nvic_irq_disable_all(void) { |