I need an array of pointers to SFRs in a 16 series chip. The only way I've found so far that doesn't give me warnings is,
Is there a simpler way to achieve the same thing?
I know there are other ways to code this but eventually it'll have to be an array of pointers.
Thanks,
Mike.
Code:
uint8_t * ports[8]={(uint8_t *)&LATB,(uint8_t *)&LATB,(uint8_t *)&LATB,(uint8_t *)&LATB,
(uint8_t *)&LATC,(uint8_t *)&LATC,(uint8_t *)&LATC,(uint8_t *)&LATC};
I know there are other ways to code this but eventually it'll have to be an array of pointers.
Thanks,
Mike.