예제 #1
0
파일: ex.c 프로젝트: shodanium/deco
void excommand (char *cp, char *fname)
{
	register struct ex *ep;

	if (nex == -1)
		initex ();
	for (ep=ex; ep->pat; ++ep) {
		if (match (fname, ep->pat)) {
			expand (cp, ep->cmd, fname);
			return;
		}
	}
	*cp = 0;
}
예제 #2
0
int notmain(){
  initex();
  addexc(IRQVECT, irq_handler);
  putsp(IRQMODE, 0x8000);
  putsp(SVCMODE, 0x8000000);
  for ( i= 0; i<6; i++ )
    gpio_fsel(leds[i], OUTPUT);
  gpio_fsel(ALT, OUTPUT);
  systim_add(2, 1);
  systim_add(2, 3);
  irq_enable(C1INT);
  irq_enable(C3INT);
  cuenta= 5;
  int_globalenable(IRQ);
  while(1);
}