Pal and Frank are correct, this should work. The only word of warning I might add is the be wary of the BIT order when jumping from compiler to compiler, especially within structures in the application. Many of the new tool chains have pushed this back onto the compiler and you can built MSBit first or LSBit first (like on the RX family) to be compatible when porting "legacy code". I am not sure about IAR, but I believe you are OK if you make it same order as the other IO/SFR declarations that do have bit definitions.
↧