if(regval == 0) *(volatile unsigned long *)XPAR_XPS_GPIO_0_BASEADDR = 0; // LPF else *(volatile unsigned long *)XPAR_XPS_GPIO_0_BASEADDR = 1; // HPF