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.

TDA4VM: main_domain中的各个core都可以访问同一个GPIO,那如何避免冲突

Part Number: TDA4VM


我正在看vision_apps 中的例程,我注意到在 vision_apps\platform\j721e\rtos\common\app_init.c 文件的 appInit() 函数调用了 appSetPinmux(&pinmux_cfg)

该函数会根据 具体板子对引脚资源的分配在对应的core上配置对应的引脚。

我的疑问是如果我在这里把一个引脚分配给 mcu2_0做GPIO,在后期的代码维护中,我可能会忘记或是由后续的工程师来维护这套代码时(他可能并不了解这个引脚已经分配了),如果这时在 core A72 运行的linux 设备树中也配置了这个引脚。这势必会产生冲突,请问有什么办法可以应对?或是能检测到这样的冲突?