TestDoxygen
1.0.21
Test for Doxygen
|
00001 00006 /* 00007 MRU 110912 00008 110912 Removed rules for SW_OSD, MAX7456OSD and DOGMDISPLAY 00009 110113 Added tests for TICKSPERSEC and TIMERFREQ 00010 */ 00011 #include "SIMRCV.h" 00012 #include "config.h" 00013 #ifndef _CONFIG_RULES_H_ 00014 #define _CONFIG_RULES_H_ 00015 00016 /* Do not change the following part, it tests the config */ 00017 00018 /* Define at least one of GPS and LWTIME */ 00019 #if (!defined GPS) && (!defined LWTIME) 00020 #error Define one or both of GPS or LWTIME 00021 #endif 00022 00023 #if ((HARDWARE == SVEN_DEFS) && (VTIDEVICE == MAX7456OSD)) 00024 #error No MAX7456 in Sven hardware 00025 #endif 00026 00027 #if ((HARDWARE == SVEN_DEFS) && (defined DOGMDISPLAY)) 00028 #error No DOGMDISPLAY in Sven hardware 00029 #endif 00030 00031 #if (HARDWARE != SVEN_DEFS) 00032 #define INIT_MUXS0 /* These only in Sven's HW */ 00033 #define INIT_OE 00034 #endif /* !SVEN_DEFS */ 00035 00036 #if (VTIDEVICE == NO_OSD) 00037 #define INIT_VSYNC /* Not needed if no VTI */ 00038 #define INIT_CV 00039 #endif 00040 #if ((HARDWARE != SVEN_DEFS) && (VTIDEVICE == SW_OSD)) 00041 #error Software OSD only available in Sven''s hardware 00042 #endif 00043 00044 /* Use SPI for SW_OSD, MAX7456 and DOGM display */ 00045 #if ((VTIDEVICE != NO_OSD) || (defined DOGMDISPLAY)) 00046 #define SPI_DEV 00047 #endif 00048 /* GPS must have RS232 */ 00049 #ifdef GPS 00050 #if (PGMFUNCTION == RECEIVER) 00051 #define RX_RS232 00052 #endif 00053 #if (PGMFUNCTION == SIMULATOR) 00054 #define TX_RS232 00055 #endif 00056 #endif 00057 #ifdef TICKSPERSEC 00058 /* Check the timer frequencies */ 00059 #if ((1000 % TICKSPERSEC) != 0) 00060 #error TICKSPERSEC must be a submultiple of 1000 00061 #endif 00062 #if ((TICKSPERSEC % TIMERFREQ) != 0) 00063 #error TIMERFREQ must be a submultiple of TICKSPERSEC */ 00064 #endif 00065 #endif /* TICKSPERSEC */ 00066 00067 #if (defined LW_RCV) && (defined LW_SIM) 00068 #error Define only one or none of LW_RCV and LW_SIM 00069 #endif 00070 00071 #if (!defined DCF77) && (!defined MSF) && (!defined WWVB) && (!defined JJY) 00072 #error Define at least one LW transmitter 00073 #endif /* !DCF77 && !MSF && !WWVB && !JJY */ 00074 00075 /* If RXPOLL is defined: 00076 As experiment run RX without interrupt to reduce jitter in the SW_OSD 00077 This changes the USART initialisation and runs the RX at base level 00078 as a task 00079 */ 00080 #if (PGMFUNCTION == SIMULATOR) 00081 #undef RXPOLL /* Never use RXPOLL for SIMULATOR */ 00082 #endif 00083 00084 #if (PGMFUNCTION == RECEIVER) 00085 #if (VTIDEVICE == SW_OSD) 00086 #define RXPOLL 00087 #else 00088 #undef RXPOLL 00089 #endif 00090 #endif 00091 #endif /* _CONFIG_RULES_H_ */