This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Problem with serial setup
- From: "Daniel Lidsten" <Daniel dot Lidsten at combitechsystems dot com>
- To: "ecos-discuss" <ecos-discuss at sources dot redhat dot com>
- Date: Sun, 27 Apr 2003 14:14:47 +0200
- Subject: [ECOS] Problem with serial setup
Hi,
I am trying to use the same serial port for both printf and diag_printf
but there seem to be some problem. Is there someone that use the same
port for both an interrupt driven serial driver and a diag version at
the same time?
I have setup my config file like this:
Section->Serial Device Drivers/TTY-mode serial device drivers:
HAL/diag serial device driver: /dev/ser1
TTY mode channel #0: /dev/ser1
TTY mode channel #1: /dev/ser2
Section->Serial Device Drivers/Hardware serial device drivers
Here i have enabled two serial driver with the names /dev/ser1 and
/dev/ser2
However, when i run this then i get the following printout:
Init device '/dev/tty0'
Init tty channel: 89428
Init device '/dev/tty1'
Init tty channel: 89448
Init device '/dev/haldiag'
HAL/diag SERIAL init
Init device '/dev/ser1'
QUICC_SMC SERIAL init - dev: 90.54 el:0el:0el:0el:0el:0el:0eQUICC_SMC
SERIAL ini
t - dev: d0.55
Set output buffer - buf: 8ab20 len: 256
Set input buffer - buf: 8ac20 len: 256
[cyg_hal_interrupt_set_level] Vector:55
[cyg_hal_interrupt_set_level]
Level:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:
0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:0el:
0el:0el:
0el:0el:0el:0el:0el:
After i have setup the two interrupt driven serial ports then the diag
channel doesnt work anymore.
My question is: Is it possible to setup diag to use an interrupt driver
serial port (so that diag_ and printf use the same driver)OR shall i use
two drivers on the same serial port?
Regards, Daniel Lidsten
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss