AP_HAL_ChibiOS: Handle scripting priority

This commit is contained in:
Michael du Breuil 2018-09-27 16:17:27 -07:00 committed by Andrew Tridgell
parent 73901274b0
commit 11ab6c59e1
2 changed files with 2 additions and 0 deletions

View File

@ -419,6 +419,7 @@ bool Scheduler::thread_create(AP_HAL::MemberProc proc, const char *name, uint32_
{ PRIORITY_IO, APM_IO_PRIORITY},
{ PRIORITY_UART, APM_UART_PRIORITY},
{ PRIORITY_STORAGE, APM_STORAGE_PRIORITY},
{ PRIORITY_SCRIPTING, APM_SCRIPTING_PRIORITY},
};
for (uint8_t i=0; i<ARRAY_SIZE(priority_map); i++) {
if (priority_map[i].base == base) {

View File

@ -29,6 +29,7 @@
#define APM_STORAGE_PRIORITY 59
#define APM_IO_PRIORITY 58
#define APM_STARTUP_PRIORITY 10
#define APM_SCRIPTING_PRIORITY LOWPRIO
/*
boost priority handling