From 6eead3e37dc00bd7ecdd2d7d58ba84fb06be3e75 Mon Sep 17 00:00:00 2001 From: optixx Date: Tue, 20 Oct 2009 15:15:27 +0200 Subject: [PATCH] add more verbose more header output --- avr/usbload/shell.c | 82 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 66 insertions(+), 16 deletions(-) diff --git a/avr/usbload/shell.c b/avr/usbload/shell.c index 8cb9513..1167b00 100644 --- a/avr/usbload/shell.c +++ b/avr/usbload/shell.c @@ -44,7 +44,13 @@ extern system_t system; - +const PROGMEM char STR_ROM[] = "Rom"; +const PROGMEM char STR_RAM[] = "Sram"; +const PROGMEM char STR_BAT[] = "Battery"; +const PROGMEM char STR_SUPERFX[] = "SuperFX"; +const PROGMEM char STR_SA[] = "SA-1"; + + uint8_t command_buf[RECEIVE_BUF_LEN]; uint8_t recv_buf[RECEIVE_BUF_LEN]; @@ -153,7 +159,7 @@ static uint8_t get_int32(uint32_t *val) } -ISR(USART0_RX_vect) // Interrupt for UART Byte received +ISR(USART0_RX_vect) { UCSR0B &= (255 - (1<=0x02 || c<=0x0c ) + info_P(PSTR("PAL\n")); + else + info_P(PSTR("Unkown 0x%02x\n"),c); + info_P(PSTR("LIC 0x%04x 0x%02x\n"), (0xffda - offset),sram_read(0xffda - offset)); info_P(PSTR("VER 0x%04x 0x%02x\n"), (0xffdb - offset),sram_read(0xffdb - offset)); info_P(PSTR("SUM1 0x%04x 0x%04x\n"), (0xffdc - offset),sram_read16_be(0xffdc - offset));