1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

OP-1026 fix review issues

This commit is contained in:
Alessio Morale 2014-03-09 16:08:27 +01:00
parent 2bcbf7dc86
commit 519d74ad1b
3 changed files with 4 additions and 2 deletions

View File

@ -169,8 +169,10 @@ uint8_t PIOS_TASK_MONITOR_GetIdlePercentage()
xSemaphoreGiveRecursive(mLock);
return running_time_percentage;
#endif
#else
return 0;
#endif
}

View File

@ -107,7 +107,6 @@ extern void PIOS_TASK_MONITOR_ForEachTask(TaskMonitorTaskInfoCallback callback,
/**
* Return the idle task running time percentage.
*/
extern uint8_t PIOS_TASK_MONITOR_GetIdlePercentage();
#endif // PIOS_TASK_MONITOR_H

View File

@ -65,6 +65,7 @@
#define INCLUDE_xTaskGetCurrentTaskHandle 1
#define INCLUDE_uxTaskGetStackHighWaterMark 1
#define INCLUDE_xTaskGetIdleTaskHandle 1
/* This is the raw value as per the Cortex-M3 NVIC. Values can be 255
(lowest) to 1 (highest maskable) to 0 (highest non-maskable). */
#define configKERNEL_INTERRUPT_PRIORITY 15 << 4 /* equivalent to NVIC priority 15 */