Good to see this topic I thought I would add my 2cnts.
Start with the hardware layer use my (your) standard names: LABX1_20
Add chip layer ie DS1302, DS1620, one-wire: CLOCK1302
Add util layer ie save_word_to_eeprom, get_last_temp_change: UTIL
I also save these files in a include dir, so many projects can have access.
Include "..\include\LABx1_20.inc"
Since variables that need to be shared are shandard and internal variables are hidden like "__temp" then the actual project code is faster to code
I am trying to make object programming without the objects.
As you can see from my examples I break my own rules just to get the job done in time.
Regards
Tim
Bookmarks