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.
Hello,
I have the old Launchpad (Rev. 1.4) with MSP430G2231IN14 MCU and I'm trying Lab3 of the Launchpad Workshop (I know that my particular device is not used in this workshop).
IDE: CCS 6.1 with GCC Compiler
Current MSP430ware (include-paths added to IDE)
When I try to compile
#include <msp430.h> #include <driverlib.h> /* * main.c */ int main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN0 + GPIO_PIN6); return 0; }
I get an error:
>> Compilation failure "../main.c", line 10: error #20: identifier "GPIO_PORT_P1" is undefined "../main.c", line 10: error #20: identifier "GPIO_PIN0" is undefined "../main.c", line 10: error #20: identifier "GPIO_PIN6" is undefined
What's wrong with my code? Is there a header file missing?
Thank you very much!
Regards
**Attention** This is a public forum