This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: serial line ISR problem -- again:(
On Wed, Sep 10, 2003 at 12:30:20PM +0100, Chris Garry wrote:
> What is the value of the UART's 'Interrupt Enable' register?
with this code I get:
ier = 0x00
ier = 0x08
so this is correct.
/* check InterruptEnableRegister value */
HAL_READ_UINT8 (COM_ADDR + 1, ier);
printf ("ier = 0x%02x\n", ier);
/* make UART interrupt only on DCD transition */
HAL_WRITE_UINT8 (COM_ADDR + 1, (ier & 0xf0) | 0x08);
/* check InterruptEnableRegister value */
HAL_READ_UINT8 (COM_ADDR + 1, ier);
printf ("ier = 0x%02x\n", ier);
--
Piotr Trojanek
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss