Commit 0c90220f by Petter Breedveld

Finished debug demo

parent 4581531c
......@@ -31,7 +31,7 @@ void uart_init(unsigned long baud){
USART0.BAUD = baud; //Set baudrate
USART0.CTRLB |= (1 << USART_RXEN_bp) | (1 << USART_TXEN_bp); //Enable RX and TX
USART0.CTRLA |= (1 << USART_RXCIE_bp); //Enable interupts on RX
USART0.CTRLA |= (1 << USART_RXCIE_bp); //Enable interrupts on RX
fdevopen(uart_transmit, NULL); //Allows the use of printf()
......@@ -54,7 +54,8 @@ int main(void)
while (1)
{
uart_transmit('O', NULL);
printf("Pizza <3\r\n");
_delay_ms(1000);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment