Skip to content

Commit 9513c8b

Browse files
committed
Moved EXTI2_IRQn definition for STM32F3xx
Signed-off-by: Frederic Pillon <[email protected]>
1 parent e3f4a48 commit 9513c8b

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

cores/arduino/stm32/interrupt.h

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
#include "stm32_def.h"
4444
#include "PinNames.h"
4545

46+
#if defined(STM32F3xx)
47+
#define EXTI2_IRQn EXTI2_TSC_IRQn
48+
#endif
49+
4650
#ifdef __cplusplus
4751
#include <functional>
4852

cores/arduino/stm32/stm32_def.h

-19
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,6 @@
5151
#endif
5252

5353
// Here define some compatibility
54-
#ifdef STM32F0xx
55-
56-
#elif defined(STM32F1xx)
57-
58-
#elif defined(STM32F2xx)
59-
60-
#elif defined(STM32F3xx)
61-
#define EXTI2_IRQn EXTI2_TSC_IRQn
62-
#elif defined(STM32F4xx)
63-
64-
#elif defined(STM32F7xx)
65-
66-
#elif defined(STM32L0xx)
67-
68-
#elif defined(STM32L1xx)
69-
70-
#elif defined(STM32L4xx)
71-
#endif
72-
7354
#ifndef CAN1
7455
#define CAN1 CAN
7556
#endif

0 commit comments

Comments
 (0)