-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpiointerrupt.syscfg
62 lines (53 loc) · 2.56 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
/**
* 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/CC3220S_LAUNCHXL" --rtos "nortos" --product "[email protected]"
* @versions {"tool":"1.19.0+3426"}
*/
/**
* 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 I2C = scripting.addModule("/ti/drivers/I2C", {}, false);
const I2C1 = I2C.addInstance();
const Power = scripting.addModule("/ti/drivers/Power");
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.$hardware = system.deviceData.board.components.SW2;
GPIO1.$name = "CONFIG_GPIO_BUTTON_0";
GPIO2.$hardware = system.deviceData.board.components.SW3;
GPIO2.$name = "CONFIG_GPIO_BUTTON_1";
GPIO3.$hardware = system.deviceData.board.components.LED_RED;
GPIO3.$name = "CONFIG_GPIO_LED_0";
I2C1.$name = "CONFIG_I2C_0";
I2C1.$hardware = system.deviceData.board.components.LP_I2C;
I2C1.i2c.sdaPin.$assign = "boosterpack.10";
Power.parkPins.$name = "ti_drivers_power_PowerCC32XXPins0";
Timer1.$name = "CONFIG_TIMER_0";
Timer1.timerType = "32 Bits";
UART21.$name = "CONFIG_UART2_0";
UART21.$hardware = system.deviceData.board.components.XDS110UART;
/**
* 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.
*/
GPIO1.gpioPin.$suggestSolution = "boosterpack.3";
GPIO2.gpioPin.$suggestSolution = "boosterpack.11";
GPIO3.gpioPin.$suggestSolution = "boosterpack.29";
I2C1.i2c.$suggestSolution = "I2C0";
I2C1.i2c.sclPin.$suggestSolution = "boosterpack.9";
Timer1.timer.$suggestSolution = "Timer0";
UART21.uart.$suggestSolution = "UART0";
UART21.uart.txPin.$suggestSolution = "GP01";
UART21.uart.txDmaChannel.$suggestSolution = "UDMA_CH9";
UART21.uart.rxPin.$suggestSolution = "GP02";
UART21.uart.rxDmaChannel.$suggestSolution = "UDMA_CH8";