This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

About iPAQ H3870


Hi,
After tracing the Linux code for H3800,
I found the memory mapped I/O between the iPAQ H3800 and
iPAQ H6000 is different.
So I think some code in eCos won`t work on H3870.

For example,
the RS232_ON is different between them.

In linux,
#define H3800_ASIC1_GPIO_OUT    0x49001e68
#define GPIO1_RS232_ON          (1  << 2)

In eCos,
#define EGPIOBase               0x49000000
#define EGPIO_BITSY_RS232_ON    (1  << 7)

In InitUART3 macro in eCos,it initializes the UART3.
In the end of the macro,it turns on the RS232_ON by setting the EGPIOBase.
But in the linux,it sets the H3800_ASIC1_GPIO_OUT.

So I change the EGPIOBase to 0x49001e68 and
EGPIO_BITSY_RS232_ON to (1  << 7).
In the test on my H3870,the Serial Port can work.

Does anyone find the problem or do the porting?

Thanks.


-- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]