diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2021-05-21 10:25:16 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-05-21 12:43:44 -0500 |
commit | bfcd290c10c237fa9913ee1afc85b6796c0ad9b4 (patch) | |
tree | 306988a8f2a63b6e819091d435878e2587ff34e1 /ntp | |
parent | Remove ChangeLog files (diff) | |
download | network-demos-bfcd290c10c237fa9913ee1afc85b6796c0ad9b4.tar.bz2 |
Required changes to get back to a buildable state.
This primarily reflects changes since the legacy network stack was
split into its own repository.
Diffstat (limited to 'ntp')
-rw-r--r-- | ntp/Makefile | 2 | ||||
-rw-r--r-- | ntp/init.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ntp/Makefile b/ntp/Makefile index 8b3cd57..6ae079d 100644 --- a/ntp/Makefile +++ b/ntp/Makefile @@ -36,7 +36,7 @@ CFLAGS_OPTIMIZE_V += CFLAGS_DEBUG_V += -v -qrtems_debug LD_PATHS += -LD_LIBS += +LD_LIBS += -lnetworking # # Add your list of files to delete here. The config files @@ -33,15 +33,15 @@ Init (rtems_task_argument ignored) int rtems_bsdnet_synchronize_ntp (int interval, rtems_task_priority priority); printf ("****************** NTP TEST ***************\n"); - rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticksPerSecond); - sc = rtems_clock_get (RTEMS_CLOCK_GET_TOD, &now); + ticksPerSecond = rtems_clock_get_ticks_per_second(); + sc = rtems_clock_get_tod (&now); if (sc == RTEMS_SUCCESSFUL) printf ("Got time of day -- should have failed!\n"); else if (sc != RTEMS_NOT_DEFINED) printf ("Failed to get time of day: %s\n", rtems_status_text (sc)); rtems_bsdnet_initialize_network (); rtems_bsdnet_synchronize_ntp (0, 0); - sc = rtems_clock_get (RTEMS_CLOCK_GET_TOD, &now); + sc = rtems_clock_get_tod (&now); if (sc != RTEMS_SUCCESSFUL) printf ("Failed to get time of day: %s\n", rtems_status_text (sc)); printf ( |