Skip to content

Commit 03efaec

Browse files
authored
Fix CPU GPIO layer for TI SimpleLink (#2535)
***NO_CI***
1 parent 8c957de commit 03efaec

File tree

3 files changed

+78
-159
lines changed

3 files changed

+78
-159
lines changed

targets/TI_SimpleLink/TI_CC1352R1_LAUNCHXL/TI_CC1352R1_LAUNCHXL_868.syscfg

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ const CCFG = scripting.addModule("/ti/devices/CCFG");
1212
const ADC = scripting.addModule("/ti/drivers/ADC", {}, false);
1313
const ADC1 = ADC.addInstance();
1414
const GPIO = scripting.addModule("/ti/drivers/GPIO", {}, false);
15-
const GPIO2 = GPIO.addInstance();
16-
const GPIO3 = GPIO.addInstance();
17-
const GPIO4 = GPIO.addInstance();
18-
const GPIO5 = GPIO.addInstance();
1915
const UART2 = scripting.addModule("/ti/drivers/UART2", {}, false);
2016
const UART21 = UART2.addInstance();
2117
const easylink = scripting.addModule("/ti/easylink/easylink");
@@ -29,21 +25,6 @@ CCFG.ccfgTemplate.$name = "ti_devices_CCFGTemplate0";
2925
ADC1.$name = "ADC_0";
3026
ADC1.samplingDuration = "170 us";
3127

32-
GPIO2.$name = "CONFIG_GPIO_0";
33-
GPIO2.$hardware = system.deviceData.board.components.LED_RED;
34-
35-
GPIO3.$name = "CONFIG_GPIO_1";
36-
GPIO3.$hardware = system.deviceData.board.components.LED_GREEN;
37-
38-
GPIO4.$name = "CONFIG_GPIO_2";
39-
GPIO4.$hardware = system.deviceData.board.components["BTN-1"];
40-
41-
GPIO5.$name = "CONFIG_GPIO_3";
42-
GPIO5.$hardware = system.deviceData.board.components["BTN-2"];
43-
44-
UART21.$name = "UART0";
45-
UART21.$hardware = system.deviceData.board.components.XDS110UART;
46-
4728
easylink.EasyLink_Phy_50kbps2gfsk = true;
4829
easylink.EasyLink_Phy_5kbpsSlLr = true;
4930
easylink.EasyLink_Phy_200kbps2gfsk = true;
@@ -60,10 +41,6 @@ easylink.radioConfigEasylinkPhy200kbps2gfsk.codeExportConfig.$name = "ti_devices
6041
*/
6142
ADC1.adc.$suggestSolution = "ADC0";
6243
ADC1.adc.adcPin.$suggestSolution = "boosterpack.2";
63-
GPIO2.gpioPin.$suggestSolution = "boosterpack.39";
64-
GPIO3.gpioPin.$suggestSolution = "boosterpack.40";
65-
GPIO4.gpioPin.$suggestSolution = "boosterpack.13";
66-
GPIO5.gpioPin.$suggestSolution = "boosterpack.12";
6744
UART21.uart.$suggestSolution = "UART0";
6845
UART21.uart.txPin.$suggestSolution = "boosterpack.4";
6946
UART21.uart.rxPin.$suggestSolution = "boosterpack.3";

targets/TI_SimpleLink/TI_CC1352R1_LAUNCHXL/TI_CC1352R1_LAUNCHXL_915.syscfg

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ const CCFG = scripting.addModule("/ti/devices/CCFG");
1212
const ADC = scripting.addModule("/ti/drivers/ADC", {}, false);
1313
const ADC1 = ADC.addInstance();
1414
const GPIO = scripting.addModule("/ti/drivers/GPIO", {}, false);
15-
const GPIO2 = GPIO.addInstance();
16-
const GPIO3 = GPIO.addInstance();
17-
const GPIO4 = GPIO.addInstance();
18-
const GPIO5 = GPIO.addInstance();
1915
const UART2 = scripting.addModule("/ti/drivers/UART2", {}, false);
2016
const UART21 = UART2.addInstance();
2117
const easylink = scripting.addModule("/ti/easylink/easylink");
@@ -29,20 +25,9 @@ CCFG.ccfgTemplate.$name = "ti_devices_CCFGTemplate0";
2925
ADC1.$name = "ADC_0";
3026
ADC1.samplingDuration = "170 us";
3127

32-
GPIO2.$name = "CONFIG_GPIO_0";
33-
GPIO2.$hardware = system.deviceData.board.components.LED_RED;
34-
35-
GPIO3.$name = "CONFIG_GPIO_1";
36-
GPIO3.$hardware = system.deviceData.board.components.LED_GREEN;
37-
38-
GPIO4.$name = "CONFIG_GPIO_2";
39-
GPIO4.$hardware = system.deviceData.board.components["BTN-1"];
40-
41-
GPIO5.$name = "CONFIG_GPIO_3";
42-
GPIO5.$hardware = system.deviceData.board.components["BTN-2"];
43-
44-
UART21.$name = "UART0";
45-
UART21.$hardware = system.deviceData.board.components.XDS110UART;
28+
UART21.$name = "UART0";
29+
UART21.$hardware = system.deviceData.board.components.XDS110UART;
30+
UART21.rxRingBufferSize = 256;
4631

4732
easylink.EasyLink_Phy_50kbps2gfsk = true;
4833
easylink.EasyLink_Phy_5kbpsSlLr = true;
@@ -64,10 +49,6 @@ easylink.radioConfigEasylinkPhy200kbps2gfsk.codeExportConfig.$name = "ti_devices
6449
*/
6550
ADC1.adc.$suggestSolution = "ADC0";
6651
ADC1.adc.adcPin.$suggestSolution = "boosterpack.2";
67-
GPIO2.gpioPin.$suggestSolution = "boosterpack.39";
68-
GPIO3.gpioPin.$suggestSolution = "boosterpack.40";
69-
GPIO4.gpioPin.$suggestSolution = "boosterpack.13";
70-
GPIO5.gpioPin.$suggestSolution = "boosterpack.12";
7152
UART21.uart.$suggestSolution = "UART0";
7253
UART21.uart.txPin.$suggestSolution = "boosterpack.4";
7354
UART21.uart.rxPin.$suggestSolution = "boosterpack.3";

0 commit comments

Comments
 (0)