<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 04/07/2013 03:32 PM, manish jain
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMPL+dRedRr4swGSfbzxAqj-gut=0MNtWBkFy160iWEzCU8=eg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Thanks Joel..<br>
          </div>
          It is working now but while I used clock driver with timer I
          didn't get any compiler error..<br>
          <br>
        </div>
      </div>
    </blockquote>
    I am glad to know that worked.<br>
    <br>
    I have a patch in my tree so next time someone will get a compile
    error.<br>
    You can only specify one of need clock, need timer, or do not need
    clock.<br>
    There were checks for having 0 defined but not > 1. <br>
    <br>
    --joel<br>
    <blockquote
cite="mid:CAMPL+dRedRr4swGSfbzxAqj-gut=0MNtWBkFy160iWEzCU8=eg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Manish<br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">
          On Sun, Apr 7, 2013 at 4:18 PM, Joel Sherrill <span dir="ltr"><<a
              moz-do-not-send="true"
              href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div class="HOEnZb">
              <div class="h5">On 04/07/2013 03:05 PM, manish jain wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  Hi,<br>
                  I am just running a small Init task in which I am
                  creating a "timer". But the status returned by the
                  "rtems_timer_create" function is "RTEMS_TOO_MANY ". I
                  think, this status is referring to a maximum numbers
                  of objects already allocated. But in my task I am just
                  creating one timer. Do I need to preconfigure before
                  using the timer? For now I am using following macros:<br>
                  <br>
                  #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER<br>
                  #define CONFIGURE_INIT_TASK_ATTRIBUTES
                  RTEMS_FLOATING_POINT<br>
                  #define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER<br>
                  <br>
                  Can someone tell me what I might be missing? I am
                  currently running my task on sparc sis simulator.<br>
                  <br>
                </blockquote>
              </div>
            </div>
            You can't configure the timer and clock driver at the same
            time.<br>
            This should have resulted in a compile time error. On most
            BSPs,<br>
            these use the same hardware so it is considered a general
            error.<br>
            Besides, the timer driver is for a "benchmark timer" used by<br>
            the RTEMS Timing Test Suites -- and they assume no clock
            tick.<br>
            <br>
            I don't know why your initialization task needs floating
            point but<br>
            that is your application's requirement.<br>
            <br>
            If you are creating a Classic API timer via the
            rtems_timer_create()<br>
            method, then you need to configure the system to account for<br>
            how many instances of Classic API Timers you need.
             Something<br>
            like this:
            <div class="im"><br>
              <br>
              #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER<br>
              #define CONFIGURE_INIT_TASK_ATTRIBUTES
              RTEMS_FLOATING_POINT<br>
            </div>
            #define CONFIGURE_MAXIMUM_TIMERS 1<br>
            <br>
            If you need more than one timer, then up that number.<br>
            <br>
            If you want standard in, out and error to work (e.g.
            printf()), then<br>
            you should also have:<br>
            <br>
            #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER<br>
            <br>
            I just posted a re-write of the Configuring a System chapter
            in the<br>
            Users Guide. Everything you should need to know is in it and<br>
            hopefully better presented than the current version.<br>
            <br>
            <a moz-do-not-send="true"
              href="http://www.rtems.org/ftp/pub/rtems/people/joel/config-v1.pdf.bz2"
              target="_blank">http://www.rtems.org/ftp/pub/rtems/people/joel/config-v1.pdf.bz2</a><br>
            <br>
            The current version is terse where the new version includes<br>
            more information in a more structured fashion.  :)<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              Manish<br>
              <br>
              <span class="HOEnZb"><font color="#888888">
                </font></span></blockquote>
            <span class="HOEnZb"><font color="#888888">
                <br>
                <br>
                -- <br>
                Joel Sherrill, Ph.D.             Director of
                Research& Development<br>
                <a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a>        On-Line Applications
                Research<br>
                Ask me about RTEMS: a free RTOS  Huntsville AL 35806<br>
                Support Available               <a
                  moz-do-not-send="true" href="tel:%28256%29%20722-9985"
                  value="+12567229985" target="_blank">(256) 722-9985</a><br>
                <br>
              </font></span></blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Joel Sherrill, Ph.D.             Director of Research& Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a>        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35806
Support Available               (256) 722-9985</pre>
  </body>
</html>