/* FILE control.c: */

#include <rci.h>

#define REG_ADDR        0xe000          /* bus address offset */

taskFxn(td)
{
        float *avg;                     /* pointer to shared mem */

        avg = (float*)getMemByName("avg");
        *avg = 0.9*(*avg) + 0.1*(*(short*)(rciBus+REG_ADDR));
}
