#include "sys/alt_stdio.h"
#include "altera_avalon_pio_regs.h"
#include "system.h"

int main()
{ 
	char *p;
	p = RAM_SPAN / 2;

	IOWR_ALTERA_AVALON_PIO_DATA(TRIG_BASE,300);
	IOWR_ALTERA_AVALON_PIO_DATA(SAMPLE_EN_BASE,1);

	while(!IORD_ALTERA_AVALON_PIO_DATA(STATE_BASE))




  while (1);

  return 0;
}
