Skip to content

Commit feb6d5f

Browse files
committed
Define symbol to context pointer
1 parent 4437a56 commit feb6d5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/led.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ UVISOR_BOX_HEAPSIZE(3072);
3737
UVISOR_BOX_MAIN(my_box_main, osPriorityNormal, 1024);
3838
UVISOR_BOX_CONFIG(my_box, acl, 1024, my_box_context);
3939

40+
/* FIXME: The guard is needed for backwards-compatibility reasons. Remove it
41+
* when mbed OS is updated. */
42+
#ifdef __uvisor_ctx
43+
#define uvisor_ctx ((my_box_context *) __uvisor_ctx)
44+
#endif
45+
4046
static void my_box_switch_irq(void)
4147
{
4248
/* Flip LED state. */

0 commit comments

Comments
 (0)