-
Notifications
You must be signed in to change notification settings - Fork 0
/
rfWsnNode.syscfg
69 lines (61 loc) · 2.95 KB
/
rfWsnNode.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
/**
* 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 "CC1312R1F3RGZ" --package "RGZ" --part "Default" --product "[email protected]"
* @versions {"data":"2021060817","timestamp":"2021060817","tool":"1.8.2+1992","templates":null}
*/
/**
* Import the modules used in this configuration.
*/
const CCFG = scripting.addModule("/ti/devices/CCFG");
const rfdesign = scripting.addModule("/ti/devices/radioconfig/rfdesign");
const ADC = scripting.addModule("/ti/drivers/ADC", {}, false);
const ADC1 = ADC.addInstance();
const I2C = scripting.addModule("/ti/drivers/I2C", {}, false);
const I2C1 = I2C.addInstance();
const RF = scripting.addModule("/ti/drivers/RF");
const RTOS = scripting.addModule("/ti/drivers/RTOS");
const UART = scripting.addModule("/ti/drivers/UART", {}, false);
const UART1 = UART.addInstance();
const UART2 = scripting.addModule("/ti/drivers/UART2", {}, false);
const UART21 = UART2.addInstance();
const easylink = scripting.addModule("/ti/easylink/easylink");
/**
* Write custom configuration values to the imported modules.
*/
CCFG.enableBootloader = true;
CCFG.enableBootloaderBackdoor = true;
CCFG.dioBootloaderBackdoor = 13;
CCFG.levelBootloaderBackdoor = "Active low";
CCFG.ccfgTemplate.$name = "ti_devices_CCFGTemplate0";
ADC1.$name = "CONFIG_ADC_0";
ADC1.adc.adcPin.$assign = "37";
ADC1.adcPinInstance.$name = "CONFIG_PIN_6";
I2C1.$name = "CONFIG_I2C_0";
I2C1.i2c.sdaPin.$assign = "11";
I2C1.i2c.sclPin.$assign = "10";
I2C1.sdaPinInstance.$name = "CONFIG_PIN_4";
I2C1.clkPinInstance.$name = "CONFIG_PIN_5";
UART1.$name = "CONFIG_UART_0";
UART1.uart.txPin.$assign = "20";
UART1.uart.rxPin.$assign = "19";
UART1.txPinInstance.$name = "CONFIG_PIN_0";
UART1.rxPinInstance.$name = "CONFIG_PIN_1";
UART21.$name = "CONFIG_UART2_0";
UART21.uart.txPin.$assign = "17";
UART21.uart.rxPin.$assign = "18";
UART21.txPinInstance.$name = "CONFIG_PIN_2";
UART21.rxPinInstance.$name = "CONFIG_PIN_3";
easylink.addrSize = 8;
easylink.EasyLink_Phy_5kbpsSlLr = true;
easylink.EasyLink_Phy_Custom = false;
easylink.radioConfigEasylinkPhy5kbpssllr.codeExportConfig.$name = "ti_devices_radioconfig_code_export_param1";
/**
* 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.
*/
ADC1.adc.$suggestSolution = "ADC0";
I2C1.i2c.$suggestSolution = "I2C0";
UART1.uart.$suggestSolution = "UART1";
UART21.uart.$suggestSolution = "UART0";