|
|
#ifndef FSW_RTEMS_CONFIG_H_INCLUDED
|
|
|
#define FSW_RTEMS_CONFIG_H_INCLUDED
|
|
|
|
|
|
#define GRSPW_DEVICE_NAME "/dev/grspw0"
|
|
|
#define UART_DEVICE_NAME "/dev/console"
|
|
|
|
|
|
#define REGS_ADDR_APBUART 0x80000100
|
|
|
#define REGS_ADDR_GPTIMER 0x80000300
|
|
|
#define REGS_ADDR_GRSPW 0x80000500
|
|
|
#define REGS_ADDR_SPECTRAL_MATRICES 0x80000700
|
|
|
|
|
|
#define APBUART_CTRL_REG_MASK_DB 0xfffff7ff
|
|
|
|
|
|
#define IRQ_SM 9
|
|
|
#define IRQ_SPARC_SM 0x19 // see sparcv8.pdf p.76 for interrupt levels
|
|
|
#define IRQ_WF 10
|
|
|
#define IRQ_SPARC_WF 0x1a // see sparcv8.pdf p.76 for interrupt levels
|
|
|
|
|
|
#define CLKDIV_SM_SIMULATOR 9999
|
|
|
#define CLKDIV_WF_SIMULATOR 9999999
|
|
|
#define TIMER_SM_SIMULATOR 1
|
|
|
#define TIMER_WF_SIMULATOR 2
|
|
|
|
|
|
#define TASKID_RECV 1
|
|
|
#define TASKID_SPIQ 3
|
|
|
#define TASKID_SMIQ 4
|
|
|
#define TASKID_STAT 5
|
|
|
#define TASKID_AVF0 6
|
|
|
#define TASKID_BPF0 7
|
|
|
#define TASKID_WFRM 8
|
|
|
|
|
|
#define PRINT_MESSAGES_ON_CONSOLE // enable or disable the printf instructions
|
|
|
#ifdef PRINT_MESSAGES_ON_CONSOLE
|
|
|
#define PRINTF(x) printf(x);
|
|
|
#define PRINTF1(x,y) printf(x,y);
|
|
|
#define PRINTF2(x,y,z) printf(x,y,z);
|
|
|
#else
|
|
|
#define PRINTF(x) ;
|
|
|
#define PRINTF1(x,y) ;
|
|
|
#define PRINTF2(x,y,z) ;
|
|
|
#endif
|
|
|
|
|
|
#define NB_SAMPLES_PER_SNAPSHOT 2048
|
|
|
#define NB_BYTES_SWF_BLK 2 * 6
|
|
|
|
|
|
extern volatile int wf_snap_f0[ ]; // 24576 bytes
|
|
|
extern volatile int wf_snap_f1[ ]; // 24576 bytes
|
|
|
extern volatile int wf_snap_f2[ ]; // 24576 bytes
|
|
|
extern volatile int wf_cont_f3[ ]; // 24576 bytes
|
|
|
|
|
|
#endif // FSW_RTEMS_CONFIG_H_INCLUDED
|
|
|
|