QuadDecode_def.h, line 53 should be PORTB_PCR0 not PORTB_PCR1.
QuadDecode_def.h, line 53 should be PORTB_PCR0 not PORTB_PCR1.