Based on SX1276Lib. Simplified and targeted for Modtronix inAir modules. All pins can now be specified to use interrupts or general purpose I/O pins.
inair_default_config.h@7:4d242a6ca693, 2015-10-21 (annotated)
- Committer:
- modtronix-com
- Date:
- Wed Oct 21 14:51:37 2015 +1100
- Revision:
- 7:4d242a6ca693
- Parent:
- 1:64a9c4a03244
Added dependency for modtronix_config.h file.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
modtronix | 1:64a9c4a03244 | 1 | /** |
modtronix | 1:64a9c4a03244 | 2 | * File: inair_default_defines.h |
modtronix | 1:64a9c4a03244 | 3 | * |
modtronix | 1:64a9c4a03244 | 4 | * Author: Modtronix Engineering - www.modtronix.com |
modtronix | 1:64a9c4a03244 | 5 | * |
modtronix | 1:64a9c4a03244 | 6 | * Description: |
modtronix | 1:64a9c4a03244 | 7 | * |
modtronix | 1:64a9c4a03244 | 8 | * Software License Agreement: |
modtronix | 1:64a9c4a03244 | 9 | * This software has been written or modified by Modtronix Engineering. The code |
modtronix | 1:64a9c4a03244 | 10 | * may be modified and can be used free of charge for commercial and non commercial |
modtronix | 1:64a9c4a03244 | 11 | * applications. If this is modified software, any license conditions from original |
modtronix | 1:64a9c4a03244 | 12 | * software also apply. Any redistribution must include reference to 'Modtronix |
modtronix | 1:64a9c4a03244 | 13 | * Engineering' and web link(www.modtronix.com) in the file header. |
modtronix | 1:64a9c4a03244 | 14 | * |
modtronix | 1:64a9c4a03244 | 15 | * THIS SOFTWARE IS PROVIDED IN AN 'AS IS' CONDITION. NO WARRANTIES, WHETHER EXPRESS, |
modtronix | 1:64a9c4a03244 | 16 | * IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
modtronix | 1:64a9c4a03244 | 17 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE |
modtronix | 1:64a9c4a03244 | 18 | * COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR |
modtronix | 1:64a9c4a03244 | 19 | * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
modtronix | 1:64a9c4a03244 | 20 | */ |
modtronix | 1:64a9c4a03244 | 21 | #ifndef MODTRONIX_INAIR_INAIR_DEFAULT_CONFIG_H_ |
modtronix | 1:64a9c4a03244 | 22 | #define MODTRONIX_INAIR_INAIR_DEFAULT_CONFIG_H_ |
modtronix | 1:64a9c4a03244 | 23 | |
modtronix-com |
7:4d242a6ca693 | 24 | //This file requires a file called "modtronix_config.h" to exist in the project! |
modtronix-com |
7:4d242a6ca693 | 25 | //Use this file to override any of the default defines below. Do NOT edit this file! |
modtronix-com |
7:4d242a6ca693 | 26 | #if !defined(NO_MODTRONIX_CONFIG) |
modtronix-com |
7:4d242a6ca693 | 27 | #include "modtronix_config.h" |
modtronix | 1:64a9c4a03244 | 28 | #endif |
modtronix | 1:64a9c4a03244 | 29 | |
modtronix | 1:64a9c4a03244 | 30 | // Copy from here to custom inair_defines.h file ////////////////////////////// |
modtronix | 1:64a9c4a03244 | 31 | |
modtronix | 1:64a9c4a03244 | 32 | //When selecting "Non Interrupt" based DIO0, following times were measured: |
modtronix | 1:64a9c4a03244 | 33 | // - Measuring time DIO0 pin stays high, indicates how long code takes to get to "Clear Irq" in OnDio0Irq(). DIO0 pin |
modtronix | 1:64a9c4a03244 | 34 | // stays high for about 20-40uS with interrupts disabled. Is about 18uS when interrupts enabled. |
modtronix | 1:64a9c4a03244 | 35 | #if !defined(INAIR_DIO0_IS_INTERRUPT) |
modtronix | 1:64a9c4a03244 | 36 | #define INAIR_DIO0_IS_INTERRUPT 0 |
modtronix | 1:64a9c4a03244 | 37 | #endif |
modtronix | 1:64a9c4a03244 | 38 | |
modtronix | 1:64a9c4a03244 | 39 | #if !defined(INAIR_DIO1_IS_INTERRUPT) |
modtronix | 1:64a9c4a03244 | 40 | #define INAIR_DIO1_IS_INTERRUPT 0 |
modtronix | 1:64a9c4a03244 | 41 | #endif |
modtronix | 1:64a9c4a03244 | 42 | |
modtronix | 1:64a9c4a03244 | 43 | #if !defined(INAIR_DIO2_IS_INTERRUPT) |
modtronix | 1:64a9c4a03244 | 44 | #define INAIR_DIO2_IS_INTERRUPT 0 |
modtronix | 1:64a9c4a03244 | 45 | #endif |
modtronix | 1:64a9c4a03244 | 46 | |
modtronix | 1:64a9c4a03244 | 47 | #if !defined(INAIR_DIO3_IS_INTERRUPT) |
modtronix | 1:64a9c4a03244 | 48 | #define INAIR_DIO3_IS_INTERRUPT 0 |
modtronix | 1:64a9c4a03244 | 49 | #endif |
modtronix | 1:64a9c4a03244 | 50 | |
modtronix | 1:64a9c4a03244 | 51 | |
modtronix | 1:64a9c4a03244 | 52 | // End of contents to copy to custom inair_defines.h file ///////////////////// |
modtronix | 1:64a9c4a03244 | 53 | |
modtronix | 1:64a9c4a03244 | 54 | #endif /* MODTRONIX_INAIR_INAIR_DEFAULT_CONFIG_H_ */ |