Ok, just to be sure I understand what I'm supposed to do. So, I can ignore that for the launchpad they used the pin numbers for the headers, instead of the pin out on the 80 pin chip on the board, and replace it with the pin out of the 48 pin package that I used on my custom board.
At line 45, I would change to SS0 = 16 because that's the pin that P4.0 is on the 48 pin package (if I had used that as the EUSCI_B0 chip select pin)
line 216, I'll shorten the whole section to be 48 long, and match the pins to their function. So, whatever line is pin 16 will be:
static const uint8_t P4_0 = 16;
And then the arrays down below, I shorten them to be 49 long, since there is no pin 0, and rearrange them so the pins correspond to the position in the array. So, for example, digital_pin_to_timer or the 12th line of the array would be :
T0B2, /* 11 - P1.5 */
because on pin 11 there's the timer TB0.2 and the digital pin 1.5, even changing the comments so I don't confuse myself in case I have to come back to it in a few months. And then do the same for the other arrays.
Did I miss anything? Other than trying to make the new board variant show up in the IDE, and maybe using different pins in the section at line 45 because I used EUSCI_A1 for spi, instead of B0. I'll make new threads for those if I can't figure them out.
Thank you so much!