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]

Re: Question about system bus


At 17:31 18.6.2001 +0100, HuangQiang wrote:
>Hi all:
>...
>e.g.
>    reading from the ext IO
>
>	int k;
>	*EXTIOBANK0 = 1;
>	k = *EXTIOBANK0;
>	// now k is not the same as what I have written to ('1'). why ?

I don't know of EB7T exactly but in many processors, an I/O port defined as
an output is write-only. So you must maintain a static variable to hold the
last value written to the port. You said you're getting proper select
signals so I suppose your EXTIOBANK0 declaration is ok (otherwise the first
thing to check).

>
>Thank you
>
>huang

	Harri


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