Part Number: TM4C123GH6PM
Hello,
I have this thing were my code works perfectly well when it's all in the same file, but fails terribly when I try to divide it into different .c files. The functions are used to enable ADC w/ uDMA, which should trigger an interrupt every 256 samples. It triggers it about every 10th sample when I use multiple files. Without further ado, here is the header file I include both in main.c and in <header name>.c file
extern int16_t ADC_OUT_0[ADC_SAMPLE_BUF_SIZE]; extern int16_t ADC_OUT_1[ADC_SAMPLE_BUF_SIZE]; extern uint32_t n; extern uint32_t g_ui32DMAErrCount; extern uint32_t g_ui32SysTickCount; extern volatile uint32_t start, stop; void UDMAERR_Handler(void); void SysTick_Handler(void); void ADC0SS0_Handler(void); void init_ADC(void); void init_peripherals(void);
What am I doing wrong in these declarations? (I am sorry if this is only a C programming question)