[ECOS] HAL register write problem

Grant Edwards grante@visi.com
Fri Jan 19 08:33:00 GMT 2001

On Thu, Jan 18, 2001 at 11:17:55AM -0800, jeremy wrote:

>     ((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

More information about the Ecos-discuss mailing list