Loading Debugger_Demo/Debugger_Demo/main.c +3 −2 Original line number Diff line number Diff line Loading @@ -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() Loading @@ -54,7 +54,8 @@ int main(void) while (1) { uart_transmit('O', NULL); printf("Pizza <3\r\n"); _delay_ms(1000); } } Loading Loading
Debugger_Demo/Debugger_Demo/main.c +3 −2 Original line number Diff line number Diff line Loading @@ -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() Loading @@ -54,7 +54,8 @@ int main(void) while (1) { uart_transmit('O', NULL); printf("Pizza <3\r\n"); _delay_ms(1000); } } Loading