mikrokontrollersystemer-pro.../prosjekt.X/main.c
Sebastian H. Gabrielli 9fd877aab5 Command handing works!
The command handler can now receive a command, then it can run a
function / return some data based on it.
2024-04-16 15:30:38 +02:00

30 lines
444 B
C

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