#include<def21469.h>

#define TAP 512
#define WINDOW 1024

.global  FIR_IP_buff1;
.global  FIR_OP_buff1;
.global  FIR_CF_buff1;
.global _main;
.global _FIR_DMA_ISR;

.extern _Init_FIR;

.section/dm seg_dmda;

	.var FIR_IP_buff1[TAP+WINDOW-1]={
										#include "fir_input.dat"
	};
	
	.var FIR_OP_buff1[WINDOW];
	
	.var FIR_CF_buff1[TAP]={
										#include "fir_coeffs.dat"
	};
	
	
	
.section/pm seg_pmco;

_main:

	bit set MODE1 IRPTEN;
	nop;
	 
	call _Init_FIR;
	
	jump(pc,0);
_main.end:
	
	
_FIR_DMA_ISR:

	nop;
	nop;
	
	rti;
	
_FIR_DMA_ISR.END:
	




