You may try using the DDK lib ; corresponding Chapter [Chip Support Package Driver Development Kit (CSPDDK)] of
i.MX53 WinCE BSP Reference Manual provides information about the DDK_GPIO. The problem is, that DDK requests are not
intended to be called in user space, therefore it is needed to create special driver as some kind of "wrapper" for
user applications. Alas, we have no such example, it may be recommended to apply WinCE help support regarding WinCE
driver architecture.
Another approach : Please try to build CSPDDK the lib for both modes : user and kernel.
For this, in files platform.bib
(..\platform\<platform>...\FILES\platform.bib,
..\platform\<platform>...\cesysgen\FILES\platform.bib),
please set option Q instead of K :
;------------------------------------------------------------------------------
; CSPDDK Driver
;
IF BSP_NOCSPDDK !
cspddk.dll $(_FLATRELEASEDIR)\cspddk.dll NK SHQ
ENDIF BSP_NOCSPDDK !
; -----------------------------------------------------------------------------
After system re-building, in image directory (debug or release) both modules
will be presented : cspddk.dll - for user space and k.cspddk.dll - for kernel space.
So, functions in cspddk.dll may be used in user space.
(Strictly speaking, this is not fully safe solution, so be careful.)