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.

stellarisware and mcu documentation

Hi I'm trying to familiarize arm and cortex m4f using stellaris launchpad. There are some examples but i can't see documentation about stellarisware that explains functions like

GPIOPinTypeGPIOOutput(). Where are these? Also are there any alternatives to using stellarisware like direct registry modifying like PORTG = 0x0F...? Thanks.

  • Hello Mustafa,

    For finding the definition of a function you find in code, you can do a search for it in the project.  Depending on the IDE you are using, you can in some cases right-click on the function and there will be a "go to definition of...". The other option is to go to Edit and Search then Find in project files.

    Once you find the function or define statement, you can then reference back to the User Manual and look up the registers that are being used.  There is a brief description of the register and how it works for each section in the LM4F120XL User Guide.

    Yes, you can change the register using any defined method that your compiler supports, including specifying the address directly.  Although direct addressing doesn't provide any benefit because all addresses are already defined for you, but you get the idea.  There are really no bounds.  However, for ease of decoding by you and others, it is best to follow the examples on how registers are modified.

    Thanks,

  • Hello Mustafa Gulec,

    As a part of the StellarisWare installation, you should find a "Stellaris Peripheral Driver Library User's Guide" in the ./doc directory of the installation. The file name for this document will be "SW-DRL-UG-<SW version>.pdf". This is API documentation and provides information on programming models in "Chapter 2: Programming Model". Direct register writes with friendly names are one of the documented models.