]> git.zerfleddert.de Git - rsbs2/blob - bmc/bmc.c
525785ec48cf81e3a6dc8d5f836fd902648d0624
[rsbs2] / bmc / bmc.c
1 #include <avr/io.h>
2 #include <avr/sleep.h>
3 #include <avr/interrupt.h>
4 #include <stdio.h>
5 #include "usart.h"
6 #include "i2c.h"
7 #include "bmc.h"
8
9 int main(void)
10 {
11 DDRB = 0xff;
12 PORTB = 0xff;
13
14 usart_init();
15 printf("\n");
16
17 i2c_init();
18
19 printf("Waiting for I2C...\n");
20
21 sei();
22
23 while(1) {
24 #if 1
25 sleep_mode();
26 #endif
27 }
28
29 return 0;
30 }
Impressum, Datenschutz