Go to previous topic
Go to next topic
Last Post 11 Mar 2008 11:56 AM by  Badguy
Pull voltage low
 1 Replies
Author Messages
Badguy
New Member
New Member
Posts:


--
19 Feb 2008 10:37 AM
    Noob question here,
    I have not played at this level before.

    what code do I use in the linux bsp to 'assert low' the voltage to a given GPIO pin?

    say for example I wanted to pull down CSI_D12
    what code would I use?
    Badguy
    New Member
    New Member
    Posts:


    --
    11 Mar 2008 11:56 AM
    here is the code I used:

    mxc_request_iomux(MX31_PIN_CSI_D12, OUTPUTCONFIG_GPIO, INPUTCONFIG_GPIO);
    mxc_iomux_set_pad(MX31_PIN_CSI_D12,
    (PAD_CTL_PKE_NONE | PAD_CTL_SRE_SLOW));
    mxc_set_gpio_direction(MX31_PIN_CSI_D12, 0);
    mxc_set_gpio_dataout(MX31_PIN_CSI_D12, 0);


    the important stuff was setting the direction, then the dataout.


    ---