Fixes for VC++ Companion compilation
This commit is contained in:
+2
@@ -1671,7 +1671,9 @@ typedef struct
|
||||
#define GPIOI ((GPIO_TypeDef *) GPIOI_BASE)
|
||||
#define GPIOJ ((GPIO_TypeDef *) GPIOJ_BASE)
|
||||
#define GPIOK ((GPIO_TypeDef *) GPIOK_BASE)
|
||||
#if !defined WIN32 && defined __GNUC__
|
||||
#define CRC ((CRC_TypeDef *) CRC_BASE)
|
||||
#endif
|
||||
#define RCC ((RCC_TypeDef *) RCC_BASE)
|
||||
#define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
|
||||
#define DMA1 ((DMA_TypeDef *) DMA1_BASE)
|
||||
|
||||
+5
@@ -100,6 +100,11 @@
|
||||
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
|
||||
#define __STATIC_INLINE static inline
|
||||
|
||||
#else
|
||||
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
|
||||
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
|
||||
#define __STATIC_INLINE static inline
|
||||
#define __DSB()
|
||||
#endif
|
||||
|
||||
/** __FPU_USED indicates whether an FPU is used or not. For this, __FPU_PRESENT has to be checked prior to making use of FPU specific registers and functions.
|
||||
|
||||
Reference in New Issue
Block a user