Pradeepa 1 Posted April 23, 2013 Share Posted April 23, 2013 Is there any significatn advantage of using ROM_GPIOPinRead over GPIOPinRead? I want to read the status of a pin, GPIOPinRead(GPIO_PORTA_BASE,GPIO_PIN_5) I am hoping to use this method to read the status. What is the return value? Where can i find the documentation which contains aboout GPIOPinRead? Thank you. Quote Link to post Share on other sites
Lyon 3 Posted April 23, 2013 Share Posted April 23, 2013 Hi, There is an advantage: space (flash) saving - the ROM_ is contained in separate space, not in flash, so all flash can be dedicated to application. Tested and checked (although there are two or three functions which are bad implemented). The main documentation can be the StellarisWare\TivaWare - since these are based on the driverlib functions. Other documentation - check the CD which came with the board - it could be there (some .pdf) or download from TI. Worth the effort - you can find out some good application notes. MacLyon bluehash 1 Quote Link to post Share on other sites
igor 163 Posted April 23, 2013 Share Posted April 23, 2013 Or just use MAP_ versions - then you do not have to worry about which ones are implemented on the micro in question. (Macros automagically select ROM version if available, otherwise they use the regular.) Quote Link to post Share on other sites
Pradeepa 1 Posted April 24, 2013 Author Share Posted April 24, 2013 thank you people. found the doc http://www.ti.com/lit/ug/spmu298/spmu298.pdf Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.