Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11 Mar 2008 11:56 AM by  Badguy
Pull voltage low
 1 Replies
Sort:
You are not authorized to post a reply.
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.
    You are not authorized to post a reply.