Naja, frag mal den Compiler
Btw:
Code:
   while(!(pChan->INTFLAGS && 0x01));      // && ist logisch UND
   return pChan->RES; 
   pChan->INTFLAGS = 0x01;   // nach "return" kommt der da nichtmehr dahin
ist suboptimal.
Sollte wohl heissen:
Code:
   while(!(pChan->INTFLAGS & 0x01));   // & statt &&
   pChan->INTFLAGS = 0x01;               
   return pChan->RES;                        // return als letztes