I've just concluded the development of an application using the IAR IDE.
I included the io430g2553.h header file to write the code using a bitfield approach.
Hereafer a couple of examples of definition I used to access individual bits in the MSP registers:
#define SWITCH_IN P2IN_bit.P6 // P2.6
#define AUDIO_AMPLIFIER_ENABLE_OUT P2OUT_bit.P7 // P2.7
I'm now starting the migration to the Code Composer Studio IDE (I'm new with this IDE).
I only found the msp4302553.h header file: it seems it isn't possible to access the registers using a bit field approach.
Hereafter my questions:
- Is there any procedure to use the already developed code "as it is"?
- Should I modify ALL the code using the "standard" syntax?
- There is any reason to avoid this the bitfield syntax? (I started years ago using bitfield approach because in my opinion the code is more readable)
Thanks in advance