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!!!

Re: how to develop battery drivers in BSP by Keaven

Keaven
Thu Sep 28 09:54:02 CDT 2006

You may check your platform.bib if you have the line :
battdrvr.dll $(_FLATRELEASEDIR)\battdrvr.dll NK SH
in it or it is not bypass by a conditionnal include.

Regards,

"Mr.f" <edgar.ma@injoytech.com> wrote in message
news:uVDjXzu4GHA.1252@TK2MSFTNGP04.phx.gbl...
> 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!!!
>
>
>