I need to set REGOUT0 to 3v3 for a custom board. What's the best way to do this using the armgcc toolchain? Right now, I'm setting the value first thing in my main:
int main(void) { NRF_UICR_Type *uicr = NRF_UICR; uicr = &((NRF_UICR_Type){ .REGOUT0 = UICR_REGOUT0_VOUT_3V3 }); ...
Is there a way to bake the values into the hex file, itself, without futzing with linker scripts?