Cleaned up IPU register write functions

Use "volatile" for pointers to registers.
Converted set_bit and clr_bit from macros to functions.
Changed "bit" argument to "mask", since that is what it's used for.
Add "inline" keyword to avoid warnings if a function is not called.