]>
Commit | Line | Data |
---|---|---|
cb8474cc | 1 | /*---------------------------------------------------------------------------------------------------------------------------------------------------\r |
2 | * irmpconfig.h\r | |
3 | *\r | |
4 | * Copyright (c) 2010 Frank Meyer - frank(at)fli4l.de\r | |
5 | *\r | |
592411d1 | 6 | * $Id: irmpconfig.h,v 1.5 2010/05/15 17:56:24 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 | |
24 | #define F_INTERRUPTS 10000 // interrupts per second\r | |
25 | \r | |
26 | /*---------------------------------------------------------------------------------------------------------------------------------------------------\r | |
27 | * Change settings from 1 to 0 if you want to disable one or more decoders.\r | |
28 | * This saves program space.\r | |
29 | * 1 enable decoder\r | |
30 | * 0 disable decoder\r | |
31 | *---------------------------------------------------------------------------------------------------------------------------------------------------\r | |
32 | */\r | |
33 | #define IRMP_SUPPORT_SIRCS_PROTOCOL 1 // flag: support SIRCS uses ~100 bytes\r | |
34 | #define IRMP_SUPPORT_NEC_PROTOCOL 1 // flag: support NEC + APPLE uses ~250 bytes\r | |
35 | #define IRMP_SUPPORT_SAMSUNG_PROTOCOL 1 // flag: support Samsung + Samsung32 uses ~250 bytes\r | |
36 | #define IRMP_SUPPORT_MATSUSHITA_PROTOCOL 1 // flag: support Matsushita uses ~50 bytes\r | |
37 | #define IRMP_SUPPORT_KASEIKYO_PROTOCOL 1 // flag: support Kaseikyo uses ~50 bytes\r | |
38 | #define IRMP_SUPPORT_RECS80_PROTOCOL 1 // flag: support RECS80 uses ~50 bytes\r | |
39 | #define IRMP_SUPPORT_RC5_PROTOCOL 1 // flag: support RC5 uses ~250 bytes\r | |
40 | #define IRMP_SUPPORT_DENON_PROTOCOL 1 // flag: support DENON uses ~250 bytes\r | |
41 | #define IRMP_SUPPORT_RC6_PROTOCOL 1 // flag: support RC6 uses ~200 bytes\r | |
42 | #define IRMP_SUPPORT_RECS80EXT_PROTOCOL 1 // flag: support RECS80EXT uses ~50 bytes\r | |
43 | #define IRMP_SUPPORT_NUBERT_PROTOCOL 1 // flag: support NUBERT uses ~50 bytes\r | |
504d9df9 | 44 | #define IRMP_SUPPORT_BANG_OLUFSEN_PROTOCOL 1 // flag: support Bang & Olufsen uses ~200 bytes\r |
592411d1 | 45 | #define IRMP_SUPPORT_GRUNDIG_PROTOCOL 1 // flag: support Grundig uses ~150 bytes\r |
cb8474cc | 46 | \r |
47 | /*---------------------------------------------------------------------------------------------------------------------------------------------------\r | |
48 | * Change hardware pin here:\r | |
49 | *---------------------------------------------------------------------------------------------------------------------------------------------------\r | |
50 | */\r | |
51 | #ifdef PIC_CCS_COMPILER // PIC CCS Compiler:\r | |
52 | \r | |
53 | #define IRMP_PIN PIN_B4 // use PB4 as IR input on PIC\r | |
54 | \r | |
55 | #else // AVR:\r | |
56 | \r | |
57 | #define IRMP_PORT PORTB\r | |
58 | #define IRMP_DDR DDRB\r | |
59 | #define IRMP_PIN PINB\r | |
60 | #define IRMP_BIT 6 // use PB6 as IR input on AVR\r | |
61 | \r | |
62 | #define input(x) ((x) & (1 << IRMP_BIT))\r | |
63 | #endif\r | |
64 | \r | |
65 | /*---------------------------------------------------------------------------------------------------------------------------------------------------\r | |
66 | * Set IRMP_LOGGING to 1 if want to log data to UART with 9600Bd\r | |
67 | *---------------------------------------------------------------------------------------------------------------------------------------------------\r | |
68 | */\r | |
69 | #define IRMP_LOGGING 0 // 1: log IR signal (scan), 0: do not (default)\r | |
70 | \r | |
71 | #endif /* _WC_IRMPCONFIG_H_ */\r |