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 03 May 2016 10:28 AM by  Adam Ford
Control_PadConf_X and BSP
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Sergey Brandis
New Member
New Member
Posts:79


--
28 Apr 2016 02:50 PM

     Hi ! 

     

    I have a problem . I find file platform.c C:\WINCE600\PLATFORM\LOGIC_ARM_A8\SRC\OAL\OALLIB  and i want change     

    OUTREG16(&pConfig->CONTROL_PADCONF_UART1_RTS,       (INPUT_DISABLE | PULL_UP       | MUX_MODE_4 ))

    I want tht gpio_149 value 1 . I have definition all bit in this register but i don't know how use different parametrs. 

    For example ,i want change value in OFFOUTENABLE  OFFOUTVALUE . I want this gpio work as output and value 1 . 

    Can I try write this : 

     OUTREG16(&pConfig->CONTROL_PADCONF_UART1_RTS,       (INPUT_DISABLE | PULL_UP       | MUX_MODE_4 |OFFOUT_ENABLE | OFFOUTVALUE)); 

    Please told me how to use bit OFFOUTENABLE  OFFOUTVALUE


    Thanx a lot , 

    Sergey

    Adam Ford
    Advanced Member
    Advanced Member
    Posts:794


    --
    03 May 2016 10:28 AM
    The OFFOUTENABLE and OFFOUTVALUES determine the levels when the processor is in certain sleep modes, so I don't think it's what you want.


    OUTREG16(&pConfig->CONTROL_PADCONF_UART1_RTS, (INPUT_DISABLE | PULL_UP | MUX_MODE_4 )) appears correct for people want the configure the pin as output with the pin pulled high internally of the processor.



    If you're trying to write output GPIO high, I would like to refer you to our GPIO App Note:

    http://support.logicpd.co...id=0&EntryId=698


    You'll need to be logged into the Support Site in order for the download to work properly. There is also a Win32 GPIO Sample Application referenced in this App note and available on our support site: http://support.logicpd.co...d=0&EntryId=1137


    The Sample App should give you an example function to use that sets the pins high or low.

    Hopefully that will help.

    adam


    You are not authorized to post a reply.