diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-06 18:29:05 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-06 18:29:05 -0600 |
commit | 4a683f82ef59e40b9a5505148f957cbc18a56433 (patch) | |
tree | 984fa5e722039d5f58c39a4e851e084e621e4ced /nuttx/sched | |
parent | afc70c6b454699c55215b44c2eb577b3a8708c55 (diff) | |
download | px4-nuttx-4a683f82ef59e40b9a5505148f957cbc18a56433.tar.gz px4-nuttx-4a683f82ef59e40b9a5505148f957cbc18a56433.tar.bz2 px4-nuttx-4a683f82ef59e40b9a5505148f957cbc18a56433.zip |
if CONFIG_SCHED_TICKLESS is defined, then the global variable g_system_timer does not exist.
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/clock_internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/sched/clock_internal.h b/nuttx/sched/clock_internal.h index aba9723b6..db857743e 100644 --- a/nuttx/sched/clock_internal.h +++ b/nuttx/sched/clock_internal.h @@ -1,7 +1,7 @@ /******************************************************************************** * sched/clock_internal.h * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -80,7 +80,9 @@ extern struct timespec g_basetime; ********************************************************************************/ void weak_function clock_initialize(void); +#ifndef CONFIG_SCHED_TICKLESS void weak_function clock_timer(void); +#endif int clock_abstime2ticks(clockid_t clockid, FAR const struct timespec *abstime, |