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.

OMAPL138 GPIO



which libraries are used to link the following symbols: 

GPIOBank6Pin12PinMuxSetup   

  • 这个函数在OMAPL138_StarterWare_1_10_03_03\platform\lcdkOMAPL138\gpio.c中有定义.

    void GPIOBank6Pin12PinMuxSetup(void)
    {
         unsigned int savePinmux = 0;
        
         /*
         ** Clearing the bit in context and retaining the other bit values
         ** in PINMUX13 register.
         */
         savePinmux = (HWREG(SOC_SYSCFG_0_REGS + SYSCFG0_PINMUX(13)) &
                      ~(SYSCFG_PINMUX13_PINMUX13_15_12));

         /* Setting the pins corresponding to GP6[12] in PINMUX13 register.*/
         HWREG(SOC_SYSCFG_0_REGS + SYSCFG0_PINMUX(13)) =
              (PINMUX13_GPIO6_12_ENABLE | savePinmux);

    }

  • Thanks!Shine Zhang