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.

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers inair_default_config.h Source File

inair_default_config.h

00001 /**
00002  * File:      inair_default_defines.h
00003  *
00004  * Author:    Modtronix Engineering - www.modtronix.com
00005  *
00006  * Description:
00007  *
00008  * Software License Agreement:
00009  * This software has been written or modified by Modtronix Engineering. The code
00010  * may be modified and can be used free of charge for commercial and non commercial
00011  * applications. If this is modified software, any license conditions from original
00012  * software also apply. Any redistribution must include reference to 'Modtronix
00013  * Engineering' and web link(www.modtronix.com) in the file header.
00014  *
00015  * THIS SOFTWARE IS PROVIDED IN AN 'AS IS' CONDITION. NO WARRANTIES, WHETHER EXPRESS,
00016  * IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
00017  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE
00018  * COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
00019  * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
00020  */
00021 #ifndef MODTRONIX_INAIR_INAIR_DEFAULT_CONFIG_H_
00022 #define MODTRONIX_INAIR_INAIR_DEFAULT_CONFIG_H_
00023 
00024 //This file requires a file called "modtronix_config.h" to exist in the project!
00025 //Use this file to override any of the default defines below. Do NOT edit this file!
00026 #if !defined(NO_MODTRONIX_CONFIG)
00027     #include "modtronix_config.h"
00028 #endif
00029 
00030 // Copy from here to custom inair_defines.h file //////////////////////////////
00031 
00032 //When selecting "Non Interrupt" based DIO0, following times were measured:
00033 // - Measuring time DIO0 pin stays high, indicates how long code takes to get to "Clear Irq" in OnDio0Irq(). DIO0 pin
00034 //   stays high for about 20-40uS with interrupts disabled. Is about 18uS when interrupts enabled.
00035 #if !defined(INAIR_DIO0_IS_INTERRUPT)
00036 #define INAIR_DIO0_IS_INTERRUPT     0
00037 #endif
00038 
00039 #if !defined(INAIR_DIO1_IS_INTERRUPT)
00040 #define INAIR_DIO1_IS_INTERRUPT     0
00041 #endif
00042 
00043 #if !defined(INAIR_DIO2_IS_INTERRUPT)
00044 #define INAIR_DIO2_IS_INTERRUPT     0
00045 #endif
00046 
00047 #if !defined(INAIR_DIO3_IS_INTERRUPT)
00048 #define INAIR_DIO3_IS_INTERRUPT     0
00049 #endif
00050 
00051 
00052 // End of contents to copy to custom inair_defines.h file /////////////////////
00053 
00054 #endif /* MODTRONIX_INAIR_INAIR_DEFAULT_CONFIG_H_ */