beaglebone uart C program

I install angstorm with 3.2.18 kernel on my beaglebone, and I know how to set pin mux of uart, /sys/kernel/debug/omap_mux,
I also know how to send “date” like this:
root@beaglebone:echo date > /dev/ttyO1;
but I don’t know how to transmit from my beaglebone with C program,especially how to set baud,the date format! should I have to found the uart register in am335x TRM?

so could you tell me just how to transmit date form the beaglebone with C program??
many thanks!!

for you sending data through ttyO1,

I need to configure the ttyO1

Follow a tutorial.

http://www.valvers.com/embedded-linux/beaglebone/step05-uart

Kind Regard’s

Mauricio

Terça-feira, 18 de Junho de 2013 3:52:24 UTC-3, jason....@gmail.com escreveu: