Temporarily removed the serial echo (was causing terrible performance)
This commit is contained in:
@@ -203,7 +203,6 @@ void serial_init(void) {
|
|||||||
|
|
||||||
SCON = 0x50;
|
SCON = 0x50;
|
||||||
TI = 1;
|
TI = 1;
|
||||||
ES = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Writes a character to the serial port.
|
// Writes a character to the serial port.
|
||||||
@@ -320,11 +319,3 @@ void timer0_handler(void) __interrupt(1) {
|
|||||||
if(TIMER != 0) TIMER--;
|
if(TIMER != 0) TIMER--;
|
||||||
}
|
}
|
||||||
|
|
||||||
void serial_hanlder(void) __interrupt(4) {
|
|
||||||
if(RI) {
|
|
||||||
uint8_t data = SBUF;
|
|
||||||
serial_putchar(data);
|
|
||||||
RI = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user