TI E2E Community
The function NANDInfoInit shows up in two files:
So do the following functions:
Name space issue?
Thanks and regards,
Is is not a building/linking problem. It just seems to me you should not have the exact same function residing in multiple files. Seems like a maintenance problem. If you find a bug or want to modify, then it needs to get fixed in two places.
Thanks for the suggestion. In StarterWare we build DAL, platform and System config as libraries, so that it can be linked to the final application. Any other logic other than these libs are part of application. So there are cases where the code is duplicated.
We will relook at this to have a common code..
Note: If this post answers your question, please click the Verify Answer button below. Thank you!
NandInfo_t is the structure which contains members like waitpin, chipselect, opmode, timing params, controller specific function pointers for the read ,write and ecc functionality .
An application which uses NANDLIB need to initialize this structure. Applications may have different values for members of NANDInfo_t. Fortunately our bootloader and example application uses same values. That is the reason we have similar functions in bootloader and example application. If we need to configure bootloader for different set of parameters, we can modify the bootloader NANDInfoInit function.
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.