Jacob Keller
2012-09-28 18:45:38 UTC
The following series updates the servo selection code to enable easier selection
of new servo types. The intent behind this code originally was to add a new jump
servo which would jump the clock when beyond a certain value. However due to the
similarity to the pi servo, this code has been added as a configurable feature
of the pi servo. The new default is to never jump unless the offset is
configured greater than 0. 0
The first 3 patches modify ptp4l's clock servo selection code by creating an
enum, and removing reliance on the string value. It also adds a configuration
option to the config file (though it is mostly useless since there is only one
servo at this time)
The last two patches modify the pi servo with the new option and update the
configuration files to show the use of the new options
-v2-
* Pull jump servo code into the pi servo
-v3-
* Fix bug in forgetting to multiply by NSEC_PER_SEC
---
Jacob Keller (5):
ptp4l: modify servo setup to take an enum rather than string
ptp4l: modify clock_create to take servo as argument
ptp4l: add servo selection to the configuration file
ptp4l: add maximum offset to pi servo
ptp4l: update the configuration files
clock.c | 5 +++--
clock.h | 4 +++-
config.c | 12 ++++++++++++
config.h | 6 ++++++
default.cfg | 5 +++++
gPTP.cfg | 5 +++++
pi.c | 24 ++++++++++++++++++++++++
pi.h | 9 +++++++++
ptp4l.c | 7 ++++++-
servo.c | 4 ++--
servo.h | 11 +++++++++--
11 files changed, 84 insertions(+), 8 deletions(-)
--
Signature
of new servo types. The intent behind this code originally was to add a new jump
servo which would jump the clock when beyond a certain value. However due to the
similarity to the pi servo, this code has been added as a configurable feature
of the pi servo. The new default is to never jump unless the offset is
configured greater than 0. 0
The first 3 patches modify ptp4l's clock servo selection code by creating an
enum, and removing reliance on the string value. It also adds a configuration
option to the config file (though it is mostly useless since there is only one
servo at this time)
The last two patches modify the pi servo with the new option and update the
configuration files to show the use of the new options
-v2-
* Pull jump servo code into the pi servo
-v3-
* Fix bug in forgetting to multiply by NSEC_PER_SEC
---
Jacob Keller (5):
ptp4l: modify servo setup to take an enum rather than string
ptp4l: modify clock_create to take servo as argument
ptp4l: add servo selection to the configuration file
ptp4l: add maximum offset to pi servo
ptp4l: update the configuration files
clock.c | 5 +++--
clock.h | 4 +++-
config.c | 12 ++++++++++++
config.h | 6 ++++++
default.cfg | 5 +++++
gPTP.cfg | 5 +++++
pi.c | 24 ++++++++++++++++++++++++
pi.h | 9 +++++++++
ptp4l.c | 7 ++++++-
servo.c | 4 ++--
servo.h | 11 +++++++++--
11 files changed, 84 insertions(+), 8 deletions(-)
--
Signature