git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_16.1.x@9577 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2016-06-04 17:04:16 +00:00
parent fc903ea664
commit b4ddc58755
2 changed files with 3 additions and 1 deletions

View File

@ -502,7 +502,7 @@ static inline osStatus osThreadYield(void) {
*/
static inline osPriority osThreadGetPriority(osThreadId thread_id) {
return thread_id->p_prio;
return (osPriority)(NORMALPRIO - thread_id->p_prio);
}
/**

View File

@ -73,6 +73,8 @@
*****************************************************************************
*** 16.1.5 ***
- HAL: Fixed CMSIS function osThreadGetPriority() does not return correct
priority (bug #752).
- HAL: Fixed wrong conditional branches in _adc_isr_error_code (bug #751).
- HAL: Fixed bug in STM32/ADCv3 (bug #750).
- HAL: Fixed OPT settings and added board folder in STM32F4xx-USB_CDC demo