I have looked around and don't see any information on configuring cscope and ctags to develop for AVRs. I'm a bit of a newbie when it comes to both cscope and ctags, but find they help me understand code better than simply editing files with a text editor. I am looking for some guidance in determining what files to include in cscope.files. Specifically, how can I determine what headers I need from the avr directory for my micro controller. I have a atmega168, so I have included avr/iom168.h and avr/iomx8.h as well as the files that are clearly generic (eg. avr/common.h). To accomplish this I run find /usr/lib/avr/include -name '*.h' > cscope.files, then remove all the avr/ioXXX.h that aren't iomx8.h and iom168.h by hand. I then build the cscope database as if I were building a kernel cscope -b -q -k, so I don't get /usr/include files. Then I build the ctags database with ctags -L cscope.files. I believe I have all the necessary headers and am not missing any, but was looking for an automated way to determine whether or not this is the case. Is there an easier method to accomplish my goal?
Thanks in advance,