- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi all
i have problem with altera uart0 when i send char it's ok but µclunix stop run , my function int uart_altera_test() { char* msg = "c"; int fp; char prompt = 0; fp = open ("/dev/ttyS0", O_RDWR | O_NONBLOCK); //Open file for reading and writing if (fp < 0) { printf( "error open %.\n", fp); } else { if( write(fp, msg ,sizeof(char)) < 0) { printf("error write UART file.\n"); } fclose (fp); printf("Closing the UART file.\n"); } return 0 }Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page