hi all,
i am trying to develop my own battery drivers,my step
step 1: copy \WINCE500\PUBLIC\COMMON\OAK\DRIVERS\BATTDRVR to
\WINCE500\PLATFORM\InjoyPDA\SRC\DRIVERS\BATTDRVR,modify the sbattif.c to
satisfy my platform(which get battery status through i2s)
step 2: add battdrvr to dirs and modify sources.
sources set:
TARGETNAME=battdrvr
TARGETTYPE=DYNLINK
DEFFILE=$(TARGETDEFNAME).def
DLLENTRY=DllMain
PREPROCESSDEFFILE=1
RELEASETYPE=PLATFORM£¨i think battery drives is a core os service ,i want to
set OAK,but report error£©
INCLUDES= \
$(INCLUDES); \
$(_PUBLICROOT)\common\oak\csp\arm\intel\pxa27x\inc; \
$(_PUBLICROOT)\common\oak\csp\arm\intel\pxa27x\xllp\inc; \
$(_PUBLICROOT)\common\sdk\inc;$(_PUBLICROOT)\common\oak\inc; \
TARGETLIBS= \
$(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib
SOURCELIBS= \
$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\pxa27x_xllp.lib \
$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib
SOURCES = \
battdrvr.c \
battapi.c \
battzones.c \
sbattif.c \
DS2782.c (note:my battery monitor chip driver)
step3:
change my bsp and add battery driver to it.then i add my own driver to
replace the drivers of microsoft
then i build ,it complete,but i cannot find battdrvr.dll in the image. i
think for granted i must set SYSGEN_BATTERY,
but now build failed,what is the matter? and then how can i do? thanks!!!