Skip to content

Commit 9051305

Browse files
committed
Remove ifdef guard around uvisor_ctx macro
mbed OS has been updated and we no longer need to provide the backwards compatibility `ifdef` guard. Remove the `ifdef` guard as unnecessary.
1 parent ecd1ee3 commit 9051305

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

source/led1.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ UVISOR_BOX_HEAPSIZE(3 * 1024);
2222
UVISOR_BOX_MAIN(led1_main, osPriorityNormal, 512);
2323
UVISOR_BOX_CONFIG(box_led1, acl, 512, box_context);
2424

25-
/* FIXME: The guard is needed for backwards-compatibility reasons. Remove it
26-
* when mbed OS is updated. */
27-
#ifdef __uvisor_ctx
2825
#define uvisor_ctx ((box_context *) __uvisor_ctx)
29-
#endif
3026

3127
static void led1_main(const void *)
3228
{

source/led2.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ UVISOR_BOX_HEAPSIZE(3 * 1024);
2222
UVISOR_BOX_MAIN(led2_main, osPriorityNormal, 512);
2323
UVISOR_BOX_CONFIG(box_led2, acl, 512, box_context);
2424

25-
/* FIXME: The guard is needed for backwards-compatibility reasons. Remove it
26-
* when mbed OS is updated. */
27-
#ifdef __uvisor_ctx
2825
#define uvisor_ctx ((box_context *) __uvisor_ctx)
29-
#endif
3026

3127
static void led2_main(const void *)
3228
{

source/led3.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ UVISOR_BOX_HEAPSIZE(3 * 1024);
2222
UVISOR_BOX_MAIN(led3_main, osPriorityNormal, 1024);
2323
UVISOR_BOX_CONFIG(box_led3, acl, 512, box_context);
2424

25-
/* FIXME: The guard is needed for backwards-compatibility reasons. Remove it
26-
* when mbed OS is updated. */
27-
#ifdef __uvisor_ctx
2825
#define uvisor_ctx ((box_context *) __uvisor_ctx)
29-
#endif
3026

3127
static void run_3(void)
3228
{

0 commit comments

Comments
 (0)