forked from wolfSSL/wolfssl
Fixes to build STM32 with IAR.
This commit is contained in:
@@ -89,6 +89,8 @@ STATIC INLINE word32 ByteReverseWord32(word32 value)
|
|||||||
#ifdef PPC_INTRINSICS
|
#ifdef PPC_INTRINSICS
|
||||||
/* PPC: load reverse indexed instruction */
|
/* PPC: load reverse indexed instruction */
|
||||||
return (word32)__lwbrx(&value,0);
|
return (word32)__lwbrx(&value,0);
|
||||||
|
#elif defined(__ICCARM__)
|
||||||
|
return (word32)__REV(value);
|
||||||
#elif defined(KEIL_INTRINSICS)
|
#elif defined(KEIL_INTRINSICS)
|
||||||
return (word32)__rev(value);
|
return (word32)__rev(value);
|
||||||
#elif defined(FAST_ROTATE)
|
#elif defined(FAST_ROTATE)
|
||||||
|
@@ -938,7 +938,7 @@ static char *fgets(char *buff, int sz, FILE *fp)
|
|||||||
#define NO_RABBIT
|
#define NO_RABBIT
|
||||||
#define STM32F2_RNG
|
#define STM32F2_RNG
|
||||||
#define STM32F2_CRYPTO
|
#define STM32F2_CRYPTO
|
||||||
#ifndef __GNUC__
|
#if !defined(__GNUC__) && !defined(__ICCARM__)
|
||||||
#define KEIL_INTRINSICS
|
#define KEIL_INTRINSICS
|
||||||
#endif
|
#endif
|
||||||
#define NO_OLD_RNGNAME
|
#define NO_OLD_RNGNAME
|
||||||
@@ -963,7 +963,7 @@ static char *fgets(char *buff, int sz, FILE *fp)
|
|||||||
#define STM32F4_RNG
|
#define STM32F4_RNG
|
||||||
#define STM32F4_CRYPTO
|
#define STM32F4_CRYPTO
|
||||||
#define NO_OLD_RNGNAME
|
#define NO_OLD_RNGNAME
|
||||||
#ifndef __GNUC__
|
#if !defined(__GNUC__) && !defined(__ICCARM__)
|
||||||
#define KEIL_INTRINSICS
|
#define KEIL_INTRINSICS
|
||||||
#endif
|
#endif
|
||||||
#ifdef WOLFSSL_STM32_CUBEMX
|
#ifdef WOLFSSL_STM32_CUBEMX
|
||||||
|
Reference in New Issue
Block a user