> > Still looking for suggestions, but since I got hung up on the SS_A vs > PSCOUT00, I'm also wondering if anybody is using some clever tools / > preprocessor / ??? to keep the pins/functions from clobbering each > other. I'd sure like to see one. It scares me a bit that those bit definitions are just equivalencies for 0-7. It's SO easy to get things wrong in a way that seems to work. And we have the fun of the PIN, PORT, and DDR registers for each port. I've caught myself a couple of times, setting up inits for all the ports and then only actually DOING the init on porta, because I copyed and pasted from the porta init and forgot to change the destinations. I'm not sure how it would be handled though. I usually end up with something like: sbi beeper_out_port, beeper_out_pin Which isn't bad, till you forget which port or pin that was, or you make an update to the code that isn't supported by the comments. When are we going to get the ability in one of these editors to insert hyperlinks, so I don't have to re-re-re copy definition comment blocks around, and then later go edit them all (I hope) when something changes? Jack Ganssle did an article on this sort of thing a while back. It's past 2001, where are the flying cars and software tools that actually make life EASIER? [Non-text portions of this message have been removed]
Message
Re: [AVR-Chat] Re: Use of the preprocesser to keep HW straight
2007-03-27 by David VanHorn
Attachments
- No local attachments were found for this message.