git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9576 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2016-06-04 17:04:10 +00:00
parent 3bbaa571d4
commit 037b48cf4d
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -117,6 +117,8 @@
- RT: Merged RT4.
- NIL: Merged NIL2.
- NIL: Added STM32F7 demo.
- HAL: Fixed CMSIS function osThreadGetPriority() does not return correct
priority (bug #752)(backported to 2.6.10, 3.0.6 and 16.1.5).
- HAL: Fixed wrong conditional branches in _adc_isr_error_code (bug #751)
(backported to 2.6.10, 3.0.6 and 16.1.5).
- HAL: Fixed bug in STM32/ADCv3 (bug #750).