Hello world!

#include <stdio.h>
#include <usart.h>
OpenUSART(USART_TX_INT_OFF & USART_RX_INT_OFF & USART_ASYNCH_MODE &
 USART_EIGHT_BIT & USART_CONT_RX & USART_BRGH_LOW,
 19);
#pragma code
void main(void) {
  printf("Hello, Internet!\n");
  while(true) {
    sleep();
  }
}
Publicités