F
fl
Hi,
I read the following code snippet. I am not clear about the usage of 'sampleInstInitConfig[][EDMA3_MAX_REGIONS]'.
When I replace the declaration with:
sampleInstInitConfig[NUM_EDMA3_INSTANCES][EDMA3_MAX_REGIONS], it generates compiling error.
In fact, EDMA3_MAX_REGIONS is defined external too.
Could you explain the rule about the external, two dimension array?
Thanks,
--------------------
main.c file:
extern EDMA3_DRV_InstanceInitConfig sampleInstInitConfig[][EDMA3_MAX_REGIONS];
int maio()
{
....
}
--------------------
Another .c file:
EDMA3_RM_InstanceInitConfig sampleInstInitConfig[NUM_EDMA3_INSTANCES][EDMA3_MAX_REGIONS] =
{
/* EDMA3 INSTANCE# 0 */
.....
I read the following code snippet. I am not clear about the usage of 'sampleInstInitConfig[][EDMA3_MAX_REGIONS]'.
When I replace the declaration with:
sampleInstInitConfig[NUM_EDMA3_INSTANCES][EDMA3_MAX_REGIONS], it generates compiling error.
In fact, EDMA3_MAX_REGIONS is defined external too.
Could you explain the rule about the external, two dimension array?
Thanks,
--------------------
main.c file:
extern EDMA3_DRV_InstanceInitConfig sampleInstInitConfig[][EDMA3_MAX_REGIONS];
int maio()
{
....
}
--------------------
Another .c file:
EDMA3_RM_InstanceInitConfig sampleInstInitConfig[NUM_EDMA3_INSTANCES][EDMA3_MAX_REGIONS] =
{
/* EDMA3 INSTANCE# 0 */
.....