This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Atmel AT91 EB40A Serial channel 1.
- From: sensitron medical <sensitronnet at yahoo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Cc: joe at sensitron dot net
- Date: Wed, 19 Feb 2003 14:28:17 -0800 (PST)
- Subject: [ECOS] Atmel AT91 EB40A Serial channel 1.
I built ecos for serial channel 1 and there is no
output on channel 1 and the transmit LED does not
flash. The problem is the same as I found for the
clock. Ecos does not fully initialize all registers
like vxWorks when it starts. Serial channel 1 pins
are multiplexed with the parallel I/O pins and there
were no writes to register FFFF0004 (PIO Disable
Register). The following code fragment was placed at
the beginning of function at91_serial_config_port to
enable the serial clocks and serial output pins:
// Enable USART clock and disable PIO pins
if (base == AT91_USART0)
{
HAL_WRITE_UINT32(AT91_PS+AT91_PS_PCER,
AT91_PS_PCER_US0);
HAL_WRITE_UINT32(AT91_PIO+AT91_PIO_PDR,
0x0000C000);
}
else if (base == AT91_USART1)
{
HAL_WRITE_UINT32(AT91_PS+AT91_PS_PCER,
AT91_PS_PCER_US1);
HAL_WRITE_UINT32(AT91_PIO+AT91_PIO_PDR,
0x00600000);
}
else
{
return (false);
}
Joe Rodnite
joe at sensitron dot net
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss