This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F6765A: How to utilize PIN.h for MSP430, Board.h?

Part Number: MSP430F6765A

I'm new to CCS but I'm learning quickly. I've got a great start on a RTOS project and have created proof of concepts for all my peripherals. Before I start the job of integrating all the tasks, I'm reviewing the code and am exploring PIN.h as an alternative to the driver lib implementations I've been using.

Here's an example of what I have so far:

// Configure LEDs
GPIO_setAsOutputPin(GPIO_PORT_P2, GPIO_PIN1 | GPIO_PIN2);
GPIO_setAsOutputPin(GPIO_PORT_P2, GPIO_PIN4 | GPIO_PIN5 | GPIO_PIN6);
GPIO_setOutputLowOnPin(GPIO_PORT_P2, GPIO_PIN4 | GPIO_PIN5 | GPIO_PIN6);
GPIO_setDriveStrength(GPIO_PORT_P2, GPIO_PIN4, GPIO_FULL_OUTPUT_DRIVE_STRENGTH); // Drive blue at full strength

// Buttons - Common is P1.4, Interrupt 45
GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN4);
GPIO_setOutputHighOnPin(GPIO_PORT_P1, GPIO_PIN4);
unsigned char allButtonsMask = GPIO_PIN0 | GPIO_PIN1 | GPIO_PIN2 | GPIO_PIN3;
GPIO_setAsInputPinWithPullDownResistor( GPIO_PORT_P1, allButtonsMask);
GPIO_enableInterrupt( GPIO_PORT_P1, allButtonsMask);
GPIO_selectInterruptEdge(GPIO_PORT_P1, allButtonsMask, GPIO_LOW_TO_HIGH_TRANSITION);

I've read through the whole PIN.h. It seems like great documentation, but I can't figure out how to get the integers for the PIN_IDs. I imagine they are coming from a Board.h implementation, but I don't know where to find those, either.

#define HUI_LED_A     PIN_ID(11) // Where do I find "11" for my board's GPIO_PORT_P2, GPIO_PIN1?

I did a lot of work to build my own driverlib for this board via . However, I think I've skipped .

I've been flying without a Board.h for a while... Is there an easier way to get one of these or do I need to port it manually? I want to avoid recreating the wheel.

**Attention** This is a public forum