??? 07/14/08 10:25 Read: times |
#156681 - Resources Responding to: ???'s previous message |
I now try and have one file with the microcontroller resource allocations in one file. This has lines in it like:
#define LCD_RW P3_5 #define LCD_RS P3_6 #define LCD_EN P3_7 #define STEPPER_PORT P2 This makes it easy to cross reference against the schematics. I avoid memory mapped variables if at all possible, because they just open up a pit of potential errors. They have all drawbacks of globals, and a few extra. |
Topic | Author | Date |
Initializing variables in header files... | 01/01/70 00:00 | |
Defintions only in source files | 01/01/70 00:00 | |
Coincidental Cohesion | 01/01/70 00:00 | |
and yet... | 01/01/70 00:00 | |
Quite possibly | 01/01/70 00:00 | |
Memory mapping | 01/01/70 00:00 | |
Now... | 01/01/70 00:00 | |
RE: just saved myself some extra typing | 01/01/70 00:00 | |
Resources | 01/01/70 00:00 | |
Another problem | 01/01/70 00:00 | |
Abort, End, Exit Procudure and Shutdown. | 01/01/70 00:00 | |
I guess I gave it significant consideration | 01/01/70 00:00 | |
RE: verbose, over conditionalized | 01/01/70 00:00 |