Other Parts Discussed in Thread: C2000WARE, SYSCONFIG, LAUNCHXL-F280049C
Hi,
I am trying to qualify a GPIO through sampling window (6-samples) by modifying epwm_ex3_synchronization. The folowing lines of code were added to the epwm_ex3_synchronization.c file to execute this:
void configureGPIOs(void) {
EALLOW;
// Set GPIO56 as input
GpioCtrlRegs.GPBDIR.bit.GPIO56 = 0;
// Clear GPIO55
GpioDataRegs.GPBCLEAR.bit.GPIO56 = 1;
// Set the qualification period for GPIO pins in QUALPRD3 to 0xD0
GpioCtrlRegs.GPBCTRL.bit.QUALPRD3 = 0xD0;
// Set the qualification selection for GPIO34 to 2 (example)
GpioCtrlRegs.GPBQSEL2.bit.GPIO56 = 2;
EDIS;
}
This resulted to the following errors which I ahve tried reolving to no avail:
>> Compilation failure
subdir_rules.mk:9: recipe for target 'epwm_ex3_synchronization.obj' failed
"../epwm_ex3_synchronization.c", line 231: error #20: identifier "GpioCtrlRegs" is undefined
"../epwm_ex3_synchronization.c", line 234: error #20: identifier "GpioDataRegs" is undefined
2 errors detected in the compilation of "../epwm_ex3_synchronization.c".
gmake: *** [epwm_ex3_synchronization.obj] Error 1
.
.
gmake: Target 'all' not remade because of errors.
I have attached the project file for your kind help.8015.epwm_ex3_synchronization.zip
Regards,







