Thanks for your reply
But what do you think about this code, any notes please.
Code:
/* A simple program that sends an order to the CMUcam2 camera and
reads back from it*/
:confused: :rolleyes: :]
#include <stdio.h>
#include <string.h>
int main ()
{
FILE* fp;
char prompt = 0;
int Written_Char;
fp = fopen ("/dev/uart1", "r+"); //Open the camera port for reading and writing.
if (fp)
{
Written_Char = fputc(":TC\r",fp); // writing a character to the UART.
prompt = getc(fp); // Get a character from the UART.
fprintf(fp, "Closing the UART file.\n");
fclose (fp);
}
return 0;
}
