TI E2E Community
Stellaris® ARM® Microcontrollers
Stellaris® ARM® LM3S Microcontrollers Forum
Sorts of pin configuration functions
I've a short question. What is the proper difference between GPIOPinConfigure() and GPIOPinTypeI2S()? To me it seems they do just the same. Is that right or am I missing something?
To get the best possible answer you should review the code for each function - it's found w/in file gpio.c w/in the Driver Library. Believe this will prove more valuable to you than a direct answer - enabling you to expand your understanding via this general method. Your question is a bit more involved - and may depend upon the "class" of Stellaris MCU that you've chosen. Certain functions are only appropriate for the more powerful - and newer MCUs. The Stellaris "class" issue appears to be, "work in progress..."
It does two different things.
GPIOPinConfigure() configures the pin mux that selects the peripheral function associated with a particular GPIO pin.
GPIOPinTypeI2S() makes it for a particular peripheral, for example, I2S in this case.
Please note that some pins can be used as several different peripherals.
Thank you both for your reply. I guess, I've a clue now what's the purpose of those functions.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.