Changeset e65c45c in rtems


Ignore:
Timestamp:
Mar 22, 2016, 10:13:30 PM (6 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
5, master
Children:
b752f945
Parents:
714efce
git-author:
Joel Sherrill <joel@…> (03/22/16 22:13:30)
git-committer:
Joel Sherrill <joel@…> (04/14/16 21:36:53)
Message:

Obsolete rtems_clock_get() directive.

This service was marked as deprecated long prior to the 4.11 release
series and is now being removed.

closes #2676.

Files:
5 deleted
25 edited

Legend:

Unmodified
Added
Removed
  • c/src/ada-tests/mptests/mp01/mptest.adb

    r714efce re65c45c  
    147147      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_IDENT OF SELF" );
    148148   
    149       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    150       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     149      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     150      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    151151
    152152      TEST_SUPPORT.PUT_NAME(
     
    165165      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" );
    166166         
    167       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    168       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     167      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     168      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    169169
    170170      TEST_SUPPORT.PUT_NAME(
  • c/src/ada-tests/samples/ticker/sptest.adb

    r714efce re65c45c  
    130130      loop
    131131
    132          RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    133          TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     132         RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     133         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    134134
    135135         if TIME.SECOND >= 35 then
  • c/src/ada-tests/sptests/sp01/sptest.adb

    r714efce re65c45c  
    130130      loop
    131131
    132          RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    133          TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     132         RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     133         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    134134
    135135         if TIME.SECOND >= 35 then
  • c/src/ada-tests/sptests/sp03/sptest.adb

    r714efce re65c45c  
    109109      loop
    110110
    111          RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    112          TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     111         RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     112         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    113113
    114114         TEST_SUPPORT.PUT_NAME( SPTEST.TASK_NAME( 1 ), FALSE );
     
    151151         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" );
    152152         
    153          RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    154          TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     153         RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     154         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    155155
    156156         if TIME.SECOND >= 17 then
  • c/src/ada-tests/sptests/sp04/sptest.adb

    r714efce re65c45c  
    194194      TEXT_IO.PUT_LINE( "TA1 - killing time" );
    195195
    196       RTEMS.CLOCK.GET(
    197          RTEMS.CLOCK.GET_SECONDS_SINCE_EPOCH,
    198          START_TIME'ADDRESS,
    199          STATUS
    200       );
    201       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     196      RTEMS.CLOCK.GET_SECONDS_SINCE_EPOCH( START_TIME, STATUS );
     197      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_SECONDS_SINCE_EPOCH" );
    202198
    203199      loop
    204          RTEMS.CLOCK.GET(
    205             RTEMS.CLOCK.GET_SECONDS_SINCE_EPOCH,
    206             END_TIME'ADDRESS,
    207             STATUS
    208          );
    209          TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     200         RTEMS.CLOCK.GET_SECONDS_SINCE_EPOCH( START_TIME, STATUS );
     201         TEST_SUPPORT.DIRECTIVE_FAILED(STATUS, "CLOCK_GET_SECONDS_SINCE_EPOCH");
    210202
    211203         exit when END_TIME > (START_TIME + 2);
     
    235227            TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_MODE" );
    236228
    237             RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    238             TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     229            RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     230            TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    239231
    240232            OLD_SECONDS := TIME.SECOND;
     
    245237               exit when SECONDS >= 6;
    246238
    247                RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    248                TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     239               RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     240               TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    249241
    250242               if TIME.SECOND /= OLD_SECONDS then
     
    339331            SPTEST.RUN_COUNT( INDEX ) := SPTEST.RUN_COUNT( INDEX ) + 1;
    340332
    341             RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    342             TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     333            RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     334            TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    343335
    344336            Log_Task_Event ( INDEX, TIME );
  • c/src/ada-tests/sptests/sp09/sptest.adb

    r714efce re65c45c  
    301301-- errors before clock is set
    302302
    303       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    304      
     303      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
    305304      if RTEMS.IS_STATUS_SUCCESSFUL( STATUS ) then
    306305         TEXT_IO.PUT_LINE(
     
    462461      TEXT_IO.PUT_LINE( " - INVALID_CLOCK" );
    463462
    464       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    465       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET SUCCESSFUL" );
     463      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     464      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    466465      TEST_SUPPORT.PRINT_TIME( "TA1 - current time - ", TIME, "" );
    467466      TEXT_IO.NEW_LINE;
     
    25532552      RTEMS.TASKS.WAKE_AFTER( TEST_SUPPORT.TICKS_PER_SECOND, STATUS );
    25542553      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" );
    2555       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    2556       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET SUCCESSFUL" );
     2554      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     2555      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    25572556      TEST_SUPPORT.PRINT_TIME(
    25582557         "TA1 - clock_get - ",
     
    25732572      RTEMS.TASKS.WAKE_AFTER( TEST_SUPPORT.TICKS_PER_SECOND, STATUS );
    25742573      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" );
    2575       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    2576       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET SUCCESSFUL" );
     2574      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     2575      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    25772576      TEST_SUPPORT.PRINT_TIME(
    25782577         "TA1 - clock_get - ",
     
    25932592      RTEMS.TASKS.WAKE_AFTER( TEST_SUPPORT.TICKS_PER_SECOND, STATUS );
    25942593      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" );
    2595       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    2596       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET SUCCESSFUL" );
     2594      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     2595      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    25972596      TEST_SUPPORT.PRINT_TIME(
    25982597         "TA1 - clock_get - ",
     
    26132612      RTEMS.TASKS.WAKE_AFTER( TEST_SUPPORT.TICKS_PER_SECOND, STATUS );
    26142613      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" );
    2615       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    2616       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET SUCCESSFUL" );
     2614      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     2615      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    26172616      TEST_SUPPORT.PRINT_TIME(
    26182617         "TA1 - clock_get - ",
     
    26332632      RTEMS.TASKS.WAKE_AFTER( TEST_SUPPORT.TICKS_PER_SECOND, STATUS );
    26342633      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_WAKE_AFTER" );
    2635       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    2636       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET SUCCESSFUL" );
     2634      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     2635      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    26372636      TEST_SUPPORT.PRINT_TIME(
    26382637         "TA1 - clock_get - ",
  • c/src/ada-tests/sptests/sp11/sptest.adb

    r714efce re65c45c  
    194194      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "EVENT_SEND of 19" );
    195195
    196       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    197       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TA1 CLOCK_GET" );
     196      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     197      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    198198      TEST_SUPPORT.PRINT_TIME( "TA1 - clock_get - ", TIME, "" );
    199199      TEXT_IO.NEW_LINE;
     
    225225      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "EVENT_RECEIVE of 18" );
    226226
    227       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    228       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TA1 CLOCK_GET" );
     227      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     228      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    229229
    230230      TEXT_IO.PUT( "TA1 - EVENT_18 received - eventout => ");
     
    369369         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "EVENT_RECEIVE of 1" );
    370370
    371          RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    372          TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TA1 CLOCK_GET" );
     371         RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     372         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    373373
    374374         TEXT_IO.PUT( "TA1 - EVENT_1 received - eventout => ");
     
    727727      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "EVENT_RECEIVE of 10" );
    728728
    729       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    730       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TA1 CLOCK_GET" );
     729      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     730      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    731731
    732732      TEXT_IO.PUT( "TA2 - EVENT_10 received - eventout => ");
  • c/src/ada-tests/sptests/sp19/sptest.adp

    r714efce re65c45c  
    299299      loop
    300300
    301          RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    302          TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     301         RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     302         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    303303
    304304         if TIME.SECOND >= 16 then
     
    370370      loop
    371371
    372          RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    373          TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     372         RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     373         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    374374
    375375         TEST_SUPPORT.PUT_NAME(
  • c/src/ada-tests/sptests/sp20/sptest.adb

    r714efce re65c45c  
    242242
    243243               -- timestamp
    244                RTEMS.CLOCK.GET(
    245                   RTEMS.CLOCK.GET_TICKS_SINCE_BOOT,
    246                   Time( INDEX )'ADDRESS,
    247                   STATUS
    248                );
    249                TEST_SUPPORT.DIRECTIVE_FAILED(
    250                   STATUS, "clock_get of TA6"
    251                );
     244               RTEMS.CLOCK.GET_TICKS_SINCE_BOOT( Time( INDEX ), STATUS );
     245               TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "clock_get of TA6" );
    252246            end loop;
    253247
  • c/src/ada-tests/sptests/sp22/sptest.adb

    r714efce re65c45c  
    114114   begin
    115115
    116       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    117       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     116      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     117      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    118118
    119119      TEST_SUPPORT.PUT_NAME(
     
    230230      SPTEST.PRINT_TIME;
    231231
    232       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    233       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     232      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     233      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    234234
    235235      TIME.SECOND := TIME.SECOND + 3;
     
    253253-- when which is canceled
    254254
    255       RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    256       TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     255      RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     256      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    257257
    258258      TIME.SECOND := TIME.SECOND + 3;
  • c/src/ada-tests/sptests/sp24/sptest.adb

    r714efce re65c45c  
    142142         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TIMER_FIRE_AFTER" );
    143143
    144          RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    145          TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET" );
     144         RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     145         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
    146146
    147147         if TIME.SECOND >= 35 then
  • c/src/ada-tests/tmtests/tm08/tmtest.adb

    r714efce re65c45c  
    255255         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
    256256         loop
    257             RTEMS.CLOCK.GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
    258          end loop;
    259       TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
    260       TIME_TEST_SUPPORT.PUT_TIME(
    261          "CLOCK_GET",
     257            RTEMS.CLOCK.GET_TOD( TIME, STATUS );
     258         TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "CLOCK_GET_TOD" );
     259         end loop;
     260      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
     261      TIME_TEST_SUPPORT.PUT_TIME(
     262         "CLOCK_GET_TOD",
    262263         TMTEST.END_TIME,
    263264         TIME_TEST_SUPPORT.OPERATION_COUNT,
  • c/src/ada-tests/tmtests/tm08/tmtest.ads

    r714efce re65c45c  
    7171--    + TASK_MODE which causes a preemption *** TEST_TASK1 executes
    7272--    + CLOCK_SET
    73 --    + CLOCK_GET
    7473--
    7574
  • c/src/ada-tests/tmtests/tmoverhd/dummy_rtems.adb

    r714efce re65c45c  
    190190-- Clock Manager
    191191
    192    procedure CLOCK_GET (
    193       OPTION      : in     RTEMS.CLOCK.GET_OPTIONS;
    194       TIME_BUFFER : in     RTEMS.ADDRESS;
     192   procedure CLOCK_GET_TOD (
     193      TIME_BUFFER :    out RTEMS.ADDRESS;
    195194      RESULT      :    out RTEMS.STATUS_CODES
    196195   ) is
    197       pragma Unreferenced(OPTION);
    198196      pragma Unreferenced(TIME_BUFFER);
    199197   begin
     
    201199      RESULT := RTEMS.SUCCESSFUL;
    202200
    203    end CLOCK_GET;
     201   end CLOCK_GET_TOD;
    204202
    205203   procedure CLOCK_SET (
  • c/src/ada-tests/tmtests/tmoverhd/dummy_rtems.ads

    r714efce re65c45c  
    109109-- Clock Manager
    110110
    111    procedure CLOCK_GET (
    112       OPTION      : in     RTEMS.CLOCK.GET_OPTIONS;
    113       TIME_BUFFER : in     RTEMS.ADDRESS;
     111   procedure CLOCK_GET_TOD (
     112      TIME_BUFFER :    out RTEMS.ADDRESS;
    114113      RESULT      :    out RTEMS.STATUS_CODES
    115114   );
  • c/src/ada-tests/tmtests/tmoverhd/tmtest.adb

    r714efce re65c45c  
    397397--      );
    398398
    399 -- CLOCK_GET
    400 
    401       TIMER_DRIVER.INITIALIZE;
    402          for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
    403          loop
    404             DUMMY_RTEMS.CLOCK_GET( RTEMS.CLOCK.GET_TOD, TIME'ADDRESS, STATUS );
     399-- CLOCK_GET_TOD
     400
     401      TIMER_DRIVER.INITIALIZE;
     402         for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
     403         loop
     404            DUMMY_RTEMS.CLOCK_GET_TOD( TIME, STATUS );
    405405         end loop;
    406406      TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;
  • c/src/ada/rtems-clock.adb

    r714efce re65c45c  
    4141
    4242   end Set;
    43 
    44    procedure Get
    45      (Option      : in RTEMS.Clock.Get_Options;
    46       Time_Buffer : in RTEMS.Address;
    47       Result      : out RTEMS.Status_Codes)
    48    is
    49       function Get_Base
    50         (Option      : RTEMS.Clock.Get_Options;
    51          Time_Buffer : RTEMS.Address)
    52          return        RTEMS.Status_Codes;
    53       pragma Import (C, Get_Base, "rtems_clock_get");
    54    begin
    55 
    56       Result := Get_Base (Option, Time_Buffer);
    57 
    58    end Get;
    5943
    6044   procedure Get_TOD
  • c/src/ada/rtems-clock.ads

    r714efce re65c45c  
    3333      end record;
    3434
    35    type Clock_Get_Options is (
    36       Clock_Get_TOD,
    37       Clock_Get_Seconds_Since_Epoch,
    38       Clock_Get_Ticks_Since_Boot,
    39       Clock_Get_Ticks_Per_Second,
    40       Clock_Get_Time_Value
    41    );
    42 
    43    type Get_Options is (
    44       Get_TOD,
    45       Get_Seconds_Since_Epoch,
    46       Get_Ticks_Since_Boot,
    47       Get_Ticks_Per_Second,
    48       Get_Time_Value
    49    );
    50 
    5135   --
    5236   --  Clock Manager
     
    5539   procedure Set (
    5640      Time_Buffer : in     RTEMS.Time_Of_Day;
    57       Result      :    out RTEMS.Status_Codes
    58    );
    59 
    60    procedure Get (
    61       Option      : in     RTEMS.Clock.Get_Options;
    62       Time_Buffer : in     RTEMS.Address;
    6341      Result      :    out RTEMS.Status_Codes
    6442   );
  • c/src/lib/libbsp/arm/xilinx-zynq/make/custom/xilinx_zynq_a9_qemu.cfg

    r714efce re65c45c  
    66
    77CFLAGS_OPTIMIZE_V ?= -O0 -g
     8CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
     9
     10LDFLAGS = -Wl,--gc-sections
  • cpukit/rtems/Makefile.am

    r714efce re65c45c  
    143143
    144144## CLOCK_C_FILES
    145 librtems_a_SOURCES += src/clockget.c
    146145librtems_a_SOURCES += src/clockgetsecondssinceepoch.c
    147146librtems_a_SOURCES += src/clockgettickspersecond.c
  • cpukit/rtems/include/rtems/rtems/clock.h

    r714efce re65c45c  
    5454
    5555/**
    56  *  List of things which can be returned by the rtems_clock_get directive.
    57  */
    58 typedef enum {
    59   /** This value indicates obtain TOD in Classic API format. */
    60   RTEMS_CLOCK_GET_TOD,
    61   /** This value indicates obtain the number of seconds since the epoch. */
    62   RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH,
    63   /** This value indicates obtain the number of ticks since system boot. */
    64   RTEMS_CLOCK_GET_TICKS_SINCE_BOOT,
    65   /** This value indicates obtain the number of ticks per second. */
    66   RTEMS_CLOCK_GET_TICKS_PER_SECOND,
    67   /** This value indicates obtain the TOD in struct timeval format. */
    68   RTEMS_CLOCK_GET_TIME_VALUE
    69 } rtems_clock_get_options;
    70 
    71 /**
    72  * @brief Obtain Current Time of Day
    73  *
    74  * @deprecated rtems_clock_get() is deprecated. Use the more explicit
    75  * function calls rtems_clock_get_xxx().
    76  *
    77  * This routine implements the rtems_clock_get directive. It returns
    78  * one of the following:
    79  * + current time of day
    80  * + seconds since epoch
    81  * + ticks since boot
    82  * + ticks per second
    83  *
    84  * @param[in] option is the format of time to return
    85  * @param[in] time_buffer points to the output area
    86  *
    87  * @retval This method returns RTEMS_SUCCESSFUL if there was not an
    88  *         error. Otherwise, a status code is returned indicating the
    89  *         source of the error.
    90  */
    91 rtems_status_code rtems_clock_get(
    92   rtems_clock_get_options  option,
    93   void                    *time_buffer
    94 ) RTEMS_DEPRECATED;
    95 
    96 /**
    9756 * @brief Obtain Current Time of Day (Classic TOD)
    9857 *
  • testsuites/sptests/Makefile.am

    r714efce re65c45c  
    1212    sp60      sp62 sp63 sp64 sp65 sp66 sp67 sp68 sp69 \
    1313    sp70 sp71 sp72 sp73 sp74 sp75 sp76 sp77 sp2038 \
    14     spassoc01 spchain spclockget spcoverage spobjgetnext \
     14    spassoc01 spchain spcoverage spobjgetnext \
    1515    spprintk spprivenv01 sprbtree01 spsize spstkalloc \
    1616    spstkalloc02 spthreadq01 spwatchdog spwkspace \
  • testsuites/sptests/configure.ac

    r714efce re65c45c  
    161161spcbssched03/Makefile
    162162spchain/Makefile
    163 spclockget/Makefile
    164163spclock_err01/Makefile
    165164spclock_err02/Makefile
  • testsuites/tmtests/tmoverhd/dumrtems.h

    r714efce re65c45c  
    198198           Empty_directive()
    199199
    200 #define     rtems_clock_get( options, time ) \
     200#define     rtems_clock_get_tod( tod ) \
    201201           Empty_directive()
    202202#define     rtems_clock_set( time ) \
  • testsuites/tmtests/tmoverhd/testtask.c

    r714efce re65c45c  
    8080  uint32_t                   io_result RTEMS_GCC_NOWARN_UNUSED;
    8181  uint32_t                   error RTEMS_GCC_NOWARN_UNUSED;
    82   rtems_clock_get_options    options RTEMS_GCC_NOWARN_UNUSED;
     82  rtems_time_of_day          tod RTEMS_GCC_NOWARN_UNUSED;
    8383
    8484  name        = rtems_build_name( 'N', 'A', 'M', 'E' );
     
    9191  minor       = 0;
    9292  error       = 100;
    93   options     = 0;
    9493
    9594/* rtems_shutdown_executive */
     
    295294      );
    296295
    297 /* rtems_clock_get */
    298 
    299       benchmark_timer_initialize();
    300          for ( index = 1 ; index <= OPERATION_COUNT ; index ++ )
    301             (void) rtems_clock_get( options, time );
    302       end_time = benchmark_timer_read();
    303 
    304       put_time(
    305          "overhead: rtems_clock_get",
     296/* rtems_clock_get_tod */
     297
     298      benchmark_timer_initialize();
     299         for ( index = 1 ; index <= OPERATION_COUNT ; index ++ )
     300            (void) rtems_clock_get_tod( &tod );
     301      end_time = benchmark_timer_read();
     302
     303      put_time(
     304         "overhead: rtems_clock_get_tod",
    306305         end_time,
    307306         OPERATION_COUNT,
Note: See TracChangeset for help on using the changeset viewer.