Move ticks definition

This commit is contained in:
Sebastian Huber 2013-10-24 10:17:20 +02:00
parent 5d288bc6ee
commit ea49a89a2c
2 changed files with 3 additions and 3 deletions

View File

@ -67,6 +67,9 @@ extern int profhz; /* profiling clock's frequency */
extern int profprocs; /* number of process's profiling */ extern int profprocs; /* number of process's profiling */
#ifndef __rtems__ #ifndef __rtems__
extern int ticks; extern int ticks;
#else /* __rtems__ */
#include <rtems/score/watchdogimpl.h>
#define ticks _Watchdog_Ticks_since_boot
#endif /* __rtems__ */ #endif /* __rtems__ */
#endif /* _KERNEL */ #endif /* _KERNEL */

View File

@ -109,9 +109,6 @@
#define abs _bsd_abs #define abs _bsd_abs
#define labs _bsd_labs #define labs _bsd_labs
#include <rtems/score/watchdogimpl.h>
#define ticks _Watchdog_Ticks_since_boot
/* Debug */ /* Debug */
void rtems_bsd_assert_func(const char *file, int line, const char *func, const char *expr); void rtems_bsd_assert_func(const char *file, int line, const char *func, const char *expr);