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