19 lines
599 B
Plaintext
19 lines
599 B
Plaintext
/**
|
|
* LED Blink configuration for MSPM0G3507
|
|
* LED on PB9, active low
|
|
*/
|
|
//@cliArgs --device "MSPM0G350X" --package "LQFP-64(PM)" --part "Default"
|
|
|
|
const GPIO = scripting.addModule("/ti/driverlib/GPIO", {}, false);
|
|
const GPIO1 = GPIO.addInstance();
|
|
const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL");
|
|
|
|
GPIO1.$name = "GPIO_LED";
|
|
GPIO1.port = "PORTB";
|
|
GPIO1.associatedPins.create(1);
|
|
GPIO1.associatedPins[0].$name = "LED";
|
|
GPIO1.associatedPins[0].assignedPin = "9";
|
|
|
|
SYSCTL.forceDefaultClkConfig = true;
|
|
SYSCTL.clockTreeEn = true;
|