Forum Discussion
Altera_Forum
Honored Contributor
15 years agoUART with fopen
im trying read and write to my uart device like: FILE *urt;
urt = fopen("/dev/UART","r+");
fprintf(urt,"data"); but fopen does not work for me unless i disable small c library. and whe...
Altera_Forum
Honored Contributor
15 years agowell i found an alternative method.. that is to use the the rs232 UART core for altera DE2 boards.. ftp://ftp.altera.com/up/pub/university_program_ip_cores/80/rs232.pdf its driver nicely does the job for me.. :)
but i think you're right.. when you're writing embedded programs you cant take drivers for granted.. so ill try and make my program work by directly interfacing with the device registers :)