This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Serial Speed with i386 PC target


> -----Original Message-----
> From: Jonathan Larmour [mailto:jlarmour@redhat.co.uk]
> Subject: Re: [ECOS] Serial Speed with i386 PC target
> 
> Not for the PC target. Instead you need to edit
> hal/i386/pc/VERSION/src/hal_diag.c. Look for BAUD_LOW.

I edited this file, i even verified in the debugger that the compiled stub
passed the correct BAUD_LOW in hal_diag_init

But still when booting off this stub I can't connect to 115200 but I can to
38400 

It's weird...

Does the stub use this function ?? 

...
[A check later]

Well in fact i just found code in plf_stub.c that says:

// 38400, COM1
#define CYG_DEVICE_SERIAL_RS232_BAUD_MSB    0
#define CYG_DEVICE_SERIAL_RS232_BAUD_LSB    3

And there is a function:
void hal_pc_init_serial(void) 

I don't understand well what are the purpose of this function when there is
already hal_diag_init() ..??

Thanks

A+
-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]