summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/common/up_reprioritizertr.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 14:15:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 14:15:34 +0000
commit03a31e4a728883bf41bd6712d38dae413a9a41bc (patch)
treeabe04d3d494a263aa46a4467603c8027dfa701e9 /nuttx/arch/z80/src/common/up_reprioritizertr.c
parentb10830785275aac3667b88c2d1a90a5563bbdb49 (diff)
downloadpx4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.tar.gz
px4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.tar.bz2
px4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.zip
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2354 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z80/src/common/up_reprioritizertr.c')
-rw-r--r--nuttx/arch/z80/src/common/up_reprioritizertr.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/nuttx/arch/z80/src/common/up_reprioritizertr.c b/nuttx/arch/z80/src/common/up_reprioritizertr.c
index 31fab37de..f52050033 100644
--- a/nuttx/arch/z80/src/common/up_reprioritizertr.c
+++ b/nuttx/arch/z80/src/common/up_reprioritizertr.c
@@ -39,7 +39,8 @@
#include <nuttx/config.h>
-#include <sys/types.h>
+#include <stdint.h>
+#include <stdbool.h>
#include <sched.h>
#include <debug.h>
@@ -86,7 +87,7 @@
*
****************************************************************************/
-void up_reprioritize_rtr(FAR _TCB *tcb, ubyte priority)
+void up_reprioritize_rtr(FAR _TCB *tcb, uint8_t priority)
{
/* Verify that the caller is sane */
@@ -100,12 +101,12 @@ void up_reprioritize_rtr(FAR _TCB *tcb, ubyte priority)
else
{
FAR _TCB *rtcb = (FAR _TCB*)g_readytorun.head;
- boolean switch_needed;
+ bool switch_needed;
slldbg("TCB=%p PRI=%d\n", tcb, priority);
/* Remove the tcb task from the ready-to-run list.
- * sched_removereadytorun will return TRUE if we just
+ * sched_removereadytorun will return true if we just
* remove the head of the ready to run list.
*/
@@ -113,10 +114,10 @@ void up_reprioritize_rtr(FAR _TCB *tcb, ubyte priority)
/* Setup up the new task priority */
- tcb->sched_priority = (ubyte)priority;
+ tcb->sched_priority = (uint8_t)priority;
/* Return the task to the specified blocked task list.
- * sched_addreadytorun will return TRUE if the task was
+ * sched_addreadytorun will return true if the task was
* added to the new list. We will need to perform a context
* switch only if the EXCLUSIVE or of the two calls is non-zero
* (i.e., one and only one the calls changes the head of the