This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请问CC1352R 的GPIO是如何通过sysconfig配置的?

Other Parts Discussed in Thread: SYSCONFIG

sysconfi配置文件内容如下。正常生成了ti_drivers_config.c。调用GPIO_write(CONFIG_PIN_1, 1) 都没效果。请问什么原因呢。

const GPIO = scripting.addModule("/ti/drivers/GPIO", {}, false);
const GPIO1 = GPIO.addInstance();
const GPIO2 = GPIO.addInstance();

/**
* Write custom configuration values to the imported modules.
*/
GPIO1.$name = "CONFIG_GPIO_0";
GPIO1.interruptTrigger = "Rising Edge";
GPIO1.callbackFunction = "P14CallbackFxn";
GPIO1.gpioPin.$assign = "DIO_14";
GPIO1.pinInstance.$name = "CONFIG_PIN_0";

GPIO2.$name = "CONFIG_GPIO_1";
GPIO2.mode = "Output";
GPIO2.gpioPin.$assign = "DIO_6";
GPIO2.pinInstance.$name = "CONFIG_PIN_1";

const CCFG = scripting.addModule("/ti/devices/CCFG", {}, false);
CCFG.ccfgTemplate.$name = "ti_devices_CCFGTemplate0";