init switches

This commit is contained in:
Pavol Rusnak 2011-04-27 03:34:49 +02:00
parent 20c0a5feee
commit 1e2e2587bb
2 changed files with 2 additions and 1 deletions

View file

@ -119,6 +119,7 @@ void PinInit() {
LPC_IOCON->PIO3_1 |= 0x00; LPC_IOCON->PIO3_1 |= 0x00;
LPC_GPIO2->DIR |= (1<<8) | (1<<9) | (1<<10) | (1<<11); LPC_GPIO2->DIR |= (1<<8) | (1<<9) | (1<<10) | (1<<11);
LPC_GPIO3->DIR |= (1<<0) | (1<<1); LPC_GPIO3->DIR |= (1<<0) | (1<<1);
SwitchesState(0);
//set chip select pins function //set chip select pins function
LPC_IOCON->PIO0_2 &= ~0x07; // DDS LPC_IOCON->PIO0_2 &= ~0x07; // DDS

View file

@ -29,7 +29,7 @@ class ModuleDebugWidget(QWidget):
# real device: # real device:
self.dev = Device() self.dev = Device()
# fake device: # fake device:
# self.dev = Device(True) # self.dev = Device(True)
self.timer = QTimer() self.timer = QTimer()
QObject.connect(self.timer, SIGNAL("timeout()"), self.read_inputs) QObject.connect(self.timer, SIGNAL("timeout()"), self.read_inputs)