Fixes to build STM32 with IAR.

This commit is contained in:
David Garske
2016-12-13 10:24:55 -08:00
parent 483e461c49
commit fd9a94b2bd
2 changed files with 4 additions and 2 deletions

View File

@ -89,6 +89,8 @@ STATIC INLINE word32 ByteReverseWord32(word32 value)
#ifdef PPC_INTRINSICS
/* PPC: load reverse indexed instruction */
return (word32)__lwbrx(&value,0);
#elif defined(__ICCARM__)
return (word32)__REV(value);
#elif defined(KEIL_INTRINSICS)
return (word32)__rev(value);
#elif defined(FAST_ROTATE)

View File

@ -938,7 +938,7 @@ static char *fgets(char *buff, int sz, FILE *fp)
#define NO_RABBIT
#define STM32F2_RNG
#define STM32F2_CRYPTO
#ifndef __GNUC__
#if !defined(__GNUC__) && !defined(__ICCARM__)
#define KEIL_INTRINSICS
#endif
#define NO_OLD_RNGNAME
@ -963,7 +963,7 @@ static char *fgets(char *buff, int sz, FILE *fp)
#define STM32F4_RNG
#define STM32F4_CRYPTO
#define NO_OLD_RNGNAME
#ifndef __GNUC__
#if !defined(__GNUC__) && !defined(__ICCARM__)
#define KEIL_INTRINSICS
#endif
#ifdef WOLFSSL_STM32_CUBEMX