I think a tool (or a script, TBD) able to read .sch file and generate .c/.h file with #define will spare a lot of time.
I mean something able to outputs something like (in case of a PIC):
#define PORTAbits.RA3 LED
If UC pin will have an option "input / output / open drain / pull-up enabled / analog", the generator will also be able to generate mask for ports direction regs:
#define TRISA_MASK 0x1234
The shematic errors checker will be able to generate new type of errors :
- "UC1.RA4 and UC2.RB6 connected together and defined as output"
- "UC1.RB14 defined as input and unconnected. Don't leave unused inputs unconnected"
A such powerful tool could spare a lot of time and avoid a lot of errors!