/* * Author - Bertrand Songis * * Based on th9x -> http://code.google.com/p/th9x/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #include #if !defined(NUM_LOGICAL_SWITCH) && defined(NUM_CSW) #define NUM_LOGICAL_SWITCH NUM_CSW #endif #ifdef INIT_IMPORT #undef INIT_IMPORT #ifdef FRSKY frskyStreaming = 20; #endif #endif #ifdef SETVALUES_IMPORT #undef SETVALUES_IMPORT for (int i=0; iPIO_PDSR &= ~0x40; else PIOB->PIO_PDSR |= 0x40; #endif #if defined(PCBFLAMENCO) || (defined(PCBTARANIS) && defined(REV9E)) if (inputs.rotenc) simuSetKey(KEY_ENTER, true); #endif #endif #ifdef GETVALUES_IMPORT #undef GETVALUES_IMPORT memset(outputs.chans, 0, sizeof(outputs.chans)); for (unsigned int i=0; i(-512, value, 512); #endif