Closed pkotamnives closed 1 year ago
btw I noticed that there is a lot of repeated code looking at this https://github.com/apollo-lhc/cm_mcu/blob/3a2a6a8696ed3972f3c37e14c7445ad0c42b8f94/projects/cm_mcu/AlarmUtilities.c#L213-L232 and this https://github.com/apollo-lhc/cm_mcu/blob/3a2a6a8696ed3972f3c37e14c7445ad0c42b8f94/projects/cm_mcu/AlarmUtilities.c#L241-L274
btw I noticed that there is a lot of repeated code looking at this
and this
Sure, I can loop over GEN FPGA1 and FPGA2. Planning to do the same with getting FPGA's vendor parts in LocalTask.cc which is also pretty repetitive.
Sure, I can loop over GEN FPGA1 and FPGA2. Planning to do the same with getting FPGA's vendor parts in LocalTask.cc which is also pretty repetitive.
ok up to you if you want to do this in this PR or in a new one
clock_ctl
but addclearclk_ct
l for a CLI command%clearclk
that can clear all clock sticky bitsclear_clk_stickybit()
is called after a clock is programmed in init Task.%clkmon.
However, not sure if we want to add more registers or remove some that are not necessary.this PR will resolve issue #184