init
This commit is contained in:
commit
a1cbf4a3c3
11 files changed
+460
No files matched your search
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* 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;
|
||||
Reference in new issue
Block a user