Changeset 296b0247 in rtems


Ignore:
Timestamp:
Mar 14, 2015, 4:00:39 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
be277dd
Parents:
24868ecb
git-author:
Joel Sherrill <joel.sherrill@…> (03/14/15 16:00:39)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/17/15 15:05:06)
Message:

libchip/i2c/spi-memdrv.c: Do not use rtems_clock_get()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/i2c/spi-memdrv.c

    r24868ecb r296b0247  
    9595\*=========================================================================*/
    9696{
    97   rtems_status_code          rc = RTEMS_SUCCESSFUL;
    98   rtems_interval ticks_per_second;
    99 
    100   rc = rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND,&ticks_per_second);
    101   if (rc == RTEMS_SUCCESSFUL) {
    102     rc = rtems_task_wake_after(ticks_per_second * ms / 1000);
    103   }
    104   return rc;
     97  rtems_interval   ticks_per_second;
     98
     99  ticks_per_second = rtems_clock_get_ticks_per_second();
     100  (void) rtems_task_wake_after(ticks_per_second * ms / 1000);
     101  return 0;
    105102}
    106103
Note: See TracChangeset for help on using the changeset viewer.