/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
* main.c - demo main module to test irmp decoder\r
*\r
- * Copyright (c) 2009-2010 Frank Meyer - frank(at)fli4l.de\r
+ * Copyright (c) 2009-2011 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: main.c,v 1.6 2010/06/10 10:09:47 fm Exp $\r
+ * $Id: main.c,v 1.9 2011/04/11 12:54:25 fm Exp $\r
*\r
* ATMEGA88 @ 8 MHz\r
*\r
TIMSK = 1 << OCIE1A; // OCIE1A: Interrupt by timer compare\r
#else\r
TIMSK1 = 1 << OCIE1A; // OCIE1A: Interrupt by timer compare\r
-#endif // __AVR...\r
+#endif // __AVR...\r
}\r
\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
#ifdef _OPTIMIZE_SIZE_\r
#pragma optsize+\r
#endif\r
- static uint8_t *Proto[]={"SIRCS","NEC","SAMSUNG","MATSUSH","KASEIKYO","RECS80","RC5(x)","DENON","RC6","SAMSG32","APPLE"};\r
- #define IRMP_APPLE_ADDRESS 0x77E1 \r
-\r
+ static uint8_t *Proto[]={"SIRCS","NEC","SAMSUNG","MATSUSH","KASEIKYO","RECS80","RC5(x)","DENON","RC6","SAMSG32","APPLE","RECS80X","NUBERT","B&O","GRUNDIG","NOKIA","SIEMENS","FDC","RCCAR","JVC","RC6A"};\r
\r
#if IRMP_LOGGING == 0\r
// USART initialization has to be done here if Logging is off\r
// irmp_data.address is the address/manufacturer code of ir sender\r
// irmp_data.command is the command code\r
#if IRMP_LOGGING != 1\r
- if((irmp_data.protocol == IRMP_NEC_PROTOCOL) && (irmp_data.address == IRMP_APPLE_ADDRESS))\r
- printf("Code: Apple\n");\r
- else printf("Code: %s\n",Proto[irmp_data.protocol-1]);\r
+ printf("Code: %s\n",Proto[irmp_data.protocol-1]);\r
printf("Address: 0x%.2X\n",irmp_data.address);\r
printf("Command: 0x%.2X\n\n",irmp_data.command);\r
#endif\r