Commit d943165d authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

removed references to UTC timescale in HAL/ptpnetif files

parent d14c03a9
...@@ -705,12 +705,12 @@ int ptpd_netif_adjust_counters(int64_t adjust_utc, int32_t adjust_nsec) ...@@ -705,12 +705,12 @@ int ptpd_netif_adjust_counters(int64_t adjust_utc, int32_t adjust_nsec)
if(adjust_utc) if(adjust_utc)
{ {
cmd = HEXP_PPSG_CMD_ADJUST_UTC; cmd = HEXP_PPSG_CMD_ADJUST_SEC;
p.adjust_utc = adjust_utc; p.adjust_sec = adjust_utc;
} else { } else {
cmd = HEXP_PPSG_CMD_ADJUST_NSEC; cmd = HEXP_PPSG_CMD_ADJUST_NSEC;
p.adjust_nsec = adjust_nsec; p.adjust_nsec = adjust_nsec;
} }
if(!halexp_pps_cmd(cmd, &p)) if(!halexp_pps_cmd(cmd, &p))
return PTPD_NETIF_OK; return PTPD_NETIF_OK;
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define HEXP_PPSG_CMD_GET 0 #define HEXP_PPSG_CMD_GET 0
#define HEXP_PPSG_CMD_ADJUST_PHASE 1 #define HEXP_PPSG_CMD_ADJUST_PHASE 1
#define HEXP_PPSG_CMD_ADJUST_UTC 2 #define HEXP_PPSG_CMD_ADJUST_SEC 2
#define HEXP_PPSG_CMD_ADJUST_NSEC 3 #define HEXP_PPSG_CMD_ADJUST_NSEC 3
#define HEXP_PPSG_CMD_POLL 4 #define HEXP_PPSG_CMD_POLL 4
#define HEXP_PPSG_CMD_SET_VALID 5 #define HEXP_PPSG_CMD_SET_VALID 5
...@@ -43,9 +43,6 @@ ...@@ -43,9 +43,6 @@
#define HEXP_ON 1 #define HEXP_ON 1
#define HEXP_OFF 0 #define HEXP_OFF 0
#define HEXP_HPLL 0
#define HEXP_DMPLL 1
#define HEXP_FREQ 0 #define HEXP_FREQ 0
#define HEXP_PHASE 1 #define HEXP_PHASE 1
...@@ -72,10 +69,10 @@ typedef struct { ...@@ -72,10 +69,10 @@ typedef struct {
uint32_t current_phase_shift; uint32_t current_phase_shift;
int32_t adjust_phase_shift; int32_t adjust_phase_shift;
int64_t adjust_utc; int64_t adjust_sec;
int32_t adjust_nsec; int32_t adjust_nsec;
uint64_t current_utc; uint64_t current_sec;
uint32_t current_nsec; uint32_t current_nsec;
} hexp_pps_params_t; } hexp_pps_params_t;
......
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