Problems with function call

Started by Christian Dolzer December 3, 2001
Hi there,

I have some problem during a function call in C.

I have written a small program for the C5409 DMA controller.
I put all functions to configure the DMA controller in a seperate file.
In the main file i call these function, but there are some problems.

I have declared the function void DMA_SetConfig(unsigned int, DMA_Conf
* ); in the header file, and the function definition in the .c file.
If I call the function in the main program the function call is put TWICE on
the call stack, I don't know why.

I've also tried to define the function as "extern" but the function is also
put TWICE on the call stack.

Any ideas??

Thanks Christian