mikrokontrollersystemer-pro.../prosjekt.X/main.c

30 lines
444 B
C
Raw Normal View History

2024-03-06 11:34:22 +00:00
/*
* File: main.c
* Author: Sebastian H. Gabrielli
*
* Created on March 6, 2024, 12:34 PM
*/
2024-03-06 14:36:24 +00:00
#define F_CPU 4E6
2024-03-06 11:34:22 +00:00
#include <stdio.h>
#include <stdlib.h>
2024-03-06 14:36:24 +00:00
#include "uart.h"
#include "i2c.h"
#include "command-handler.h"
2024-03-06 14:36:24 +00:00
#include <util/delay.h>
#include <avr/io.h>
2024-03-06 11:34:22 +00:00
int main() {
2024-03-06 14:36:24 +00:00
init_uart((uint16_t)9600);
init_i2c();
2024-03-06 14:36:24 +00:00
stdout = &USART_stream;
PORTB.DIRSET = PIN3_bm;
sei();
2024-03-06 11:34:22 +00:00
2024-03-06 14:36:24 +00:00
while (1) {
;
2024-03-06 14:36:24 +00:00
}
}