Skip to content

Commit a8b7fbe

Browse files
committed
New changes according to the review : Priority 0 for display, 1 for system, timer and ble host, and 2 for ble LL
1 parent cd1f218 commit a8b7fbe

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/FreeRTOSConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
#define configUSE_TICKLESS_IDLE_SIMPLE_DEBUG 0 /* See into vPortSuppressTicksAndSleep source code for explanation */
6161
#define configCPU_CLOCK_HZ (SystemCoreClock)
6262
#define configTICK_RATE_HZ 1024
63-
#define configMAX_PRIORITIES (4)
63+
#define configMAX_PRIORITIES (3)
6464
#define configMINIMAL_STACK_SIZE (120)
6565
#define configTOTAL_HEAP_SIZE (1024 * 17)
6666
#define configMAX_TASK_NAME_LEN (4)

src/components/ble/NimbleController.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ int GAPEventCallback(struct ble_gap_event* event, void* arg) {
7777

7878
void NimbleController::Init() {
7979
while (!ble_hs_synced()) {
80+
vTaskDelay(10);
8081
}
8182

8283
nptr = this;

src/libs/mynewt-nimble/porting/npl/freertos/src/nimble_port_freertos.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ nimble_port_freertos_init(TaskFunction_t host_task_fn)
3838
* since it has compatible prototype.
3939
*/
4040
xTaskCreate(nimble_port_ll_task_func, "ll", configMINIMAL_STACK_SIZE + 200,
41-
NULL, 3, &ll_task_h);
41+
NULL, 2, &ll_task_h);
4242
#endif
4343

4444
/*
@@ -47,5 +47,5 @@ nimble_port_freertos_init(TaskFunction_t host_task_fn)
4747
* default queue it is just easier to make separate task which does this.
4848
*/
4949
xTaskCreate(host_task_fn, "ble", configMINIMAL_STACK_SIZE + 600,
50-
NULL, 2, &host_task_h);
50+
NULL, 1, &host_task_h);
5151
}

0 commit comments

Comments
 (0)