* [ECOS] hal_diag files
@ 2002-05-31 5:56 Tristan CORCELLE
2002-05-31 20:30 ` Gary Thomas
0 siblings, 1 reply; 2+ messages in thread
From: Tristan CORCELLE @ 2002-05-31 5:56 UTC (permalink / raw)
To: ecos-discuss
Hi all,
In the most of files "hal_diag.c", there is:
typedef struct {
cyg_uint8* base;
cyg_int32 msec_timeout;
int isr_vector;
} channel_data_t;
Can anybody tell me where "base" is defined ?
Thanks in advance
Tristan
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] hal_diag files
2002-05-31 5:56 [ECOS] hal_diag files Tristan CORCELLE
@ 2002-05-31 20:30 ` Gary Thomas
0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2002-05-31 20:30 UTC (permalink / raw)
To: Tristan CORCELLE; +Cc: eCos Discussion
On Fri, 2002-05-31 at 07:03, Tristan CORCELLE wrote:
> Hi all,
>
> In the most of files "hal_diag.c", there is:
>
> typedef struct {
> cyg_uint8* base;
> cyg_int32 msec_timeout;
> int isr_vector;
> } channel_data_t;
>
> Can anybody tell me where "base" is defined ?
>
There is typically a static table in the driver file which initializes
this structure. For example, in the SA11x0 driver:
static channel_data_t ser_channels[] = {
#if CYGHWR_HAL_ARM_SA11X0_UART1 != 0
{ (volatile struct sa11x0_serial*)SA11X0_UART1_BASE, 1000,
CYGNUM_HAL_INTERRUPT_UART1, CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD },
#endif
#if CYGHWR_HAL_ARM_SA11X0_UART3 != 0
{ (volatile struct sa11x0_serial*)SA11X0_UART3_BASE, 1000,
CYGNUM_HAL_INTERRUPT_UART3, CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD },
#endif
};
In this case, "base" is SA11X0_UART1_BASE which is defined in one of the
platform HAL include files.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-01 3:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-31 5:56 [ECOS] hal_diag files Tristan CORCELLE
2002-05-31 20:30 ` Gary Thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).