Fixed compile of STM32F10x project with IAR-EWARM 7.40.

This commit is contained in:
skarg
2016-01-07 21:36:32 +00:00
parent 0697065030
commit be74823235
2 changed files with 136 additions and 49 deletions
@@ -1542,6 +1542,7 @@ static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
*
* Note: The priority cannot be set for every core interrupt.
*/
#ifndef __CSTAT__
static __INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn)
{
@@ -1550,7 +1551,7 @@ static __INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn)
else {
return((uint32_t)(NVIC->IP[(uint32_t)(IRQn)] >> (8 - __NVIC_PRIO_BITS))); } /* get priority for device specific interrupts */
}
#endif
/**
* @brief Encode the priority for an interrupt