Commit Graph

24 Commits

Author SHA1 Message Date
Joel Sherrill
945f31b9a9 nsecs/init.c: Use long to avoid overflow on 16-bit targets 2014-10-13 11:13:11 -05:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
9391f6d663 tests/samples: Use <rtems/test.h> 2014-03-17 09:17:36 +01:00
Sebastian Huber
88c74ab115 score: Merge tod implementation into one file
Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and
TOD_MILLISECONDS_TO_TICKS().
2013-07-26 11:55:47 +02:00
Joel Sherrill
5f0cd3499c samples - Eliminate missing prototype warnings 2012-05-31 10:06:16 -05:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Ralf Corsépius
99aebcbc86 2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* nsecs/system.h: New (Split out from nsecs/init.c).
	* nsecs/init.c: Reflect nsecs/system.h having been split out.
	* nsecs/empty.c: Include "system.h".
2012-02-22 09:33:10 +01:00
Ralf Corsepius
4534ba300e 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* fileio/init.c: Comment out setup_nvdisk (Unused).
	Make shell_nvdisk_trace, shell_nvdisk_erase, shell_bdbuf_trace,
	disk_test_set_block_size, disk_test_write_blocks, disk_test_block_sizes,
	parse_size_arg, create_ramdisk, create_nvdisk static.
	* nsecs/init.c: Make my_ctime, subtract_em static.
2011-12-13 09:36:01 +00:00
Ralf Corsepius
d44c86b49d 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* nsecs/init.c: Include "pritime.h".
	Use PRIdtime_t to print time_t.
2011-09-30 02:55:30 +00:00
Joel Sherrill
7c1e69429a 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* base_sp/apptask.c, base_sp/init.c, fileio/init.c, fileio/system.h,
	nsecs/init.c, ticker/init.c, ticker/system.h, ticker/tasks.c: Remove
	warnings.
2011-05-05 16:45:40 +00:00
Ralf Corsepius
e3135514a8 Add HAVE_CONFIG_H. 2011-02-22 10:58:44 +00:00
Ralf Corsepius
b1274bd94c Whitespace removal. 2009-11-30 03:33:25 +00:00
Ralf Corsepius
cf08e7b16f Include "tmacros.h" instead of "rprintf.h" 2009-10-26 09:13:53 +00:00
Ralf Corsepius
04abc236a6 Printf fixes. 2009-10-24 05:52:02 +00:00
Joel Sherrill
68e6f0cc31 2007-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>
* nsecs/init.c: Add include of unistd.h for sleep() prototype.
2007-07-24 15:45:42 +00:00
Joel Sherrill
40cfd3e9f3 2007-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* nsecs/Makefile.am, nsecs/init.c: Move empty body to another file. The
	loop was being optimized out on the PowerPC.
	* nsecs/empty.c: New file.
2007-07-17 22:32:12 +00:00
Joel Sherrill
2c0f748a4e 2007-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* nsecs/init.c: Change name to avoid any hint of the timer driver.
2007-07-06 21:30:04 +00:00
Joel Sherrill
8bfffd9baf 2007-06-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* nsecs/init.c: Do not make this test depend on the benchmark timer
	driver.
2007-06-22 19:27:35 +00:00
Joel Sherrill
d3b057906a 2007-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* nsecs/init.c, nsecs/nsecs.scn: Add set of loops so you can see the
	time varaying in proportion to the length of the loop measured.
2007-06-21 22:44:21 +00:00
Ralf Corsepius
f14276370b 2007-05-16 Ralf Corsepius <ralf.corsepius@rtems.org>
* nsecs/init.c: Remove stray "volatile int i".
2007-05-16 06:50:03 +00:00
Joel Sherrill
dd61160701 2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* base_sp/Makefile.am, hello/Makefile.am, iostream/Makefile.am,
	loopback/Makefile.am, nsecs/Makefile.am,
	pppd/Makefile.am, ticker/Makefile.am, ticker/system.h,
	unlimited/Makefile.am: Add optional managers to Makefiles. Clean up
	test cases so last output line follows END OF pattern. Make sure test
	case all run. All tests appeared ok on sis.
	* nsecs/init.c: Commit hack so test will compile when POSIX is
	disabled.  Remove hack when clock_gettime() is present even when
	--disable-posix.
2007-05-11 19:45:50 +00:00
Ralf Corsepius
587da8b8e2 2007-04-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* nsecs/init.c: Remove private decl of _Timespec_Subtract use the
	  version from rtems/score/timespec.h.
2007-04-13 05:12:34 +00:00
Joel Sherrill
8ff5e59dd4 2007-04-05 Joel Sherrill <joel@OARcorp.com>
* nsecs/init.c: Provide timespec manipulation routines in the
	SuperCore. Use them everywhere possible. Perhaps they should be part
	of the public API so this test and others can use them without
	peeking into the bowels.
2007-04-05 21:15:40 +00:00
Joel Sherrill
23a0105a78 2007-04-02 Joel Sherrill <joel@OARcorp.com>
* Makefile.am, configure.ac: Convert from Classic API style TOD_Control
	as fundamental time structure to POSIX struct timespec. Add
	clock_get_uptime().
	* nsecs/.cvsignore, nsecs/Makefile.am, nsecs/init.c, nsecs/nsecs.doc,
	nsecs/nsecs.scn: New files.
2007-04-02 18:24:10 +00:00