2024-03-06 11:34:22 +00:00
|
|
|
/*
|
|
|
|
|
* File: main.c
|
2024-03-13 11:03:40 +00:00
|
|
|
* Author: Sebastian H. Gabrielli, Helle Augland Grasmo
|
2024-03-06 11:34:22 +00:00
|
|
|
*
|
|
|
|
|
* Created on March 6, 2024, 12:34 PM
|
|
|
|
|
*/
|
|
|
|
|
|
2024-03-06 14:36:24 +00:00
|
|
|
|
2024-03-06 14:49:48 +00:00
|
|
|
#include "eeprom.h"
|
2024-03-06 11:34:22 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
2024-03-06 13:49:16 +00:00
|
|
|
#define F_CPU 4E6
|
2024-03-06 14:36:24 +00:00
|
|
|
#include "uart.h"
|
|
|
|
|
#include <util/delay.h>
|
2024-03-06 11:34:22 +00:00
|
|
|
|
2024-03-06 14:36:24 +00:00
|
|
|
int main() {
|
|
|
|
|
init_uart((uint16_t)9600);
|
|
|
|
|
stdout = &USART_stream;
|
2024-03-06 11:34:22 +00:00
|
|
|
|
2024-03-06 14:36:24 +00:00
|
|
|
while (1) {
|
|
|
|
|
printf("Hello, world!\n");
|
|
|
|
|
_delay_ms(500);
|
|
|
|
|
}
|
|
|
|
|
}
|