- 26 Jul, 2013 4 commits
-
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
The select must be always called with the least required timeout. This patch fixes a bug which caused an undesired delay when a state machine, after receiving a packet, needed to be called soon (e.g. when it has just changed its status: its desired delay is 0). Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
The coding for wr timestamping functions has been mostly copied from ptp-noposix project: file libptpnetif/ptpd_netif.c, commit 2e46712e. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 25 Jul, 2013 6 commits
-
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
According to previous patch, since wrc is a single interface architecture, set nlinks=0 so that pp_links configuration will not be searched for in ptp engine. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
The pp_links mechanism, currently based on /etc/ppsi.conf file, shall not be mandatory, since not all archs will use it. Thus, this patch reduces at its minimum the dependency on ppi->nlinks. If an arch is not using the pp_links, it just has to define nlinks=0 in pp_globals struct, and the engine will work as well, assuming one pp_instance has been configured in the main. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
No functional modification at all. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
The same values used in ptp-noposix are copied here. Reference file in ptp-noposix is PTPWRd/constants.h, last changed by commit f57bc6cd. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
A shorter interval between delay req messages leads to a faster synchronization. This parameter was increased in the past because of some stability issues, but at present it can be changed back to the same value as ptp-noposix. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 07 Jul, 2013 11 commits
-
-
Alessandro Rubini authored
Sometimes the macros may already be defined (e.g.: arch-bathos). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This allows the arch-specific Makefile to set CONFIG_NO_PRINTF, it it knows no printf is needed from ppsi (applies to wrpc and bathos). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Some compilers complain about using "%i" with Integer32, so cast it away. Which is bad in itself, but I see no other clean option; fortunately, it's only diagnostic messages. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Poul-Henning Kamp authored
stay in sync.
-
Alessandro Rubini authored
We need to make WR-specific things while managing the time and network operations (even if proto-ext-whiterabbit does most of the stuff without calling the time operations). Thus, open-code the wrs operation, even if temporary they just call the unix ones (which, however, are static to their own files, and only the overall data structure is exported). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Otherwise, a non-superuser Unix run takes 100% cpu time sending to stderr the same error forever. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The addition of a trailing \n (suggested by me) cannot be made if in /etc/ppsi.conf exists: configuration is a constant string This also simplifies the code and makes better error management: we can use fprintf here, and fopen/fread as well. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 12 Jun, 2013 6 commits
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 08 Jun, 2013 4 commits
-
-
Aurelio Colosimo authored
This fixes a bug which was introduced in commit 75eb932e and found out (together with the proposed solution) by Alessandro Rubini. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
This patch permits to properly parse ppsi.conf files even if it is not terminated with a newline. Thanks to Alessandro Rubini for the hint. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 05 Jun, 2013 9 commits
-
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
The core of server functionality is in wrs-ipcserver.c, which basically consists of a porting of PTPWRd/ptpd_exports.[ch], as they are seen in commit 080d54fb of the repository: git://ohwr.org/white-rabbit/ppsi/ptp-noposix.git Two notes: - this implementation, like the one I'm porting from, does not make use of minipc_server_get_fdset, which would make the minipc_server_action be called only when necessary (by means of a select); indeed, minipc_server_action is called at each cycle in the main loop; - the server is created by using "ptpd" as its mnemonic name, for compatibility with ptp-noposix. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Some archs (e.g. wrs does) may need to force the usage of a specific extension, so include extension Makefile after arch Makefile, so that arch Makefile can modify PROTO_EXT env var. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
wr_servo_enable_tracking function will be used by arch-wrs, so define it in wr-api.h. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Since ppsi-wrs.h is used by time-wrs files too, move it in include directory. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
All the placeholders in wrs-time.c and wrs-calibration.c are here filled with their proper implementation. Note: some functions were already implemented in commit 19a203b4. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Since the hal client is called in two places (arch-wrs/wrs-calibration.c and time-wrs/wrs-time.c), put what is common in the general include file provided by arch-wrs. Indeed this file should be moved to arch-wrs/include (will be done in one of the next commits). Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-