Part Number: MSP432P401R
Tool/software: Code Composer Studio
I'm porting some code from the MSP430 to the MSP432 and having trouble with tons of constants being missing. What would be the idiomatic way to port the following code for the MSP432?
switch(__even_in_range(UCA0IV, USCI_UART_UCTXCPTIFG)) { case USCI_NONE: break; case USCI_UART_UCRXIFG: // … handle RX … break; case USCI_UART_UCTXIFG: // … handle TX … break; case USCI_UART_UCSTTIFG: break; // …etc.
It seems that only the constants for IFG flags are available, e.g. EUSCI_A_IFG_TXIFG which expands to 0x2 rather than the 0x4 obtained via USCI_UART_UCTXIFG.
Was I using the wrong headers/constants to begin with in MSP430? Or did use of the IV get deprecated? Why did those constants go away and what should I use in their stead?