-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzed_genericapp.syscfg
177 lines (151 loc) · 7.71 KB
/
zed_genericapp.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/**
* 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/CC26X2R1_LAUNCHXL" --product "[email protected]"
* @versions {"data":"2021010520","timestamp":"2021010520","tool":"1.7.0+1746","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 ADC2 = ADC.addInstance();
const ADC3 = ADC.addInstance();
const AESCBC = scripting.addModule("/ti/drivers/AESCBC");
const AESCBC1 = AESCBC.addInstance();
const AESCCM = scripting.addModule("/ti/drivers/AESCCM");
const AESCCM1 = AESCCM.addInstance();
const AESECB = scripting.addModule("/ti/drivers/AESECB");
const AESECB1 = AESECB.addInstance();
const DMA = scripting.addModule("/ti/drivers/DMA");
const ECDH = scripting.addModule("/ti/drivers/ECDH");
const ECDH1 = ECDH.addInstance();
const ECDSA = scripting.addModule("/ti/drivers/ECDSA");
const ECDSA1 = ECDSA.addInstance();
const ECJPAKE = scripting.addModule("/ti/drivers/ECJPAKE");
const ECJPAKE1 = ECJPAKE.addInstance();
const GPIO = scripting.addModule("/ti/drivers/GPIO", {}, false);
const GPIO1 = GPIO.addInstance();
const GPIO2 = GPIO.addInstance();
const GPIO3 = GPIO.addInstance();
const NVS = scripting.addModule("/ti/drivers/NVS");
const NVS1 = NVS.addInstance();
const Power = scripting.addModule("/ti/drivers/Power");
const RF = scripting.addModule("/ti/drivers/RF");
const SHA2 = scripting.addModule("/ti/drivers/SHA2");
const SHA21 = SHA2.addInstance();
const TRNG = scripting.addModule("/ti/drivers/TRNG");
const TRNG1 = TRNG.addInstance();
const Button = scripting.addModule("/ti/drivers/apps/Button");
const Button1 = Button.addInstance();
const Button2 = Button.addInstance();
const Button3 = Button.addInstance();
const Button4 = Button.addInstance();
const Button5 = Button.addInstance();
const LED = scripting.addModule("/ti/drivers/apps/LED");
const LED1 = LED.addInstance();
const LED2 = LED.addInstance();
const zstack = scripting.addModule("/ti/zstack/zstack");
/**
* 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_CH1";
ADC1.adc.adcPin.$assign = "boosterpack.25";
ADC1.adcPinInstance.$name = "CONFIG_PIN_1";
ADC1.adcPinInstance.pull = "Pull Up";
ADC2.$name = "CONFIG_ADC_CH2";
ADC2.adc.adcPin.$assign = "boosterpack.26";
ADC2.adcPinInstance.$name = "CONFIG_PIN_2";
ADC2.adcPinInstance.pull = "Pull Up";
ADC3.$name = "CONFIG_ADC_VDDS";
ADC3.internalSignal = "Battery Channel";
AESCBC1.$name = "CONFIG_AESCBC_0";
AESCCM1.$name = "CONFIG_AESCCM_0";
AESCCM1.interruptPriority = "2";
AESECB1.$name = "CONFIG_AESECB_0";
AESECB1.interruptPriority = "1";
ECDH1.$name = "CONFIG_ECDH_0";
ECDSA1.$name = "CONFIG_ECDSA_0";
ECJPAKE1.$name = "CONFIG_ECJPAKE_0";
GPIO1.$name = "CONFIG_GPIO_POWER_CH1";
GPIO1.mode = "Output";
GPIO1.gpioPin.$assign = "boosterpack.32";
GPIO1.pinInstance.$name = "CONFIG_PIN_5";
GPIO2.$name = "CONFIG_GPIO_POWER_CH2";
GPIO2.mode = "Output";
GPIO2.gpioPin.$assign = "boosterpack.31";
GPIO2.pinInstance.$name = "CONFIG_PIN_6";
GPIO3.$name = "CONFIG_GPIO_POWER_CH3";
GPIO3.mode = "Output";
GPIO3.gpioPin.$assign = "boosterpack.10";
GPIO3.pinInstance.$name = "CONFIG_PIN_7";
NVS1.$name = "CONFIG_NVSINTERNAL";
NVS1.internalFlash.$name = "ti_drivers_nvs_NVSCC26XX0";
NVS1.internalFlash.regionBase = 0x52000;
NVS1.internalFlash.regionSize = 0x4000;
SHA21.$name = "CONFIG_SHA2_0";
TRNG1.$name = "CONFIG_TRNG_0";
Button1.$name = "CONFIG_BTN_LEFT";
Button1.$hardware = system.deviceData.board.components["BTN-1"];
Button1.gpioPin.$name = "CONFIG_GPIO_BTN1";
Button1.gpioPin.pinInstance.$name = "CONFIG_PIN_BTN1";
Button2.$name = "CONFIG_BTN_RIGHT";
Button2.$hardware = system.deviceData.board.components["BTN-2"];
Button2.gpioPin.$name = "CONFIG_GPIO_BTN2";
Button2.gpioPin.pinInstance.$name = "CONFIG_PIN_BTN2";
Button3.$name = "CONFIG_BUTTON_CH1";
Button3.hwConfig = "Active Low Pull Up";
Button3.gpioPin.$name = "CONFIG_GPIO_COUNTER_CH1";
Button3.gpioPin.gpioPin.$assign = "boosterpack.5";
Button3.gpioPin.pinInstance.$name = "CONFIG_PIN_0";
Button4.$name = "CONFIG_BUTTON_CH2";
Button4.hwConfig = "Active Low Pull Up";
Button4.gpioPin.$name = "CONFIG_GPIO_COUNTER_CH2";
Button4.gpioPin.gpioPin.$assign = "boosterpack.8";
Button4.gpioPin.pinInstance.$name = "CONFIG_PIN_3";
Button5.$name = "CONFIG_BUTTON_CH3";
Button5.hwConfig = "Active Low Pull Up";
Button5.gpioPin.$name = "CONFIG_GPIO_COUNTER_CH3";
Button5.gpioPin.gpioPin.$assign = "boosterpack.9";
Button5.gpioPin.pinInstance.$name = "CONFIG_PIN_4";
LED1.$name = "CONFIG_LED_RED";
LED1.$hardware = system.deviceData.board.components.LED_RED;
LED1.gpioPin.$name = "CONFIG_GPIO_RLED";
LED1.gpioPin.pinInstance.$name = "CONFIG_PIN_RLED";
LED2.$name = "CONFIG_LED_GREEN";
LED2.$hardware = system.deviceData.board.components.LED_GREEN;
LED2.gpioPin.$name = "CONFIG_GPIO_GLED";
LED2.gpioPin.pinInstance.$name = "CONFIG_PIN_GLED";
zstack.deviceType = "zed";
zstack.deviceTypeReadOnly = true;
zstack.touchlink.$name = "ti_zstack_touchlink_zstack_touchlink0";
zstack.pm.$name = "ti_zstack_pm_zstack_pm0";
zstack.pm.pollPeriod = 4294967295;
zstack.rf.$name = "ti_zstack_rf_zstack_rf0";
zstack.rf.primaryChannels = [11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26];
zstack.rf.txPower = "5";
zstack.rf.radioConfig.$name = "ti_devices_radioconfig_settings_ieee_15_40";
zstack.rf.radioConfig.codeExportConfig.$name = "ti_devices_radioconfig_code_export_param0";
zstack.network.$name = "ti_zstack_network_zstack_network0";
zstack.advanced.$name = "ti_zstack_advanced_zstack_advanced0";
zstack.advanced.routing.$name = "ti_zstack_advanced_zstack_routing0";
zstack.advanced.packetSending.$name = "ti_zstack_advanced_zstack_packet_sending0";
zstack.advanced.tableSize.$name = "ti_zstack_advanced_zstack_table_size0";
/**
* 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";
ADC2.adc.$suggestSolution = "ADC0";
Button1.gpioPin.gpioPin.$suggestSolution = "boosterpack.13";
Button2.gpioPin.gpioPin.$suggestSolution = "boosterpack.12";
LED1.gpioPin.gpioPin.$suggestSolution = "boosterpack.39";
LED2.gpioPin.gpioPin.$suggestSolution = "boosterpack.40";