Commit Graph
28437 Commits
Author SHA1 Message Date
Jim Panetta 2b03a62441 NTP: Sync time correctly when receiving broadcast updates
1) The value of rtems_bsdnet_ntpserver_count is equal to 0 when no
   server is set, so the check for (rtems_bsdnet_ntpserver_count < 0)
   in rtems_bsdnet_get_ntp() is wrong.  The check should be "<= 0".

2) Binding the listening socket port to 0 does not work.  Packets
   appear on the interface, but the recvfrom in tryServer() never
   returns.  Changing this to the well known NTP socket 123 allows
   the packets to be seen.

3) In tryServer(), an explicit check for NTP version 3 packets is made.
   If the NTP server is version 4, this check fails even though the
   packets seem to be the right shape.
2014-01-09 09:56:03 -05:00
Gerardo Puga 78c84df00c PR 1548: ERC32 console stops working when UART error flags are set
Problem:

The console works fine when only transmitting data from the ERC32, but stops
working after a while when receiving data.

"Stops working" means, bytes are neither sent nor received from the UART, but
the rest of the system keeps functioning (task are executing, the operative
system is responsive, etc).

Context:

- When an RX error occurs, the ERC32 UARTS stop generating RX/TX interrupts
until the corresponding error flag in the UART_STATUS are cleared.

- The console.c code currently cleans the error flags from the console_isr_x
subroutines, but those are NOT called when an RX error occurs. Thus the error
flag is never cleaned and then the UARTs stop generating interrupts
indefinitely.

- The ERC32 UARTs generate a different interrupt when an RX error occurs.

Fixed by:

- Adding a third interrupt service routine console_isr_error to handle the
UART_ERROR trap. This isr cleans the error flags of the channels.

- Cleaning the error flags manually just after having initialized the interrupt
vectors. This is because if the error flag was already set by the time the
interrupt vectors are configured, the interrupts might never be called.
2014-01-09 09:44:14 -05:00
Daniel Ramirez 35b8f48a4b libcsupport: Refactor rtems_deviceio_errno
Renames rtems_deviceio_errno to rtems_status_code_to_errno and
integrates it into the Classic API Status Handler. This function
can now be called by including status.h
2014-01-08 15:24:09 -06:00
Szkocsovszki Zsolt a77c3719f8 powerpc/mvme3100: Improve Doxygen 2014-01-08 15:24:09 -06:00
Szkocsovszki Zsolt d48ac18144 m68k/gen68360: Improve Doxygen 2014-01-08 15:24:09 -06:00
Toma Radu 540b771a07 sp16, sp17, and sp20: Documentation Fixes
Fix the documentation for the sp16, sp17 and sp20 tests.
2014-01-08 15:24:09 -06:00
Szkocsovszki Zsolt e87b300635 shared vmeUniverse: Improve Doxygen 2014-01-08 15:23:53 -06:00
Toma Radu d496095366 genmcf548x: Improve Doxygen
Add doxygen to the header files in the genmcf548x/include directory.
2014-01-08 15:23:53 -06:00
Toma Radu 73885572e3 av5282: Improve Doxygen
Add doxygen to the header files in the av5282/include directory.
2014-01-08 15:23:53 -06:00
Cynthia Rempel 73a7713d8c fstests and libtests: Add contents to multiple documentation files 2014-01-08 12:48:37 -06:00
Joel Sherrill 893aac166a rhealstone: Add start end and messages 2014-01-07 18:31:32 -06:00
Joel Sherrill bc55e4fa52 psximfs02: Clean up output 2014-01-07 18:02:46 -06:00
Joel Sherrill f3f3049824 spfifo02: Clean up output 2014-01-07 18:01:55 -06:00
Cynthia Rempel 23d53e8aaa fsdosfsformat01.doc: Add contents 2014-01-07 15:08:48 -06:00
Cynthia Rempel d8cd49cb8b fsbdpart01.doc: Add contents 2014-01-07 13:33:36 -06:00
Daniel Ramirez 564ce0f42d libcsupport: implemented termios functions cfsetspeed and cfmakeraw 2014-01-07 10:34:31 -06:00
Joel Sherrill b6c1578bb9 rhealstone: Add rh prefix to all test names
This makes them easier to spot as a group in wildcard searches.
2014-01-05 11:17:08 -06:00
Joel Sherrill e8c7dbe736 rhealstone/*.c: Add Print_Warning() call to indicate debug enabled 2014-01-05 10:39:34 -06:00
Joel Sherrill acc636e1b5 rhealstone/README: Formatting 2014-01-05 10:38:57 -06:00
Daniel Ramirez 19e9bf8800 Added Rhealstone benchmark to testsuites
The Rhealstone benchmarks six operations that are critical components
of a real-time system. It allows for an objective analysis to be
performed, and allows for comparisons between systems.
See rhealstone/README for more information.
2014-01-05 09:58:39 -06:00
Joel Sherrill 4470ae9bb9 sp09: Remove partition specific parts 2014-01-04 11:08:10 -06:00
Joel Sherrill f17a9269d3 spregion_err01: Clean up comments 2014-01-04 11:06:20 -06:00
Joel Sherrill 7132d3d498 sppartition_err01: Remove dead parts, reduce, and clean up.
Also fix naming issues.
2014-01-04 11:04:51 -06:00
Shaily Sangwan 524e78570a psxtime: Added doc file. 2014-01-03 13:12:43 -06:00
Mandar Juvekar 12f81c09ec pskey09, sp17: documentation cleanup. 2014-01-03 08:25:14 -06:00
Szkocsovszki Zsolt 6b1ee0258e idp: Add doxygen headers. 2014-01-03 08:14:49 -06:00
Mandar Juvekar 255178ec35 sptests: Refactor sp09 into sppartition_err01 and sp09. 2014-01-02 13:22:36 -06:00
Toma Radu 56ac38ec85 gen68340: Add doxygen header files. 2014-01-02 09:40:06 -06:00
Toma Radu 3bba3f58e0 gen68302: Add doxygen headers. 2013-12-30 14:24:12 -06:00
Szkocsovszki Zsolt bbe0542806 m32rsim: Add doxygen headers. 2013-12-30 14:07:13 -06:00
Toma Radu 7c70c1d7ce m68k_csb360: doxygen improvement
Add doxygen to the header files in the m68k/cdb360 directory.
2013-12-30 13:03:09 -06:00
Joel Sherrill 85f2486b5f libbsp misc: Fix comment formatting 2013-12-30 12:56:19 -06:00
Szkocsovszki Zsolt 41aebd8a76 m32cbsp: Add doxygen headers. 2013-12-30 11:40:26 -06:00
Toma Radu fa01e0d058 i386/pc386: Add doxygen file headers. 2013-12-30 10:48:57 -06:00
Joel Sherrill 1953027120 sp09: Remove region test references 2013-12-30 09:53:31 -06:00
Joel Sherrill 8211b9f3b0 spregion_err01: Remove unneeded fluff copied from sp09
The goal is to shrink the individual tests to have no unneeded
resources and to follow the structure of a normal test.
2013-12-30 09:53:31 -06:00
Mandar Juvekar dfcb3ace79 spregion_err01: New test refactored from sp09 2013-12-30 09:18:51 -06:00
Szkocsovszki Zsolt d281de9133 h8sim: Add Doxygen directives 2013-12-28 17:57:16 -06:00
Toma Radu 7183e01dfc Test suite documentations corrections and fixes.
Correct the sp02.doc, sp05.doc, sp06.doc, sp07.doc, sp08.doc files.
2013-12-28 17:37:31 -06:00
Szkocsovszki Zsolt 9bb28849c4 libbsp/m68k: Add doxygen to m68k shared files. 2013-12-26 12:51:20 -06:00
Rishi Sharma b23ef87403 psx03: Add doc file 2013-12-26 10:10:52 -06:00
Mandar Juvekar d2d4a8f99d utf8proc1/spedgsched01: minor fixes in test document files 2013-12-25 16:10:26 -06:00
Toma 03d184d0f8 lm32_milkymist: improve doxygen
Add doxygen to the header files in the /lm32/milymist/include directory.
2013-12-24 17:06:33 -05:00
Toma 5b4c479572 lm32_evr: improve doxygen
Add doxygen to the header files in the /lm32/lm32_evr/include directory.
2013-12-24 14:37:13 -05:00
Daniel Ramirez 997f22342c bfin_eZKit533: added new doxygen 2013-12-24 13:19:15 -05:00
Mandar Juvekar c51645f339 psxtests/psx14: Add doc file 2013-12-24 10:15:43 -05:00
Chirayu Desai 7b5f6643b2 sptests: refactor sp09/screen13 into a new test spclock_err02 2013-12-24 09:53:59 -05:00
Daniel Ramirez 0c09ccf3d5 bfin_TLL6527: added new doxygen 2013-12-24 09:50:09 -05:00
Chris Johns 6a26e9bbf5 cpukit/capture: Print the uptime and diff in ctrace.
Print the uptime and difference in nanoseconds to the previous
record in the ctrace output. For example:

    0:00:59.474927121     14760 0a01000c TNTD 235 235 CREATED_BY
    0:00:59.474927418       297 0a010012 /dev 235 235 CREATED
    0:00:59.474930799      3381 0a01000c TNTD 235 235 STARTED_BY
    0:00:59.474931105       306 0a010012 /dev 235 235 STARTED
    0:00:59.475072297    141192 0a01000c TNTD 235 235 SWITCHED_OUT
2013-12-24 18:08:29 +11:00
Chris Johns 9f9c0bbf47 cpukit/capture: Use the new RTEMS API to get the uptime in nanoseconds.
Use the new API to get the uptime in nanoseconds and update the capture
engine.
2013-12-24 16:46:19 +11:00