From: Stephan Baerwolf Date: Tue, 2 Oct 2012 19:07:34 +0000 (+0200) Subject: mark ATmega48 as unsupported X-Git-Tag: v0.8~6 X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/commitdiff_plain/d12a50d7e5f83218607846cf9a5cd87ad8de09b5 mark ATmega48 as unsupported Since ATmega48 (as also ATmega48A, ATmega48P and ATmega48PA) only has 4kb of FLASH and does not support bootloader by hardware, it is improper for USBaspLoader and marked as unsopported. While the sourcecode remains with parts for ATmega48 (in case there are some know hacks to make it work), main.c will raise compiler-error in case of usage. Signed-off-by: Stephan Baerwolf --- diff --git a/firmware/main.c b/firmware/main.c index 5c78e31..eb83d4e 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -141,9 +141,13 @@ static const uchar signatureBytes[4] = { SIGNATURE_BYTES #elif defined (__AVR_ATmega8__) || defined (__AVR_ATmega8A__) || defined (__AVR_ATmega8HVA__) 0x1e, 0x93, 0x07, 0 +#elif defined (__AVR_ATmega32__) + 0x1e, 0x95, 0x02, 0 #elif defined (__AVR_ATmega48__) || defined (__AVR_ATmega48A__) || defined (__AVR_ATmega48P__) + #error ATmega48 does not support bootloaders! 0x1e, 0x92, 0x05, 0 #elif defined (__AVR_ATmega48PA__) + #error ATmega48 does not support bootloaders! 0x1e, 0x92, 0x0A, 0 #elif defined (__AVR_ATmega88__) || defined (__AVR_ATmega88A__) || defined (__AVR_ATmega88P__) 0x1e, 0x93, 0x0a, 0 @@ -157,8 +161,6 @@ static const uchar signatureBytes[4] = { 0x1e, 0x94, 0x06, 0 #elif defined (__AVR_ATmega168PA__) 0x1e, 0x94, 0x0B, 0 -#elif defined (__AVR_ATmega32__) - 0x1e, 0x95, 0x02, 0 #elif defined (__AVR_ATmega324A__) 0x1e, 0x95, 0x15, 0 #elif defined (__AVR_ATmega324P__)