Skip to content
Snippets Groups Projects
Commit d8be9e5b authored by Tomasz Wlostowski's avatar Tomasz Wlostowski Committed by Grzegorz Daniluk
Browse files

dev/pps_gen.c: enable timing output (not only PPS) when synced


Signed-off-by: default avatarGrzegorz Daniluk <grzegorz.daniluk@cern.ch>
parent af10e6ff
No related merge requests found
......@@ -112,9 +112,9 @@ int pps_gen_enable_output(int enable)
{
uint32_t escr = ppsg_read(ESCR);
if(enable)
ppsg_write(ESCR, escr | PPSG_ESCR_PPS_VALID);
ppsg_write(ESCR, escr | PPSG_ESCR_PPS_VALID | PPSG_ESCR_TM_VALID);
else
ppsg_write(ESCR, escr & ~PPSG_ESCR_PPS_VALID);
ppsg_write(ESCR, escr & ~(PPSG_ESCR_PPS_VALID | PPSG_ESCR_TM_VALID));
return 0;
}
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