
15 Jun
2011
15 Jun
'11
3:03 p.m.
Hi Wolfgang,
On 15/06/11 22:51, Wolfgang Denk wrote:
Dear Graeme Russ,
In message 4DF8A8CF.5000308@gmail.com you wrote:
And to set the value then you have:
reg &= ~a_mask; /* Clear a_val */ reg |= (a_val << a_shift) & a_mask; /* Set new a_val */
This could be done using
clrsetbits_le32(®, a_mask, a_val << a_shift);
Well the funny thing is, I find the former more obvious than the later ;) (but that's because I am not familiar with clrsetbits*) - But yes, 'I get it'
Regards,
Graeme