This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Serial interrupts on the AEB
- From: "Gareth ." <the_african at hotmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 12 Dec 2002 22:58:52 +0000
- Subject: [ECOS] Serial interrupts on the AEB
- Bcc:
Hi,
I'm having some trouble getting the serial port to set off an interrupt on
the ARM evaluator board. I have successfuly got the interrupt button on the
board to set off an interrupt and have appled the same stratergy to the
serial port. To get the button to interrupt I used :
cyg_interrupt_creat(CYGNUM_HAL_INTERRUPT_EXT0, 0, 0, &button_isr,
&button_dsr, &button_isr_handle, &intr);
cyg_interrupt_attatch(button_isr_handle);
cyg_interrupt_enable();
Now every time the button is pressed the function button_isr is called.
To get the serial interrupt working I did :
cyg_interrupt_creat(CYGNUM_HAL_INTERRUPT_UART0, 0, 0, &serial_isr,
&serial_dsr, &serial_isr_handle, &intr);
cyg_interrupt_attatch(serial_isr_handle);
But now nothing happens when data is sent to the serial port. I am thinking
global interrupts must be enabled or else the interrupt button would not
work. Is it possible interrupts on the uart are not enabled? I do not think
this is the case because I can get data from the serial line using scanf so
the port must be configured properly.
Can anyone offer any advice?
Sincerely,
Gareth
-----------------------------------------------
http://www-student.lboro.ac.uk/~elgcb1/
.
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss