diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-20 07:55:18 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-25 07:18:37 +0100 |
commit | 32561f5f5b9dc5bfc396e497da118eeaf3fb1867 (patch) | |
tree | f1617fbd06846930e7d3ec2bb737f060b63b804c /cpukit/include/rtems/confdefs.h | |
parent | config: Add <rtems/confdefs/mcpi.h> (diff) | |
download | rtems-32561f5f5b9dc5bfc396e497da118eeaf3fb1867.tar.bz2 |
config: Add <rtems/confdefs/clock.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.
Update #3053.
Update #3875.
Diffstat (limited to 'cpukit/include/rtems/confdefs.h')
-rw-r--r-- | cpukit/include/rtems/confdefs.h | 89 |
1 files changed, 1 insertions, 88 deletions
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index a28e277311..f4cbe43908 100644 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -51,6 +51,7 @@ #include <rtems/posix/timer.h> #include <rtems/confdefs/obsolete.h> #include <rtems/confdefs/bdbuf.h> +#include <rtems/confdefs/clock.h> #include <rtems/confdefs/libio.h> #include <rtems/confdefs/libpci.h> #include <rtems/confdefs/malloc.h> @@ -302,18 +303,6 @@ extern "C" { #endif #endif -#ifdef CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - #include <rtems/clockdrv.h> - - #ifdef CONFIGURE_INIT - RTEMS_SYSINIT_ITEM( - _Clock_Initialize, - RTEMS_SYSINIT_DEVICE_DRIVERS, - RTEMS_SYSINIT_ORDER_THIRD - ); - #endif -#endif - #ifdef CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER #include <rtems/btimer.h> #endif @@ -605,54 +594,6 @@ extern "C" { /**@}*/ /* end of Classic API Configuration */ -/** - * @defgroup ConfigurationGeneral General System Configuration - * - * @ingroup Configuration - * - * This module contains configuration parameters that are independent - * of any API but impact general system configuration. - */ -/**@{*/ - -/** The configures the number of microseconds per clock tick. */ -#ifndef CONFIGURE_MICROSECONDS_PER_TICK - #define CONFIGURE_MICROSECONDS_PER_TICK \ - RTEMS_MILLISECONDS_TO_MICROSECONDS(10) -#endif - -#if 1000000 % CONFIGURE_MICROSECONDS_PER_TICK != 0 - #warning "The clock ticks per second is not an integer" -#endif - -#if CONFIGURE_MICROSECONDS_PER_TICK <= 0 - #error "The CONFIGURE_MICROSECONDS_PER_TICK must be positive" -#endif - -#ifdef CONFIGURE_INIT - const uint32_t _Watchdog_Microseconds_per_tick = - CONFIGURE_MICROSECONDS_PER_TICK; - - const uint32_t _Watchdog_Nanoseconds_per_tick = - (uint32_t) 1000 * CONFIGURE_MICROSECONDS_PER_TICK; - - const uint32_t _Watchdog_Ticks_per_second = - 1000000 / CONFIGURE_MICROSECONDS_PER_TICK; -#endif - -/** The configures the number of clock ticks per timeslice. */ -#if defined(CONFIGURE_TICKS_PER_TIMESLICE) && \ - CONFIGURE_TICKS_PER_TIMESLICE != WATCHDOG_TICKS_PER_TIMESLICE_DEFAULT - -#ifdef CONFIGURE_INIT - const uint32_t _Watchdog_Ticks_per_timeslice = - CONFIGURE_TICKS_PER_TIMESLICE; -#endif - -#endif /* CONFIGURE_TICKS_PER_TIMESLICE */ - -/**@}*/ /* end of General Configuration */ - /* * Initial Extension Set */ @@ -1419,34 +1360,6 @@ struct _reent *__getreent(void) #endif #endif -#if !defined(RTEMS_SCHEDSIM) -/* - * You must either explicitly include or exclude the clock driver. - * It is such a common newbie error to leave it out. Maybe this - * will put an end to it. - * - * NOTE: If you are using the timer driver, it is considered - * mutually exclusive with the clock driver because the - * drivers are assumed to use the same "timer" hardware - * on many boards. - */ -#if !defined(CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER) && \ - !defined(CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER) && \ - !defined(CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER) - #error "CONFIGURATION ERROR: Do you want the clock driver or not?!?" - #endif - -/* - * Only one of the following three configuration parameters should be - * defined at a time. - */ -#if ((defined(CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER) + \ - defined(CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER) + \ - defined(CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER)) > 1) - #error "CONFIGURATION ERROR: More than one clock/timer driver configuration parameter specified?!?" -#endif -#endif /* !defined(RTEMS_SCHEDSIM) */ - /* * POSIX Key pair shouldn't be less than POSIX Key, which is highly * likely to be error. |