]> cloudbase.mooo.com Git - irmp.git/blame - irmpconfig.h
Version 1.6.6: added FDC & RC-CAR protocol to IRSND
[irmp.git] / irmpconfig.h
CommitLineData
cb8474cc 1/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
2 * irmpconfig.h\r
3 *\r
4 * Copyright (c) 2010 Frank Meyer - frank(at)fli4l.de\r
5 *\r
586dc529 6 * $Id: irmpconfig.h,v 1.22 2010/06/15 12:02:52 fm Exp $\r
cb8474cc 7 *\r
8 * ATMEGA88 @ 8 MHz\r
9 *\r
10 * This program is free software; you can redistribute it and/or modify\r
11 * it under the terms of the GNU General Public License as published by\r
12 * the Free Software Foundation; either version 2 of the License, or\r
13 * (at your option) any later version.\r
14 *---------------------------------------------------------------------------------------------------------------------------------------------------\r
15 */\r
16\r
17#ifndef _IRMPCONFIG_H_\r
18#define _IRMPCONFIG_H_\r
19\r
20/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
21 * Change F_INTERRUPTS if you change the number of interrupts per second, F_INTERRUPTS should be in the range from 10000 to 15000\r
22 *---------------------------------------------------------------------------------------------------------------------------------------------------\r
23 */\r
b5ea7869 24#ifndef F_INTERRUPTS\r
879b06c2 25#define F_INTERRUPTS 10000 // interrupts per second, min: 10000, max: 15000\r
b5ea7869 26#endif\r
cb8474cc 27\r
28/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
29 * Change settings from 1 to 0 if you want to disable one or more decoders.\r
30 * This saves program space.\r
31 * 1 enable decoder\r
32 * 0 disable decoder\r
33 *---------------------------------------------------------------------------------------------------------------------------------------------------\r
34 */\r
b5ea7869 35#define IRMP_SUPPORT_SIRCS_PROTOCOL 1 // flag: support SIRCS uses ~100 bytes\r
36#define IRMP_SUPPORT_NEC_PROTOCOL 1 // flag: support NEC + APPLE uses ~250 bytes\r
37#define IRMP_SUPPORT_SAMSUNG_PROTOCOL 1 // flag: support Samsung + Samsung32 uses ~250 bytes\r
38#define IRMP_SUPPORT_MATSUSHITA_PROTOCOL 1 // flag: support Matsushita uses ~50 bytes\r
39#define IRMP_SUPPORT_KASEIKYO_PROTOCOL 1 // flag: support Kaseikyo uses ~50 bytes\r
40#define IRMP_SUPPORT_RECS80_PROTOCOL 1 // flag: support RECS80 uses ~50 bytes\r
48664931 41#define IRMP_SUPPORT_RC5_PROTOCOL 1 // flag: support RC5 uses ~250 bytes\r
b5ea7869 42#define IRMP_SUPPORT_DENON_PROTOCOL 1 // flag: support DENON uses ~250 bytes\r
43#define IRMP_SUPPORT_RC6_PROTOCOL 1 // flag: support RC6 uses ~200 bytes\r
44#define IRMP_SUPPORT_RECS80EXT_PROTOCOL 1 // flag: support RECS80EXT uses ~50 bytes\r
45#define IRMP_SUPPORT_NUBERT_PROTOCOL 1 // flag: support NUBERT uses ~50 bytes\r
46#define IRMP_SUPPORT_BANG_OLUFSEN_PROTOCOL 1 // flag: support Bang & Olufsen uses ~200 bytes\r
47#define IRMP_SUPPORT_GRUNDIG_PROTOCOL 1 // flag: support Grundig uses ~150 bytes\r
48#define IRMP_SUPPORT_NOKIA_PROTOCOL 1 // flag: support Nokia uses ~150 bytes\r
586dc529 49#define IRMP_SUPPORT_FDC_PROTOCOL 0 // flag: support FDC3402 keyboard uses ~50 bytes\r
48664931 50#define IRMP_SUPPORT_RCCAR_PROTOCOL 0 // flag: support RC car uses ~150 bytes\r
b5ea7869 51\r
52/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
53 * THE FOLLOWING DECODERS WORK ONLY FOR F_INTERRUPTS > 14500!\r
54 *---------------------------------------------------------------------------------------------------------------------------------------------------\r
55 */\r
56#if F_INTERRUPTS >= 14500\r
57#define IRMP_SUPPORT_SIEMENS_PROTOCOL 1 // flag: support Siemens Gigaset uses ~150 bytes\r
b5ea7869 58#else\r
59#define IRMP_SUPPORT_SIEMENS_PROTOCOL 0 // DO NOT CHANGE! F_INTERRUPTS too low!\r
77f488bb 60#endif\r
61\r
48664931 62#if IRMP_SUPPORT_FDC_PROTOCOL == 1 && IRMP_SUPPORT_RC5_PROTOCOL == 1\r
63#error Protocols RC5 and FDC may not be enabled both at the same time. Please disable one of them in irmpconfig.h.\r
b5ea7869 64#endif\r
cb8474cc 65\r
48664931 66#if IRMP_SUPPORT_RCCAR_PROTOCOL == 1 && IRMP_SUPPORT_RC5_PROTOCOL == 1\r
67#error Protocols RC5 and RCCAR may not be enabled both at the same time. Please disable one of them in irmpconfig.h.\r
02dbaeff 68#endif\r
69\r
cb8474cc 70/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
71 * Change hardware pin here:\r
72 *---------------------------------------------------------------------------------------------------------------------------------------------------\r
73 */\r
74#ifdef PIC_CCS_COMPILER // PIC CCS Compiler:\r
75\r
76#define IRMP_PIN PIN_B4 // use PB4 as IR input on PIC\r
77\r
78#else // AVR:\r
79\r
80#define IRMP_PORT PORTB\r
81#define IRMP_DDR DDRB\r
82#define IRMP_PIN PINB\r
83#define IRMP_BIT 6 // use PB6 as IR input on AVR\r
84\r
85#define input(x) ((x) & (1 << IRMP_BIT))\r
86#endif\r
87\r
88/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
89 * Set IRMP_LOGGING to 1 if want to log data to UART with 9600Bd\r
90 *---------------------------------------------------------------------------------------------------------------------------------------------------\r
91 */\r
879b06c2 92#ifndef IRMP_LOGGING\r
93#define IRMP_LOGGING 0 // 1: log IR signal (scan), 0: do not (default)\r
94#endif\r
cb8474cc 95\r
96#endif /* _WC_IRMPCONFIG_H_ */\r