Part Number: MSP430F2274
Hi,
I would like to find out how to go about parameterizing one of these tags. For example, what would be the right way to turn this:
void tx(unsigned char txbyte) //This routine transmits a byte from UCA0
{
UCA0TXBUF = txbyte;
}
into something more like this:
void tx(unsigned char txbyte, some data type transmitBuffer) //This routine transmits a byte from UCA0
{
transmitBuffer = txbyte;
}
so that I could call the tx function like this:
tx(0x11, UCA0TXBUF);
I would like to have this function in a file which will be shared between different variants of MSP430s which may have different #define names for transmit buffers and other registers.