diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-06-04 17:04:10 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-06-04 17:04:10 +0000 |
commit | 037b48cf4d6e67b2512b3927be776ca68e96f5eb (patch) | |
tree | b4e39dcd5acdf17049918ecf102825b26efea2a5 | |
parent | 3bbaa571d416b04e88c3ca7fea276d750eee9c96 (diff) | |
download | ChibiOS-037b48cf4d6e67b2512b3927be776ca68e96f5eb.tar.gz ChibiOS-037b48cf4d6e67b2512b3927be776ca68e96f5eb.tar.bz2 ChibiOS-037b48cf4d6e67b2512b3927be776ca68e96f5eb.zip |
Fixed bug #752.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9576 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/common/abstractions/cmsis_os/cmsis_os.h | 2 | ||||
-rw-r--r-- | readme.txt | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/os/common/abstractions/cmsis_os/cmsis_os.h b/os/common/abstractions/cmsis_os/cmsis_os.h index fff13f19b..6f8478e8e 100644 --- a/os/common/abstractions/cmsis_os/cmsis_os.h +++ b/os/common/abstractions/cmsis_os/cmsis_os.h @@ -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);
}
/**
diff --git a/readme.txt b/readme.txt index 7a6b253a0..aed56c80b 100644 --- a/readme.txt +++ b/readme.txt @@ -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).
|