File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ UVISOR_BOX_HEAPSIZE(3 * 1024);
22
22
UVISOR_BOX_MAIN (led1_main, osPriorityNormal, 512 );
23
23
UVISOR_BOX_CONFIG (box_led1, acl, 512 , box_context);
24
24
25
+ /* FIXME: The guard is needed for backwards-compatibility reasons. Remove it
26
+ * when mbed OS is updated. */
27
+ #ifdef __uvisor_ctx
28
+ #define uvisor_ctx ((my_box_context *) __uvisor_ctx)
29
+ #endif
30
+
25
31
static void led1_main (const void *)
26
32
{
27
33
DigitalOut led1 (LED1);
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ UVISOR_BOX_HEAPSIZE(3 * 1024);
22
22
UVISOR_BOX_MAIN (led2_main, osPriorityNormal, 512 );
23
23
UVISOR_BOX_CONFIG (box_led2, acl, 512 , box_context);
24
24
25
+ /* FIXME: The guard is needed for backwards-compatibility reasons. Remove it
26
+ * when mbed OS is updated. */
27
+ #ifdef __uvisor_ctx
28
+ #define uvisor_ctx ((my_box_context *) __uvisor_ctx)
29
+ #endif
30
+
25
31
static void led2_main (const void *)
26
32
{
27
33
DigitalOut led2 (LED2);
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ UVISOR_BOX_HEAPSIZE(3 * 1024);
22
22
UVISOR_BOX_MAIN (led3_main, osPriorityNormal, 1024 );
23
23
UVISOR_BOX_CONFIG (box_led3, acl, 512 , box_context);
24
24
25
+ /* FIXME: The guard is needed for backwards-compatibility reasons. Remove it
26
+ * when mbed OS is updated. */
27
+ #ifdef __uvisor_ctx
28
+ #define uvisor_ctx ((my_box_context *) __uvisor_ctx)
29
+ #endif
30
+
25
31
static void run_3 (void )
26
32
{
27
33
while (1 ) {
You can’t perform that action at this time.
0 commit comments