none
Invoke GPIO through DDK RRS feed

  • Question

  • The Freescale iMX25 WinCE6 BSP does not have any GPIO stream interface driver but instead there is access to GPIO through the DDK. Is it safe to invoke these GPIO functions in the CSPDDK.DLL from a user mode application or is it only for kernel mode device drives?

    Thanks,
    Hans

    Thursday, October 14, 2010 7:41 AM

Answers

  • You can not access these functions from a user mode dll. The GPIO driver
    is one of the major things that is missing from the Freescale i.MX25
    BSP, but we made one for our Topaz board. Our GPIO driver automatically
    sets all the different pads to whatever you like so you don't have to go
    through pages and pages of datasheet to understand what pads to set for
    that particular GPIO (up to 4 pads per GPIO!). Contact me offline
    (through guruce.com/contact) if you want the driver.
     

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.
    Thursday, October 14, 2010 9:05 AM
    Moderator

All replies

  • You can not access these functions from a user mode dll. The GPIO driver
    is one of the major things that is missing from the Freescale i.MX25
    BSP, but we made one for our Topaz board. Our GPIO driver automatically
    sets all the different pads to whatever you like so you don't have to go
    through pages and pages of datasheet to understand what pads to set for
    that particular GPIO (up to 4 pads per GPIO!). Contact me offline
    (through guruce.com/contact) if you want the driver.
     

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.
    Thursday, October 14, 2010 9:05 AM
    Moderator
  • Hope this blog will be useful to you.

    http://geekswithblogs.net/BruceEitman/archive/2010/08/01/windows-ce-writing-an-application-to-test-gpio-pins.aspx


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Thursday, October 14, 2010 10:12 AM
  • Thanks for the input. So the answer is that it was possible in WinCE 5 and before to access it directly from the application but not with the new user/kernel mode security model in WinCE 6.

    Thanks,
    Hans

    Thursday, October 14, 2010 10:36 AM