mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-21 23:58:31 +00:00
Fixes the broken UART by intializing it after the sidebuttons.
This commit is contained in:
parent
cca039f365
commit
01c38cdc8c
@ -99,9 +99,6 @@ int main(void) {
|
||||
tone(NOTE_C8, 500);
|
||||
*/
|
||||
|
||||
lcd_zero();
|
||||
lcd_string("UARTINIT");
|
||||
uart_init();
|
||||
|
||||
lcd_zero();
|
||||
printf("cp ");
|
||||
@ -132,8 +129,11 @@ int main(void) {
|
||||
//Unused IO pins must be outputs.
|
||||
PJDIR |= 0xF;
|
||||
PJOUT &= ~0xF;
|
||||
|
||||
|
||||
|
||||
//UART must come after the sidebuttons.
|
||||
lcd_zero();
|
||||
lcd_string("UARTINIT");
|
||||
uart_init();
|
||||
|
||||
// Setup and enable WDT 250ms, ACLK, interval timer
|
||||
WDTCTL = WDT_ADLY_250;
|
||||
|
Loading…
Reference in New Issue
Block a user