src/spartan-edge-ioex.cpp
/* GPIO write a bit 1 or 0 */
GPIO write a bit 1 or 0
GPIO write a bit 1 or 0
void spartan_edge_ioex::writeGpioBit(unsigned GPIO_Port, unsigned GPIO_Pin, unsigned BitVal) {
  unsigned v = 0;
  unsigned val = 1 << GPIO_Pin;
  v = regRead(GPIO_Port + 1);
  regWrite(GPIO_Port + 1, (v & ~val) | (BitVal << GPIO_Pin));
}
void spartan_edge_ioex :: writeGpioBit ( unsigned GPIO_Port , unsigned GPIO_Pin , unsigned BitVal ) { unsigned v = 0 ; unsigned val = 1 << GPIO_Pin ; v = regRead ( GPIO_Port + 1 ) ; regWrite ( GPIO_Port + 1 , ( v & ~ val ) | ( BitVal << GPIO_Pin ) ) ; }
GPIO write a bit 1 or 0
GPIO write a bit 1 or 0