serial port setup

japie
Attachment: read_port.c (2 KB)
Hello,

I am using the micro2440-sdk7 as dashboard on a tractorpuller and I got a
microcontroller attached to the serial port which collects rpm data.
Only when I setup the port (4800b 8N1) and read it it reads strange data,
so I think I don't set it up right or read it the wrong way.
I have to read raw data, the uC currently spits out 0x11 0x22 0x33 and so
on for testing in hex or in bin:
1 1000 1000 00
1 0100 0100 00
1 1100 1100 00
1 0010 0010 00
1 1010 1010 00
1 0110 0110 00
Can someone over here help me out?
I am not much of a coder and I don't understand what I am doing wrong...