add new commands for setting time
When WR PTP Core is set in GrandMaster mode it aligns its nanosecond counter to 1-PPS and 10MHz coming from external source. When user wants to set seconds counter to a desired value (with _time set_ command), the nanosecond counter was also set (zeroed) causing additional (random) offset to the external source. The commit adds _time setsec_ and _time setnsec_ for setting only seconds or nanoseconds counter without affecting the other one. Now, when user wants to set current time on a GrandMaster Node he has to call _time setsec_ command after _mode gm_
Showing
- dev/pps_gen.c 7 additions, 2 deletionsdev/pps_gen.c
- include/hw/pps_gen_regs.h 13 additions, 5 deletionsinclude/hw/pps_gen_regs.h
- include/pps_gen.h 4 additions, 1 deletioninclude/pps_gen.h
- shell/cmd_time.c 11 additions, 1 deletionshell/cmd_time.c
- softpll/hw/pps_gen_regs.h 13 additions, 5 deletionssoftpll/hw/pps_gen_regs.h
Please register or sign in to comment