Add in a portDONT_DISCARD symbol as well.

This commit is contained in:
Soren Ptak 2024-03-26 09:17:29 -07:00
parent 3ac3e478c6
commit 76db96cf6b

View file

@ -221,6 +221,13 @@ typedef uint32_t TickType_t;
*/ */
#define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" ) #define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" )
/**
* @brief Ensure a symbol isn't removed from the compilation unit.
*
* @ingroup Port Interface Specifications
*/
#define portDONT_DISCARD __attribute__( ( used ) )
/** /**
* @brief Defines if the tick count can be accessed atomically. * @brief Defines if the tick count can be accessed atomically.
* *