Fixes for VC++ Companion compilation

This commit is contained in:
Bertrand Songis
2015-03-04 22:30:20 +01:00
parent 13999cc65e
commit fff8f5f67e
4 changed files with 23 additions and 10 deletions
@@ -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)
@@ -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.