]> git.zerfleddert.de Git - rsbs2/blob - bmc/bmc.c
d7c5cdc95ec4d1c4028112f188b6547e7320b081
[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
8 int main(void)
9 {
10 DDRB = 0xff;
11 PORTB = 0xff;
12
13 usart_init();
14 printf("\n");
15
16 i2c_init();
17
18 printf("Waiting for I2C...\n");
19
20 sei();
21
22 PORTB = 0xff;
23
24 while(1) {
25 #if 1
26 sleep_mode();
27 #endif
28 }
29
30 return 0;
31 }
Impressum, Datenschutz