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.

CCS/MSP432P401R: MSP432Ware Library

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Can anyone tell me that where can I find driver library for MSP432P401R?

And I wonder if there are code examples to drive the peripherals?

I've downloaded and installed MSP432Ware,but the examples are register level,I want library examples like this:

void initGPIO(void)

{

// Set pin P1.0 to output direction and turn LED off // Red LED (LED1)
MAP_GPIO_setOutputLowOnPin( GPIO_PORT_P1, GPIO_PIN0 );
MAP_GPIO_setAsOutputPin( GPIO_PORT_P1, GPIO_PIN0 );

// Set pin P2.0/2.1/2.1 to output direction and turn LED off // RGB LED (LED2)
MAP_GPIO_setOutputLowOnPin( GPIO_PORT_P2, GPIO_PIN0 + GPIO_PIN1 + GPIO_PIN2 );
MAP_GPIO_setAsOutputPin( GPIO_PORT_P2, GPIO_PIN0 + GPIO_PIN1 + GPIO_PIN2 );

// // Set P1.1 as input with pull-up resistor (for push button S1)
// // First, configure the interrupt to trigger on low-to-high transition
// // and then clear flag and enable the interrupt
// MAP_GPIO_setAsInputPinWithPullUpResistor( GPIO_PORT_P1, GPIO_PIN1 );
// MAP_GPIO_interruptEdgeSelect ( GPIO_PORT_P1, GPIO_PIN1, GPIO_LOW_TO_HIGH_TRANSITION );
// MAP_GPIO_clearInterruptFlag ( GPIO_PORT_P1, GPIO_PIN1 );
// MAP_GPIO_enableInterrupt ( GPIO_PORT_P1, GPIO_PIN1 );

// // Set P1.4 as input with pull-up resistor (for push button S2)
// // First, configure the interrupt to trigger on low-to-high transition
// // and then clear flag and enable the interrupt
// MAP_GPIO_setAsInputPinWithPullUpResistor( GPIO_PORT_P1, GPIO_PIN4 );
// MAP_GPIO_interruptEdgeSelect ( GPIO_PORT_P1, GPIO_PIN4, GPIO_LOW_TO_HIGH_TRANSITION );
// MAP_GPIO_clearInterruptFlag ( GPIO_PORT_P1, GPIO_PIN4 );
// MAP_GPIO_enableInterrupt ( GPIO_PORT_P1, GPIO_PIN4 );

// Set LFXT (low freq crystal pins) and HFXT (high freq crystal pins) as
// clock crystal inputs (rather than GPIO).
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(
GPIO_PORT_PJ,
GPIO_PIN0 + // LFXIN on PJ.0
GPIO_PIN1 + // LFXOUT on PJ.1
GPIO_PIN3 + // HFXOUT on PJ.2
GPIO_PIN2 , // HFXTIN on PJ.3
GPIO_PRIMARY_MODULE_FUNCTION
);

It comes from "MSP_Design_Workshop_Lab_Files",but there haven't more imformation.

Thanks a lot.

**Attention** This is a public forum