请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:MCU-PLUS-SDK 主题中讨论的其他器件:SysConfig
你(们)好!
我有一个由我们的硬件开发人员提供的 SysConfig 文件。 不过、我无法在 CCS 工程中直接集成该文件、因为这些工程的格式似乎不同。
在"hardware"-sysconfig 文件中、我看到如下内容:
const powerDomains = scripting.addModule("/ti/corePinmux/powerDomains");
powerDomains["VDDSHV1 (PRG1)"] = "3.3V";
powerDomains["VDDSHV2 (PRG2)"] = "3.3V";
powerDomains["VDDSHV3 (GPMC)"] = "3.3V";
powerDomains["VDDSHV5 (MMC1)"] = "3.3V";
powerDomains["VDDSHV0 (General)"] = "3.3V";
来说明如何和在何处使用 PIN
iGPIO2["17"].$used = true; iGPIO2["18"].rx = false; iGPIO2["19"].rx = false; iGPIO2["20"].rx = false; iGPIO2["21"].rx = false; iGPIO2["22"].rx = false; iGPIO2["23"].rx = false; iGPIO2["24"].$assign = "GPMC0_AD9"; iGPIO2["24"].$used = true; iGPIO2["25"].rx = false; iGPIO2["26"].rx = false; iGPIO2["27"].rx = false; iGPIO2["28"].rx = false;
我的 CCS SysConfig 文件中没有此类说明。 我会有一些更"抽象"的东西,像这样:
const debug_log = scripting.addModule("/kernel/dpl/debug_log");
const mpu_armv7 = scripting.addModule("/kernel/dpl/mpu_armv7", {}, false);
const mpu_armv71 = mpu_armv7.addInstance();
const mpu_armv72 = mpu_armv7.addInstance();
const mpu_armv73 = mpu_armv7.addInstance();
const mpu_armv74 = mpu_armv7.addInstance();
const mpu_armv75 = mpu_armv7.addInstance();
const mpu_armv76 = mpu_armv7.addInstance();
/**
* Write custom configuration values to the imported modules.
*/
debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART_CONSOLE";
debug_log.uartLog.UART.$assign = "USART0";
也许这是一个琐碎的问题、但我目前不知道如何将定制板的"hardware"-sysconfig 文件与 CCS 项目的 SysConfig 文件格式相同。 你能给我一些提示吗?
提前感谢