]> cvs.zerfleddert.de Git - rsbs2/blame_incremental - bmc/bmc.c
I2C master mode implemented and more decoding
[rsbs2] / bmc / bmc.c
... / ...
CommitLineData
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
9int 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