From 32561f5f5b9dc5bfc396e497da118eeaf3fb1867 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 20 Feb 2020 07:55:18 +0100 Subject: config: Add Remove all comments and copyrightable content from the moved content. Use BSD-2-Clause license for new file. Update #3053. Update #3875. --- cpukit/include/rtems/confdefs.h | 89 +---------------------------------------- 1 file changed, 1 insertion(+), 88 deletions(-) (limited to 'cpukit/include/rtems/confdefs.h') 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 #include #include +#include #include #include #include @@ -302,18 +303,6 @@ extern "C" { #endif #endif -#ifdef CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - #include - - #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 #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. -- cgit v1.2.3