unsigned char i = 0;
unsigned char j = 0;
+ n++;
while (--n != 0)
while (--i != 0)
while (--j != 0)
usart_out_byte(uint8_t byte)
{
U1DBUF = byte;
- while (!UTX1IF);
+ while (!UTX1IF)
+ ;
UTX1IF = 0;
+ delay(1);
}
uint8_t
return b;
}
-#define spi_init() usart_init()
-#define spi_out_byte(b) usart_out_byte(b)
-#define spi_in_byte() usart_in_byte()
-
static char string[] = "hello world\r\n";
main ()
while (!(SLEEP & SLEEP_XOSC_STB))
;
- spi_init();
+ usart_init();
for (;;) {
for (i = 0; i < sizeof(string) - 1; i++)