Skip to content

Commit

Permalink
Issue #84 disable uart in init()
Browse files Browse the repository at this point in the history
Former-commit-id: 0226dbf
  • Loading branch information
msproul committed Aug 17, 2011
1 parent d843d4f commit 1ddbca2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hardware/pic32/cores/pic32/wiring.c
Expand Up @@ -30,6 +30,7 @@
//* Oct 15, 2010 <MLS> Master interrupts working to generate millis()
//* May 18, 2011 <MLS> merged in Brian Schmalz work on microseconds timer
//* May 20, 2011 <MLS> For mega board, disabling secondary oscillator
//* Aug 17, 2011 <MLS> Issue #84 disable the uart on init so that the pins can be used as general purpose I/O
//************************************************************************
#include <plib.h>
#include <p32xxxx.h>
Expand Down Expand Up @@ -245,6 +246,11 @@ void init()

#endif

//* Issue #84
//* disable the uart so that the pins can be used as general purpose I/O
#if defined(_UART1)
U1MODEbits.UARTEN = 0x00;
#endif
}


Expand Down

0 comments on commit 1ddbca2

Please sign in to comment.