21 lines
380 B
C
21 lines
380 B
C
#include <avr/io.h>
|
|
|
|
#include "mystd.h"
|
|
#include "timer.h"
|
|
#include "uart.h"
|
|
#include "utils.h"
|
|
|
|
int main(void) {
|
|
uart_init();
|
|
timer1_init();
|
|
// DDRB |= _BV(PB0);
|
|
|
|
while (true) {
|
|
}
|
|
}
|
|
|
|
// This function is automatically called on TIMER1 Compare Match A interrupt
|
|
void __attribute__((signal)) __vector_11(void) {
|
|
uart_sendstring("Hello World!\r\n");
|
|
// PORTB ^= (1 << PB0);
|
|
}
|