Merge pull request #663 from dgarske/stm32_iar

Fixes to build STM32 with IAR
This commit is contained in:
toddouska
2016-12-15 11:26:43 -08:00
committed by GitHub
2 changed files with 8 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

@ -936,9 +936,11 @@ static char *fgets(char *buff, int sz, FILE *fp)
#define NO_WOLFSSL_DIR
#undef NO_RABBIT
#define NO_RABBIT
#undef NO_64BIT
#define NO_64BIT
#define STM32F2_RNG
#define STM32F2_CRYPTO
#ifndef __GNUC__
#if !defined(__GNUC__) && !defined(__ICCARM__)
#define KEIL_INTRINSICS
#endif
#define NO_OLD_RNGNAME
@ -960,10 +962,12 @@ static char *fgets(char *buff, int sz, FILE *fp)
#define NO_WOLFSSL_DIR
#undef NO_RABBIT
#define NO_RABBIT
#undef NO_64BIT
#define NO_64BIT
#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