thank u very much for the information.

I have written the Sdrvread function using the serial manager api.Srmreceive for 
fetching the data and Srmreceivecheck and wait for checking for the data. now in 
"companion reference" they have mentioned that SrmReceiveWait waits for data to come 
in serial manager receive queue.I am writing serial driver for keyboard and not the 
virtual driver which i suppose seats at the lowest level.Another point is that the 
Sdrvreadchar function is called in the interrupt service routine.

so my question is whether serial manager uses the driver to fetch the data or driver 
uses serial manager to get the data?

I am using prc tools for compiling the driver as it is available for free.Do u know 
how to set the parameter'sdrv' in this case?

About the global variables.I am using IRQ6.so global variable available in globals.h 
is GIrq6GlobalsP. now this is pointer to low memory hardware structure. as per 
programmer's companion i am supposed to store 2 variables void *portP and 
SerialMgrISPProcPtr saveDataProc.
I searched the globals.h header file in which low memory hardware structure is 
defined. This
structure contains a large number of prameters except these two.

So i don't know how to store the variables in this structure.
 
I didn't find any information about accessing registers

asm Boolean SdrvISP(UInt32 param: __A0):__D0 

so above declaration doesn't make any sense.Could u put some light on it or
suggest some source of information.

Do you know how to write SdrvControl function?How to set baudrate,data bits and parity?
is it done with some apis or in assembly?

Eventhough this is very long questionaire,but please...please...please don't
hesitate to answer.I am looking for this info desparately and after so many 
days,ur mail has shown me a little light of hope.
I'll be highly obliged if you can provide me with some or all of the info.

bye. 



On Fri, 01 Feb 2002 praveengeorgeus wrote :
> hi,
> Global variables  we will discuss later.To set the type 
> to 'sdrv'
> use the CodeWarrior ->Edit->Your Project 
> settings->68kRezLinker
> Fill the type field with 'sdrv'.In the read function u 
> can easily use 
> the serial manager function if u have not replced the 
> Original serial 
> interrupt vector.Palm OS recomments global variable 
> should be 
> accessed by storing it's pointer in system global 
> variables 
> like.gGlobalIRQ3SP...I'm looking whether we can access  
> globals using 
> some assembly like LEA..If this proves successful i'll 
> tell u the 
> results
> 
> Regards
> Praveen.
> 
> 
> 
> 
> 
> --- In [EMAIL PROTECTED], "prathit" <[EMAIL PROTECTED]> 
> wrote:
> > 
> > 
> > how to access global variables in the device driver.?
> > where do we set it's type to 'sdrv'. is it during 
> compilation or 
> somewhere else.?
> > in the read function of device driver , do we need to 
> use assembly 
> routines for communication or we can use serial manager 
> api.? 
> > 
> > 
> > --
> > For information on using the Palm Developer Forums, 
> or to 
> unsubscribe, please see http://www.palmos.com/dev/tech/s-
> upport/forums/
> 

 


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to