I got the No-OS SW reference design from website. in the function adc_capture() of "adc_core.c" file.
my question is:
why it reads value from register into reg_val and then immediately write reg_val to register.
is register value always equal to reg_val before reg_val written back to the register? if yes,why reg_val needs to be written back to the register. if no, in what cases they are different.