Project

General

Profile

Revision 142

Added by Kevin Woo over 14 years ago

changed it so that the cardbox ignores uart rx until it gets a key

View differences:

serial.c
55 55
	UCSR0C |= (1<<UCSZ00) | (1<<UCSZ01);
56 56
}
57 57

  
58
// Disables the UART receiver
59
void serial_disable_rx (void) {
60
    UCSR0B &= ~(1<<RXEN0);
61
}
62

  
63
// Enables the UART receiver
64
void serial_enable_rx(void) {
65
    UCSR0B |= (1<<RXEN0);
66
}
67

  
58 68
// uart_putchar - Low-level function which puts a value into the 
59 69
// Tx buffer for transmission.  Automatically injects
60 70
// a \r before all \n's

Also available in: Unified diff