Skip to content
File

Blob: firmware/platform/tests/crypto_profile/freertos/FreeRTOS.h

cpp19 lines
1#pragma once
2#include <assert.h>
3 
4typedef int portMUX_TYPE;
5#define portMUX_INITIALIZER_UNLOCKED 0
6extern unsigned test_lock_depth;
7#define portENTER_CRITICAL(lock) \
8 do { \
9 (void)(lock); \
10 assert(test_lock_depth++ == 0); \
11 } while (0)
12#define portEXIT_CRITICAL(lock) \
13 do { \
14 (void)(lock); \
15 assert(test_lock_depth-- == 1); \
16 } while (0)
17 
18int xPortInIsrContext(void);