Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change OS Task priority for ReceiverThread #724

Merged
merged 1 commit into from
Jun 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/CLR/Debugger/Debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -815,10 +815,6 @@ bool CLR_DBG_Debugger::Monitor_Reboot( WP_Message* msg)

WP_ReplyToCommand(msg, true, false, NULL, 0);

// Allow some time for CLR to Reboot
// FIXME find a better way to syncronise the reboot with clr
PLATFORM_WAIT( 1000 );

return true;
}

Expand Down
2 changes: 0 additions & 2 deletions src/HAL/Include/nanoHAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -1832,8 +1832,6 @@ bool Watchdog_GetSetEnabled ( bool enabled, bool fSet );
//#define GLOBAL_LOCK_SOCKETS(x) // UNDONE: FIXME: SmartPtr_IRQ x
#define GLOBAL_UNLOCK(x)

#define PLATFORM_WAIT(milliSecs)

#if defined(_DEBUG)
#define ASSERT_IRQ_MUST_BE_OFF() ASSERT( HAL_Windows_HasGlobalLock())
#define ASSERT_IRQ_MUST_BE_ON() ASSERT(!HAL_Windows_HasGlobalLock())
Expand Down
4 changes: 1 addition & 3 deletions targets/CMSIS-OS/ChibiOS/Include/targetHAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
#define GLOBAL_UNLOCK(x); chSysUnlock();
#define ASSERT_IRQ_MUST_BE_OFF() // TODO need to determine if this needs implementation

#define PLATFORM_WAIT(milliSecs) osDelay(milliSecs);

// Defininitions for Sockets/Network
// Definitions for Sockets/Network
#define GLOBAL_LOCK_SOCKETS(x)
#define SOCKETS_MAX_COUNT 16
#define LPCSTR const uint8_t*
Expand Down
5 changes: 1 addition & 4 deletions targets/FreeRTOS/ESP32_DevKitC/Include/targetHAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ extern portMUX_TYPE globalLockMutex;
#define GLOBAL_UNLOCK(x) taskEXIT_CRITICAL(&globalLockMutex);
#define ASSERT_IRQ_MUST_BE_OFF() // TODO need to determine if this needs implementation


#define PLATFORM_WAIT(milliSecs) vTaskDelay(milliSecs/portTICK_PERIOD_MS);

// Defininitions for Sockets/Network
// Definitions for Sockets/Network
#define GLOBAL_LOCK_SOCKETS(x)
#define SOCKETS_MAX_COUNT 16
#define LPCSTR const uint8_t*
Expand Down
2 changes: 1 addition & 1 deletion targets/FreeRTOS/ESP32_DevKitC/nanoCLR/app_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void app_main()

Esp32FlashDriver_InitializeDevice(0);

xTaskCreatePinnedToCore(&receiver_task, "ReceiverThread", 2048, NULL, 6, NULL, 1);
xTaskCreatePinnedToCore(&receiver_task, "ReceiverThread", 2048, NULL, 5, NULL, 1);

// Start the main task pinned to 2nd core
xTaskCreatePinnedToCore(&main_task, "main_task", 15000, NULL, 5, NULL, 1);
Expand Down