X-Git-Url: http://cloudbase.mooo.com/gitweb/irmp.git/blobdiff_plain/80b3a55d38a7b0b58735f7715ef69134798fca6c..716f8772c514c531fd7c20822ad4b5d32aaa02b4:/irmp.h diff --git a/irmp.h b/irmp.h index faa4201..c7de844 100644 --- a/irmp.h +++ b/irmp.h @@ -1,11 +1,9 @@ /*--------------------------------------------------------------------------------------------------------------------------------------------------- * irmp.h * - * Copyright (c) 2009-2013 Frank Meyer - frank(at)fli4l.de + * Copyright (c) 2009-2014 Frank Meyer - frank(at)fli4l.de * - * $Id: irmp.h,v 1.86 2014/07/09 15:26:02 fm Exp $ - * - * ATMEGA88 @ 8 MHz + * $Id: irmp.h,v 1.90 2015/01/19 10:54:37 fm Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -63,11 +61,34 @@ # define sei() IntMasterEnable() #endif -#if IRMP_SUPPORT_DENON_PROTOCOL == 1 && IRMP_SUPPORT_RUWIDO_PROTOCOL == 1 -# warning DENON protocol conflicts wih RUWIDO, please enable only one of both protocols +#if IRMP_SUPPORT_DENON_PROTOCOL == 1 && (IRMP_SUPPORT_RUWIDO_PROTOCOL == 1 || IRMP_SUPPORT_SIEMENS_PROTOCOL == 1) +# warning DENON protocol conflicts wih RUWIDO/SIEMENS, please enable only one of both protocols +# warning RUWIDO protocol disabled +# warning SIEMENS protocol disabled +# warning DENON protocol stays enabled +# undef IRMP_SUPPORT_RUWIDO_PROTOCOL +# define IRMP_SUPPORT_RUWIDO_PROTOCOL 0 +# undef IRMP_SUPPORT_SIEMENS_PROTOCOL +# define IRMP_SUPPORT_SIEMENS_PROTOCOL 0 +#endif + +#if IRMP_SUPPORT_DENON_PROTOCOL == 1 && (IRMP_SUPPORT_RUWIDO_PROTOCOL == 1 || IRMP_SUPPORT_SIEMENS_PROTOCOL == 1) +# warning MERLIN protocol conflicts wih RUWIDO/SIEMENS, please enable only one of both protocols # warning RUWIDO protocol disabled +# warning SIEMENS protocol disabled +# warning MERLIN protocol stays enabled # undef IRMP_SUPPORT_RUWIDO_PROTOCOL # define IRMP_SUPPORT_RUWIDO_PROTOCOL 0 +# undef IRMP_SUPPORT_SIEMENS_PROTOCOL +# define IRMP_SUPPORT_SIEMENS_PROTOCOL 0 +#endif + +#if IRMP_SUPPORT_DENON_PROTOCOL == 1 && IRMP_SUPPORT_A1TVBOX_PROTOCOL == 1 +# warning MERLIN protocol conflicts wih A1TVBOX, please enable only one of both protocols +# warning A1TVBOX protocol disabled +# warning MERLIN protocol stays enabled +# undef IRMP_SUPPORT_A1TVBOX_PROTOCOL +# define IRMP_SUPPORT_A1TVBOX_PROTOCOL 0 #endif #if IRMP_SUPPORT_RC6_PROTOCOL == 1 && IRMP_SUPPORT_ROOMBA_PROTOCOL == 1 @@ -173,16 +194,16 @@ #define IRMP_FLAG_REPETITION 0x01 extern void irmp_init (void); -extern uint8_t irmp_get_data (IRMP_DATA *); -extern uint8_t irmp_is_busy (void); -extern uint8_t irmp_ISR (void); +extern uint_fast8_t irmp_get_data (IRMP_DATA *); +extern uint_fast8_t irmp_is_busy (void); +extern uint_fast8_t irmp_ISR (void); #if IRMP_PROTOCOL_NAMES == 1 -extern char * irmp_protocol_names[IRMP_N_PROTOCOLS + 1]; +extern const char * const irmp_protocol_names[IRMP_N_PROTOCOLS + 1] PROGMEM; #endif #if IRMP_USE_CALLBACK == 1 -extern void irmp_set_callback_ptr (void (*cb)(uint8_t)); +extern void irmp_set_callback_ptr (void (*cb)(uint_fast8_t)); #endif // IRMP_USE_CALLBACK == 1 #endif /* _IRMP_H_ */