-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgpio_toggle_output.syscfg
More file actions
44 lines (38 loc) · 1.73 KB
/
gpio_toggle_output.syscfg
File metadata and controls
44 lines (38 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "MSPM0G350X" --package "LQFP-64(PM)" --part "Default" --product "mspm0_sdk@2.00.01.01"
* @versions {"tool":"1.19.0+3426"}
*/
/**
* Import the modules used in this configuration.
*/
const GPIO = scripting.addModule("/ti/driverlib/GPIO", {}, false);
const GPIO1 = GPIO.addInstance();
const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL");
/**
* Write custom configuration values to the imported modules.
*/
GPIO1.$name = "LED";
GPIO1.port = "PORTB";
GPIO1.associatedPins.create(8);
GPIO1.associatedPins[0].assignedPin = "13";
GPIO1.associatedPins[1].assignedPin = "14";
GPIO1.associatedPins[2].assignedPin = "23";
GPIO1.associatedPins[3].assignedPin = "24";
GPIO1.associatedPins[4].assignedPin = "15";
GPIO1.associatedPins[5].assignedPin = "16";
GPIO1.associatedPins[6].assignedPin = "20";
GPIO1.associatedPins[7].assignedPin = "22";
const Board = scripting.addModule("/ti/driverlib/Board", {}, false);
SYSCTL.clockTreeEn = true;
SYSCTL.enableROSC = true;
SYSCTL.forceDefaultClkConfig = true;
/**
* Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
Board.peripheral.$suggestSolution = "DEBUGSS";
Board.peripheral.swclkPin.$suggestSolution = "PA26";
Board.peripheral.swdioPin.$suggestSolution = "PA19";