This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: HAL register write problem
- To: jeremy <chienyul at home dot com>
- Subject: Re: [ECOS] HAL register write problem
- From: Grant Edwards <grante at visi dot com>
- Date: Fri, 19 Jan 2001 10:37:30 -0600
- Cc: ecos-discuss at sourceware dot cygnus dot com
- References: <000e01c08183$65c3bf00$7c6509c0@viatech.com>
On Thu, Jan 18, 2001 at 11:17:55AM -0800, jeremy wrote:
> #define CYG_DEVICE_SERIAL_RS232_UART_UBRDIV \
> ((volatile cyg_uint16 *) CYG_DEVICE_SERIAL_RS232_UART_BASE + 0x14)
Are you sure that you want
((volatile cyg_uint16 *)XXX + 0x14)
and not
((volatile cyg_uint16 *)(XXX+0x14))
I've been bitten by that one...
--
Grant Edwards
grante@visi.com