-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathmain.c
43 lines (35 loc) · 740 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* Project: MateDealer
* File name: main.c
* Description: Main file of the MateDealer Project
*
* @author bouni
* @email bouni@owee.de
*
*/
#ifndef F_CPU
#define F_CPU 16000000UL
#endif
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <inttypes.h>
#include <util/delay.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include "usart.h"
#include "mdb.h"
#include "uplink.h"
int main(void) {
setup_usart(0,38400,8,'N',1);
setup_usart(1,9600,9,'N',1);
sei();
send_str_p(0,PSTR("MateDealer is up and running\r\n"));
// Main Loop
while(1) {
mdb_cmd_handler();
uplink_cmd_handler();
}
return 0;
}