This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Simple question about the peripheral reset code

Hi,

    For a peripheral reset, I was recommended to use the code below.

    I was just wondering about what the middle line does. Is this a kind of delay to make the reset valid?

    *(volatile uint32_t*)0x40002FFC = 0;
    *(volatile uint32_t*)0x40002FFC;
    *(volatile uint32_t*)0x40002FFC = 1;
Thank you.