Now everything compiles and the uart works. There is still a problem with the I2C functions I think which cause some errors. Need some more time...