/*FIRMC.C - FIR WITH MIXED-CODE. CALLS FUNCTION IN FIRMCF.ASM */ #include "aiccomc.c" /*include AIC com routines */ #include "bp45coef.h" /*include coefficients file*/ float DLY[2*N]; /*delay samples */ int AICSEC[4] = {0x162C,0x1,0x3872,0x67}; /*AIC data, Fs=10 kHz*/ int data_in, data_out; extern void filt(float *, float *, int *, int *, int); void c_int05() { PBASE[0x48] = data_out << 2; data_in = PBASE[0x4C] << 16 >> 18; } main () { int *IO_INPUT, *IO_OUTPUT; IO_INPUT = &data_in; IO_OUTPUT = &data_out; AICSET_I(); for (;;) filt((float *)H, (float *)DLY, (int *)IO_INPUT, (int *)IO_OUTPUT, N); }