Commit d0923675 authored by Aurelio Colosimo's avatar Aurelio Colosimo Committed by Alessandro Rubini

pps_gen_ functions renamed to shw_pps_gen_

Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent 4864f12f
......@@ -164,7 +164,7 @@ static int got_sync = 0;
void wr_servo_reset()
{
// pps_gen_enable_output(0); /* fixme: unportable */
// shw_pps_gen_enable_output(0); /* fixme: unportable */
cur_servo_state.valid = 0;
servo_state_valid = 0;
// ptpd_netif_enable_timing_output(0);
......@@ -420,7 +420,7 @@ int wr_servo_update(PtpPortDS *clock)
if(tracking_enabled)
{
// pps_gen_enable_output(1);
// shw_pps_gen_enable_output(1);
// just follow the changes of deltaMS
s->cur_setpoint += (s->delta_ms - s->delta_ms_prev);
......
......@@ -183,21 +183,21 @@ int ptpd_netif_read_calibration_data(const char *ifaceName, uint64_t *deltaTx,
int ptpd_netif_enable_timing_output(int enable)
{
pps_gen_enable_output(enable);
shw_pps_gen_enable_output(enable);
return PTPD_NETIF_OK;
}
int ptpd_netif_adjust_in_progress()
{
return pps_gen_busy() || spll_shifter_busy(0);
return shw_pps_gen_busy() || spll_shifter_busy(0);
}
int ptpd_netif_adjust_counters(int64_t adjust_sec, int32_t adjust_nsec)
{
if(adjust_sec)
pps_gen_adjust(PPSG_ADJUST_SEC, adjust_sec);
shw_pps_gen_adjust(PPSG_ADJUST_SEC, adjust_sec);
if(adjust_nsec)
pps_gen_adjust(PPSG_ADJUST_NSEC, adjust_nsec);
shw_pps_gen_adjust(PPSG_ADJUST_NSEC, adjust_nsec);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment