summaryrefslogtreecommitdiff
path: root/nuttx/arch/z16/src/z16f/z16f_timerisr.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 14:38:33 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 14:38:33 +0000
commit5e50f40f37be6fd057b050e75aa2f4dcc9529b3c (patch)
tree2d7879282e98a0cab12bc282e900f2c050010b34 /nuttx/arch/z16/src/z16f/z16f_timerisr.c
parent03a31e4a728883bf41bd6712d38dae413a9a41bc (diff)
downloadpx4-nuttx-5e50f40f37be6fd057b050e75aa2f4dcc9529b3c.tar.gz
px4-nuttx-5e50f40f37be6fd057b050e75aa2f4dcc9529b3c.tar.bz2
px4-nuttx-5e50f40f37be6fd057b050e75aa2f4dcc9529b3c.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@2355 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z16/src/z16f/z16f_timerisr.c')
-rw-r--r--nuttx/arch/z16/src/z16f/z16f_timerisr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/arch/z16/src/z16f/z16f_timerisr.c b/nuttx/arch/z16/src/z16f/z16f_timerisr.c
index 37e834589..981cc54f0 100644
--- a/nuttx/arch/z16/src/z16f/z16f_timerisr.c
+++ b/nuttx/arch/z16/src/z16f/z16f_timerisr.c
@@ -1,7 +1,7 @@
/***************************************************************************
* z16f/z16f_timerisr.c
*
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -39,7 +39,7 @@
#include <nuttx/config.h>
-#include <sys/types.h>
+#include <stdint.h>
#include <debug.h>
#include <nuttx/arch.h>
@@ -78,7 +78,7 @@ extern _Erom unsigned long SYS_CLK_FREQ;
*
***************************************************************************/
-int up_timerisr(int irq, uint32 *regs)
+int up_timerisr(int irq, uint32_t *regs)
{
/* Process timer interrupt */
@@ -119,7 +119,7 @@ void up_timerinit(void)
* this yields 200.
*/
- putreg16(((uint32)_DEFCLK / 100000), Z16F_TIMER0_R);
+ putreg16(((uint32_t)_DEFCLK / 100000), Z16F_TIMER0_R);
/* Enable the timer */