Code:
...
void Batt(void) 
{ 
               uint16_t   ubat  // Was ist das? Eine Anweisung? Oder 2? Oder sonstwas?
      setStopwatch1(400); 

   { ...
da fehlt doch irgendwie ein (oder mehrere) Hochkommatas ( ; )

RP6Base_hinundher.c:80: warning: 'main' is normally a non-static function
RP6Base_hinundher.c:92:3: warning: no newline at end of file
Ersteres lässt sich lößen, wenn du
Code:
 void main(void)  // statt "int main(void)
nimmst.
das mit dem "...no new line..." macht nichts. das kommt bei mir auch dauernd, stört aber nicht, einfach übersehen.