I wanted to compare the pointer address with the register address such as below. i wonder why the compiler error of forbids comparison between pointer and integer ?
Isnt the &port is already the address of the Port Register ?
void test(volatile uint8_t *port, unsigned int pin) { if (&port == 0x25) { do something } } int main(){ test(&PORTB, 2); }