[En-Nut-Discussion] reclaiming PE0 and PE1 from uart0

Peter Gaskell pgaskell at darkwing.uoregon.edu
Tue Nov 15 01:58:18 CET 2005


Can someone tell me what i need to do to disable uart0 so i can use PE0 
and PE1 in the expansion port?  i've tried just not registering, here's 
the code i commented out:

   /* Register and assign stdout to UART0 */
  // NutRegisterDevice(&devUart0, 0, 0);
  // freopen("uart0", "w", stdout);
  // _ioctl(_fileno(stdout), UART_SETSPEED, &baud);

but this makes the ethernut hang.
is this because i need to redirect stdout?


-peter


More information about the En-Nut-Discussion mailing list