defines.h

As with all files, rename the file, adding a preceding l (the letter after k and before m)

line# action
1 remove #include <float.h>
2 remove #include <ctype.h>
3 remove #include <float.h>
4 remove #include <math.h>
5 remove #include <setjmp.h>
6 remove #include <signal.h>
7 remove #include <stdio.h>
8 remove #include <stdlib.h>
9 remove #include <string.h>
10 remove #include <time.h>
1 insert #include <rtl_sync.h>
2 insert #include <asm/io.h>
3 insert #include <math.h>
4 insert #include <pthread.h>
5 insert #include <rtl_fifo.h>
6 insert #include <rtl_time.h>
7 insert #include <unistd.h>
22 insert /* Define the mapping between logical and physical addresses for the GPS Builder-2(TM) card. */
#define TR(addr) ((((addr)&0xFC)<<8) + (((addr)&0x3)<<3) + CORRELATOR)
23 insert /*Number of threads - this includes "main" Thread */
#define NUMTHREADS 7
24 insert /* This includes the handle that reads input commands */
#ifdef DEBUGTH
#define DPRINTF rtl_printf
#else
#define DPRINTF(x)
#endif
175 replace #define MASK_INTERRUPT 0x0020 with #define MASK_INTERRUPT 0
176 replace #define UNMASK_INTERRUPT 0x0022 with #define UNMASK_INTERRUPT 1
177 insert #define ENABLE_INTERRUPTS 0x0020
178 insert #define UNABLE_INTERRUPTS 0x0022
179 insert #define ASSERT_MASTER_RESET 0
180 insert #define DEASSERT_MASTER_RESET 1