Fixed IAR compile errors using IAR EWARM 7.40

This commit is contained in:
skarg
2016-01-07 20:53:45 +00:00
parent b4a3fc7543
commit dd0fb9c841
+14 -8
View File
@@ -1073,15 +1073,21 @@ static __INLINE void __CLREX() { __ASM ("clrex"); }
/* intrinsic unsigned long __STREX(unsigned long, unsigned long); */ /* intrinsic unsigned long __STREX(unsigned long, unsigned long); */
/* intrinsic unsigned long __LDREX(unsigned long *); */ /* intrinsic unsigned long __LDREX(unsigned long *); */
/* IAR-EWARM 6.3 includes these: */ #if defined (__IAR_SYSTEMS_ICC__) && (__IAR_SYSTEMS_ICC__ > 6)
/* __ATTRIBUTES unsigned long __get_MSP( void ); */ /* IAR-EWARM 6.x includes these: */
/* __ATTRIBUTES void __set_MSP( unsigned long ); */ #else
/* __ATTRIBUTES unsigned long __get_PSP( void ); */ __ATTRIBUTES unsigned long __get_MSP( void );
/* __ATTRIBUTES void __set_PSP( unsigned long ); */ __ATTRIBUTES void __set_MSP( unsigned long );
__ATTRIBUTES unsigned long __get_PSP( void );
__ATTRIBUTES void __set_PSP( unsigned long );
/* __ATTRIBUTES unsigned long __REV16( unsigned long ); */ __ATTRIBUTES unsigned long __REV16( unsigned long );
/* __ATTRIBUTES unsigned long __RBIT( unsigned long ); */ __ATTRIBUTES unsigned long __RBIT( unsigned long );
#endif
#if defined (__IAR_SYSTEMS_ICC__) && (__IAR_SYSTEMS_ICC__ > 7)
/* IAR-EWARM 7.x includes these */
#else
/** /**
* @brief LDR Exclusive (8 bit) * @brief LDR Exclusive (8 bit)
* *
@@ -1101,7 +1107,7 @@ extern uint8_t __LDREXB(uint8_t *addr);
* Exclusive LDR command for 16 bit values * Exclusive LDR command for 16 bit values
*/ */
extern uint16_t __LDREXH(uint16_t *addr); extern uint16_t __LDREXH(uint16_t *addr);
#endif
/** /**
* @brief LDR Exclusive (32 bit) * @brief LDR Exclusive (32 bit)
* *