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.

Pin Mux Utility工具生成的mux.h和pinmux.h能否在startware中使用

Other Parts Discussed in Thread: AM3354

开发板为am3354,

如题,Pin Mux Utility工具生成的mux.h和pinmux.h能否在startware中使用?按照这里的说明

http://processors.wiki.ti.com/index.php/Pin_Mux_Utility_for_ARM_MPU_Processors

是否只可用于linux中。

另外,startware如何进行pinmux配置:??谢谢。

  • 一般是不能直接用的,可以参考这个修改Pinmux的配置文件。

    starterware的demo程序就有pinmux的配置。

  • 您好,是demo中的这一段吗?

    /*
    ** Enable all the peripherals in use
    */
    static void PeripheralsSetUp(void)
    {
        enableModuleClock(CLK_UART0);
    	enableModuleClock(CLK_LCDC);
    	enableModuleClock(CLK_TIMER2);
    	enableModuleClock(CLK_TIMER3);
    	enableModuleClock(CLK_TIMER4);
        /* Timer6 is used for Standby wakeup */
    	enableModuleClock(CLK_TIMER6);
    	//enableModuleClock(CLK_TIMER7);
        enableModuleClock(CLK_I2C0);	
    	enableModuleClock(CLK_I2C1);
    	enableModuleClock(CLK_MCASP1);
    	//enableModuleClock(CLK_GPIO1);
    	//enableModuleClock(CLK_GPIO0);
    	enableModuleClock(CLK_ADC_TSC);
    	enableModuleClock(CLK_TPTC2);
    	enableModuleClock(CLK_TPTC1);
    	enableModuleClock(CLK_TPTC0);
    	enableModuleClock(CLK_TPCC);
    	
    	GPIO1ModuleClkConfig();
    	GPIO0ModuleClkConfig();
    	
        EDMAModuleClkConfig();	
    
        RTCModuleClkConfig();
        CPSWClkEnable();	
    
        LCDPinMuxSetup();
        CPSWPinMuxSetup();
    	I2CPinMuxSetup(0);
        I2CPinMuxSetup(1);
        McASP1PinMuxSetup();
        TSCADCPinMuxSetUp();
        ECAPPinMuxSetup(0);
        GPIO1Pin23PinMuxSetup();	
    	
    	GPIO0Pin2PinMuxSetup();	// clock disable/ enable during sleep/wake to be taken care
    	GPIO1Pin2PinMuxSetup();	// clock disable/ enable during sleep/wake to be taken care
    }
  • 是的,就是在这种pinmux的set中,需要特别注意的是,有些模块的pinmux是可以有很多的选择的,你需要根据自己的实际设计来进行板子的pinmux配置。