checkpoint

This commit is contained in:
Mariano Alvira 2009-04-02 14:54:02 -04:00
parent 8221cc260e
commit 4db3756dac
5 changed files with 192 additions and 17 deletions

View file

@ -31,11 +31,12 @@ void main(void) {
uint8_t c;
while(1) {
if(*(volatile uint32_t*)UR1CON > 0) {
*(volatile uint32_t *)UART1_DATA = (uint8_t)'U';
// if(*(volatile uint32_t*)UR1CON > 0) {
/* Receive buffer isn't empty */
/* read a byte and write it to the transmit buffer */
c = *(volatile uint32_t *)UART1_DATA;
*(volatile uint32_t *)UART1_DATA = c;
}
// c = *(volatile uint32_t *)UART1_DATA;
// *(volatile uint32_t *)UART1_DATA = c;
// }
};
}