20 #ifndef MBEDTLS_SLPAL_BAREMETAL_H
21 #define MBEDTLS_SLPAL_BAREMETAL_H
23 #if !defined(MBEDTLS_CONFIG_FILE)
26 #include MBEDTLS_CONFIG_FILE
31 #if defined(EMLIB_USER_CONFIG)
32 #include "emlib_config.h"
36 #include "em_assert.h"
46 #define SLPAL_WAIT_FOREVER (-1)
49 #define SLPAL_NON_BLOCKING (0)
51 #if !defined(CORE_ATOMIC_BASE_PRIORITY_LEVEL)
52 #define CORE_ATOMIC_BASE_PRIORITY_LEVEL (3)
56 #if defined(MBEDTLS_CRYPTO_IRQ_PRIORITY)
57 #define SLPAL_CRYPTO_IRQ_PRIORITY MBEDTLS_CRYPTO_IRQ_PRIORITY
59 #define SLPAL_CRYPTO_IRQ_PRIORITY (0x0)
74 #if defined(SLPAL_TEST)
76 extern unsigned int gTicks;
116 CORE_ExitAtomic((CORE_irqState_t) irqState);
262 while( *pComp ==
false )
264 #if defined(SLPAL_TEST)
273 while ((*pComp ==
false) && (ticks>0))
276 #if defined(SLPAL_TEST)
365 while( *pMutex == 0 )
367 #if defined(SLPAL_TEST)
376 while ( (*pMutex == 0) && (ticks>0) )
379 #if defined(SLPAL_TEST)
#define RUNNING_AT_INTERRUPT_LEVEL
uint32_t SLPAL_irqState_t
Storage for PRIMASK or BASEPRI value used for SLPAL critical regions.
Compatibility names (set of defines)
#define SLPAL_ERROR_TIMEOUT