Other Parts Discussed in Thread: TM4C1230H6PM, TM4C123GH6PM, EK-TM4C123GXL
Hi,
I wish to generate a PMW signal to control a motor using the LaunchPad. By modifiying Lab15 code of Ti Workshops I get following error:
Description Resource Path Location Type #20 identifier "GPIO_PD0_M1PWM0" is undefined main.c /PROVA_PWM line 41 C/C++ Problem
I have the header pin_map.h included in my code as well as PART_TM4C1230H6PM, TARGET_IS_BLIZZARD_RB1 and ccs="ccs" added in Project properties-->Build-->ARM Compiler-->Advanced options-->Predefined Symbols.
GPIO_PD0_M1PWM0 is used in following function:
GPIOPinConfigure(GPIO_PD0_M1PWM0);
When I replace last line with:
GPIOPinConfigure(0x00030005);
The code works fine. The PWM signal is generated and the motor is turning as a rocket... In pin_map.h, GPIO_PD0_M1PWM0 is defined as follows:
#define GPIO_PD0_M1PWM0 0x00030005
Any idea on why I can not read properly the header? Where I am mistaken? I have check several posts and all the solutionsposted there seem to do not work.
Thanks in advance
Joan S.