summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-03-25 00:40:51 +0700
committerhathach <[email protected]>2019-03-25 00:40:51 +0700
commit315076375f516ed6ea5d74601d53677af83d9306 (patch)
tree1779918d6a218050439c1e315412120b1522d53d /examples/device
parent18f248b142a477b2134d23a2902d8d7de6e4c195 (diff)
fix timer prio for freertos to blink led
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/cdc_msc_hid_freertos/ses/nrf5x/FreeRTOSConfig.h2
-rw-r--r--examples/device/cdc_msc_hid_freertos/src/main.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/device/cdc_msc_hid_freertos/ses/nrf5x/FreeRTOSConfig.h b/examples/device/cdc_msc_hid_freertos/ses/nrf5x/FreeRTOSConfig.h
index 26df38d3d..754158622 100644
--- a/examples/device/cdc_msc_hid_freertos/ses/nrf5x/FreeRTOSConfig.h
+++ b/examples/device/cdc_msc_hid_freertos/ses/nrf5x/FreeRTOSConfig.h
@@ -83,7 +83,7 @@
/* Software timer related definitions. */
#define configUSE_TIMERS 1
-#define configTIMER_TASK_PRIORITY 2
+#define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES-2)
#define configTIMER_QUEUE_LENGTH 32
#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE
diff --git a/examples/device/cdc_msc_hid_freertos/src/main.c b/examples/device/cdc_msc_hid_freertos/src/main.c
index b5d5cf790..388bd9ad1 100644
--- a/examples/device/cdc_msc_hid_freertos/src/main.c
+++ b/examples/device/cdc_msc_hid_freertos/src/main.c
@@ -125,6 +125,8 @@ void cdc_task(void* params)
tud_cdc_write_flush();
}
}
+
+ taskYIELD();
}
}