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

Set IO through a register

I want to use the register of Nordic's P0 port directly to set 1 or clear 0. Like this,

p_reg-> OUTCLR = clr_mask;

P_reg - & gt; OUTSET = set_mask;

p_reg-> OUTCLR = 20;

P_reg - & gt; OUTSET = 20;

But it can't be done. Show me how to do it thanks!

Parents Reply Children
No Data
Related