Fixed IAR compile errors using IAR EWARM 7.40
This commit is contained in:
@@ -1073,15 +1073,21 @@ static __INLINE void __CLREX() { __ASM ("clrex"); }
|
||||
/* intrinsic unsigned long __STREX(unsigned long, unsigned long); */
|
||||
/* intrinsic unsigned long __LDREX(unsigned long *); */
|
||||
|
||||
/* IAR-EWARM 6.3 includes these: */
|
||||
/* __ATTRIBUTES unsigned long __get_MSP( void ); */
|
||||
/* __ATTRIBUTES void __set_MSP( unsigned long ); */
|
||||
/* __ATTRIBUTES unsigned long __get_PSP( void ); */
|
||||
/* __ATTRIBUTES void __set_PSP( unsigned long ); */
|
||||
#if defined (__IAR_SYSTEMS_ICC__) && (__IAR_SYSTEMS_ICC__ > 6)
|
||||
/* IAR-EWARM 6.x includes these: */
|
||||
#else
|
||||
__ATTRIBUTES unsigned long __get_MSP( void );
|
||||
__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 __RBIT( unsigned long ); */
|
||||
__ATTRIBUTES unsigned long __REV16( 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)
|
||||
*
|
||||
@@ -1101,7 +1107,7 @@ extern uint8_t __LDREXB(uint8_t *addr);
|
||||
* Exclusive LDR command for 16 bit values
|
||||
*/
|
||||
extern uint16_t __LDREXH(uint16_t *addr);
|
||||
|
||||
#endif
|
||||
/**
|
||||
* @brief LDR Exclusive (32 bit)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user