[email protected] schrieb:
Is there a indexable way to access the SFRs?like: value = PxIN(5); which should do the same like value = P5IN;
not unless you declare your own array.
volatile uint8_t *PxIN[6] = {&P1IN,&P2IN,&P3IN,&P4IN,&P5IN,&P6IN};
(untested)
also note that there are defines like P1IN_ that contain the address of
the SFR, in case you want to declare your own pointer.
chris
