diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-07 19:22:32 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-07 19:22:32 +0000 |
commit | 285d06f3b69fd996abc669050da21f7b5db83010 (patch) | |
tree | 3ea6c50045a3fe90c53f21713a5b5a51be3958b7 /os/ports/RVCT | |
parent | 6583405cee23c86dd6c9ac77a46dbbf58077760a (diff) | |
download | ChibiOS-285d06f3b69fd996abc669050da21f7b5db83010.tar.gz ChibiOS-285d06f3b69fd996abc669050da21f7b5db83010.tar.bz2 ChibiOS-285d06f3b69fd996abc669050da21f7b5db83010.zip |
Fixed ADC divider in STM32F4 demos. Completed implemetation of new RR scheduling.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3941 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/RVCT')
-rw-r--r-- | os/ports/RVCT/ARMCMx/chcore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/ports/RVCT/ARMCMx/chcore.h b/os/ports/RVCT/ARMCMx/chcore.h index f15df5f90..521f7ea73 100644 --- a/os/ports/RVCT/ARMCMx/chcore.h +++ b/os/ports/RVCT/ARMCMx/chcore.h @@ -168,7 +168,7 @@ struct intctx {}; * @brief Inlineable version of this kernel function.
*/
#define chSchIsPreemptionRequired() \
- (rlist.r_preempt ? firstprio(&rlist.r_queue) > currp->p_prio : \
+ (currp->p_preempt ? firstprio(&rlist.r_queue) > currp->p_prio : \
firstprio(&rlist.r_queue) >= currp->p_prio)
#else /* CH_TIME_QUANTUM == 0 */
#define chSchIsPreemptionRequired() \
|