diff options
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/nvic.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmaple/nvic.h b/libmaple/nvic.h index 3cdac5a..e8ca22d 100644 --- a/libmaple/nvic.h +++ b/libmaple/nvic.h @@ -29,6 +29,10 @@ #ifndef _NVIC_H_ #define _NVIC_H_ +#ifdef __cplusplus +extern "C"{ +#endif + #define NVIC_INT_USBHP 19 #define NVIC_INT_USBLP 20 @@ -50,10 +54,6 @@ #define NVIC_VectTab_RAM ((u32)0x20000000) #define NVIC_VectTab_FLASH ((u32)0x08000000) -#ifdef __cplusplus -extern "C"{ -#endif - enum { NVIC_TIMER1 = 27, NVIC_TIMER2 = 28, |