This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: SMC2 serial driver....problems!?!
- To: Daniel Lind <daniel dot lind at sth dot frontec dot se>
- Subject: Re: [ECOS] SMC2 serial driver....problems!?!
- From: Jesper Skov <jskov at redhat dot com>
- Date: Tue, 24 Oct 2000 13:13:24 +0200 (CEST)
- Cc: ecos-discuss at sourceware dot cygnus dot com
- References: <39F41BA4.3EE6650B@bluelabs.se><oty9zecyyb.fsf@thinktwice.zoftcorp.dk><39F56D63.736EEF4A@bluelabs.se>
For the benefit of the rest of the list:
Daniel> Hi,
Daniel> I solved the problems yesterday and I had to add just one
Daniel> little thing in the ISR for the device driver. So my ISR in
Daniel> quicc_smc_serial.c looks like this....
Ah, glad to hear that.
Daniel> // Serial I/O - low level interrupt handler (ISR)
Daniel> static cyg_uint32
Daniel> quicc_smc_serial_ISR(cyg_vector_t vector, cyg_addrword_t data)
Daniel> {
Daniel> serial_channel *chan = (serial_channel *)data;
Daniel> quicc_smc_serial_info *smc_chan = (quicc_smc_serial_info
Daniel> *)chan->dev_priv;
Daniel> cyg_drv_interrupt_mask(smc_chan->int_num);
Daniel> return (CYG_ISR_HANDLED|CYG_ISR_CALL_DSR); // Cause DSR to be run
Daniel> }
Daniel> I had to add CYG_ISR_HANDLED.
Jesper