summaryrefslogtreecommitdiff
path: root/nuttx/include/sys/syscall.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-15 14:57:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-15 14:57:53 +0000
commitf1893cbaf513c7f0fbca77240fc59707ad039734 (patch)
tree4a5128533aa866afa19719584a764f0f83b9d165 /nuttx/include/sys/syscall.h
parentc548df2a3788bfe7527f7fef439d1365cb095e7c (diff)
downloadpx4-nuttx-f1893cbaf513c7f0fbca77240fc59707ad039734.tar.gz
px4-nuttx-f1893cbaf513c7f0fbca77240fc59707ad039734.tar.bz2
px4-nuttx-f1893cbaf513c7f0fbca77240fc59707ad039734.zip
Add time and uptime
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3506 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/sys/syscall.h')
-rw-r--r--nuttx/include/sys/syscall.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/nuttx/include/sys/syscall.h b/nuttx/include/sys/syscall.h
index 616c39546..5c1570c53 100644
--- a/nuttx/include/sys/syscall.h
+++ b/nuttx/include/sys/syscall.h
@@ -135,11 +135,17 @@
#ifndef CONFIG_DISABLE_CLOCK
# define SYS_clock_systimer (__SYS_clock+0)
-# define SYS_clock_getres (__SYS_clock+1)
-# define SYS_clock_gettime (__SYS_clock+2)
-# define SYS_clock_settime (__SYS_clock+3)
-# define SYS_gettimeofday (__SYS_clock+4)
-# define __SYS_timers (__SYS_clock+5)
+# define SYS_clock_uptime (__SYS_clock+1)
+# define SYS_clock_getres (__SYS_clock+2)
+# define SYS_clock_gettime (__SYS_clock+3)
+# define SYS_clock_settime (__SYS_clock+4)
+# define SYS_gettimeofday (__SYS_clock+5)
+# ifdef CONFIG_UPTIME
+# define SYS_clock_uptime (__SYS_clock+6)
+# define __SYS_timers (__SYS_clock+7)
+# else
+# define __SYS_timers (__SYS_clock+6)
+#endif
#else
# define __SYS_timers __SYS_clock
#endif