Xtensa_ESP32: Add definition for portMEMORY_BARRIER
This fixes crash observed in Amazon FreeRTOS when optimisations are enabled
#define configASSERT( x ) if( !( x ) ) { porttracePrint( -1 ); printf( "\nAssertion failed in %s:%d\n", __FILE__, __LINE__ ); exit( -1 ); }
#endif
+/* Barriers */
+ #define portMEMORY_BARRIER() __asm volatile ( "" ::: "memory" )
+
+
#endif // __ASSEMBLER__
/* *INDENT-OFF* */
