-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgpiointerrupt.syscfg
71 lines (60 loc) · 2.78 KB
/
gpiointerrupt.syscfg
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**
* 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 --board "/ti/boards/CC1352R1_LAUNCHXL" --rtos "nortos" --product "[email protected]"
* @versions {"tool":"1.10.0+2163"}
*/
/**
* Import the modules used in this configuration.
*/
const GPIO = scripting.addModule("/ti/drivers/GPIO");
const GPIO1 = GPIO.addInstance();
const GPIO2 = GPIO.addInstance();
const GPIO3 = GPIO.addInstance();
const GPIO4 = GPIO.addInstance();
const GPIO5 = GPIO.addInstance();
const GPIO6 = GPIO.addInstance();
const RTOS = scripting.addModule("/ti/drivers/RTOS");
const Timer = scripting.addModule("/ti/drivers/Timer", {}, false);
const Timer1 = Timer.addInstance();
const UART2 = scripting.addModule("/ti/drivers/UART2", {}, false);
const UART21 = UART2.addInstance();
/**
* Write custom configuration values to the imported modules.
*/
GPIO1.$name = "CONFIG_GPIO_INPUT_INFERENCE";
GPIO1.pull = "Pull Down";
GPIO1.gpioPin.$assign = "boosterpack.32";
GPIO2.$name = "CONFIG_GPIO_INPUT_POWER";
GPIO2.pull = "Pull Down";
GPIO2.gpioPin.$assign = "boosterpack.18";
GPIO3.pull = "Pull Down";
GPIO3.$name = "CONFIG_GPIO_INPUT_INDICATOR0";
GPIO3.gpioPin.$assign = "boosterpack.37";
GPIO4.$name = "CONFIG_GPIO_INPUT_INDICATOR1";
GPIO4.pull = "Pull Down";
GPIO4.gpioPin.$assign = "boosterpack.36";
GPIO5.$name = "CONFIG_GPIO_INPUT_INDICATOR2";
GPIO5.pull = "Pull Down";
GPIO5.gpioPin.$assign = "boosterpack.8";
GPIO6.$name = "CONFIG_GPIO_INPUT_INDICATOR3";
GPIO6.pull = "Pull Down";
GPIO6.gpioPin.$assign = "boosterpack.19";
Timer1.$name = "CONFIG_TIMER_0";
Timer1.timerType = "32 Bits";
Timer1.timerInstance.$name = "CONFIG_GPTIMER_0";
const CCFG = scripting.addModule("/ti/devices/CCFG", {}, false);
CCFG.ccfgTemplate.$name = "ti_devices_CCFGTemplate0";
UART21.$name = "CONFIG_UART2_0";
UART21.$hardware = system.deviceData.board.components.XDS110UART;
UART21.txPinInstance.$name = "CONFIG_PIN_1";
UART21.rxPinInstance.$name = "CONFIG_PIN_3";
/**
* 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.
*/
Timer1.timerInstance.timer.$suggestSolution = "GPTM0";
UART21.uart.$suggestSolution = "UART0";
UART21.uart.txPin.$suggestSolution = "boosterpack.4";
UART21.uart.rxPin.$suggestSolution = "boosterpack.3";