This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SPEED_PR_MACRO usage error

Hello,

I want to use SPEED_PR_MACRO(speed1) macro in my motor speed control project. After adding this macro compiler gives an error such that unresolved symbols remain and error encountered during linking. When line 325 in TriggeredADC-Main.c  is commented that is SPEED_PR_MACRO is removed error is corrected. What can be the reason?

At the beginning of the .c file that I invoke SPEED_PR_MACRO  respective header files which are given below included.

#include "PeripheralHeaderIncludes.h"
#include "DSP2802x_EPwm_defines.h"         // useful defines for initialization
#include "IQmathLib.h"
#include <math.h>
#include "PID_REG3.h"
#include "speed_pr.h"
#include "DSP2802X_Gpio.h"

Module usage is also shown below.

SPEED_MEAS_CAP speed1, speed2;

To Instance pre-initialized objects
SPEED_MEAS_CAP speed1 = SPEED_MEAS_CAP_DEFAULTS;
SPEED_MEAS_CAP speed2 = SPEED_MEAS_CAP_DEFAULTS;

Invoking the computation macro
SPEED_PR_MACRO(speed1);
SPEED_PR_MACRO(speed2);

I also attach project file (triggeredADC) to help solving problem.

7183.ADC - TriggeredADC.rar

Best Regards,

Rasit GOKALAN