summaryrefslogtreecommitdiff
path: root/avr/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'avr/main.c')
-rw-r--r--avr/main.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/avr/main.c b/avr/main.c
index c6a0f00..9103ddc 100644
--- a/avr/main.c
+++ b/avr/main.c
@@ -5,22 +5,14 @@
#include "common.h"
#include <util/delay.h>
-//#include <avr/power.h>
-//#include <avr/pgmspace.h>
#include <avr/interrupt.h>
-//#include <util/atomic.h>
-//#include <avr/sleep.h>
-//#include <string.h>
-
-#include <util/delay.h>
-
#include <stdlib.h>
#include <stdio.h>
-
#include "config.h"
#include "debug.h"
#include "z80-if.h"
+#include "i2c.h"
#include "con-utils.h"
#include "serial.h"
#include "timer.h"
@@ -92,7 +84,7 @@ void print_reset_reason(void)
uint8_t r = mcusr & 0x1f;
const FLASH char * const FLASH *p = rreasons;
- printf_P(PSTR("Reset reason(s): "));
+ printf_P(PSTR("Reset reason(s): %s"), r ? "" : "none");
for ( ; r; p++, r >>= 1) {
if (r & 1) {
my_puts_P(*p);
@@ -217,6 +209,7 @@ int main(void)
#endif
env_init();
+ i2c_init(34920);
printf_P(PSTR("\n(ATMEGA1281+HD64180)_stamp Tester\n"));