]> cvs.zerfleddert.de Git - rsbs2/blob - bmc/bmc.c
working i2c connection to RSBS2-card
[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