Changeset 6784547 in rtems for cpukit/sapi


Ignore:
Timestamp:
Apr 7, 2013, 10:28:48 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
b2cf295f
Parents:
92b33b8d
git-author:
Joel Sherrill <joel.sherrill@…> (04/07/13 22:28:48)
git-committer:
Joel Sherrill <joel.sherrill@…> (04/09/13 18:15:40)
Message:

confdefs.h: Only one clock or timer configuration parameter can be defined

Only one of the following can be defined.

+ CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+ CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+ CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER

Otherwise it is a configuration error which can be detected at
compilation time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    r92b33b8d r6784547  
    22982298  #endif
    22992299
    2300   /** 
     2300  /**
    23012301   * This variable specifies the minimum stack size for tasks in an RTEMS
    23022302   * application.
     
    23092309    CONFIGURE_MINIMUM_TASK_STACK_SIZE;
    23102310
    2311   /** 
     2311  /**
    23122312   * This variable specifies the maximum priority value that
    23132313   * a task may have.  This must be a power of 2 between 4
     
    26122612#endif
    26132613
    2614 #ifndef RTEMS_SCHEDSIM
    2615 /*
    2616  *  You must either explicity include or exclude the clock driver.
    2617  *  It is such a common newbie error to leave it out.  Maybe this
    2618  *  will put an end to it.
    2619  *
    2620  *  NOTE: If you are using the timer driver, it is considered
    2621  *        mutually exclusive with the clock driver because the
    2622  *        drivers are assumed to use the same "timer" hardware
    2623  *        on many boards.
    2624  */
    2625 #if !defined(CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE)
    2626   #if !defined(CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER) && \
    2627       !defined(CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER) && \
    2628       !defined(CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER)
    2629     #error "CONFIGURATION ERROR: Do you want the clock driver or not?!?"
    2630    #endif
    2631 #endif
    2632 #endif
     2614#if !defined(RTEMS_SCHEDSIM)
     2615  #if !defined(CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE)
     2616    /*
     2617     *  You must either explicity include or exclude the clock driver.
     2618     *  It is such a common newbie error to leave it out.  Maybe this
     2619     *  will put an end to it.
     2620     *
     2621     *  NOTE: If you are using the timer driver, it is considered
     2622     *        mutually exclusive with the clock driver because the
     2623     *        drivers are assumed to use the same "timer" hardware
     2624     *        on many boards.
     2625     */
     2626    #if !defined(CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER) && \
     2627        !defined(CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER) && \
     2628        !defined(CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER)
     2629      #error "CONFIGURATION ERROR: Do you want the clock driver or not?!?"
     2630     #endif
     2631
     2632    /*
     2633     * Only one of the following three configuration parameters should be
     2634     * defined at a time.
     2635     */
     2636    #if ((defined(CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER) + \
     2637          defined(CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER) + \
     2638          defined(CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER)) > 1)
     2639       #error "CONFIGURATION ERROR: More than one clock/timer driver configuration parameter specified?!?"
     2640    #endif
     2641  #endif /* !defined(CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE) */
     2642#endif   /* !defined(RTEMS_SCHEDSIM) */
    26332643
    26342644/*
Note: See TracChangeset for help on using the changeset viewer.