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.

pin_map.h file for LM4F120

I am currently working with LM4F120 controller and I am having an issue with the main program, when the program reaches the following line of code

 

GPIOPinConfigure(GPIO_PA0_U0RX);

I get a warning saying that "GPIO_PA0_UORX" is undefined. I have downloaded Stellarisware and have included  "driverlib/gpio.h" file which includes inside "pin_map.h" file, in main. However after taking a look the "pin_map.h" it does not list code for part LM4F120, where can I get the pin_map.h information for LM4F120?

Thank you

 

  • Edith Rodriguez said:
    pin_map.h" it does not list code for part LM4F120

    If that statement is true - suspect that you have older version of StellarisWare - created prior to introduction of famed LX4F120.

    Be aware that "modern" pin_map.h file is huge - and accommodates most/all of vendor's MCUs.

    You don't list your IDE - often the IDE must be "told" your MCU identity.  Two suggestions here should get you, "On the Air."

    Update: Here's content of our pin_map.h  Rev 9453... 

    And - upon closer look "GPIO_PA0_UORX" - appears you've transposed capital "O" for "zero" "0" (you are not the first...)

    // LM4F120H5QR Port/Pin Mapping Definitions
    //
    //*****************************************************************************
    #ifdef PART_LM4F120H5QR

    #define GPIO_PA0_U0RX           0x00000001   // only "O" here is w/in GPIO - all else - this line is zero!