Daniel Flor schrieb:
> I am a beginer in mspgcc, and I'm using mspgcc + eclipse for make a
> program. I saw some code examples for IAR, and many of the comands are
> similar in mspgcc. However, there are commands in IAR, like
> UxTCTL_bit.TXEPT,  that allows us to manipulate bits in the registers.
> Are there similar commands in mspgcc?

yes.

see #include <msp430/iostructures.h> for the ports
there are similar structures for the timers and some other peripherals.

though the usart currently doesn't have them. patches are welcome ;-)

hm... i see the bit names are lower case in our files, maybe that should
be changed.

please note that accessing the peripherals with bit set/bit clear (r |=
x ; r &= ~x) is more common.

chris

Reply via email to