finish
This commit is contained in:
parent
60153b0e3b
commit
b6415dc169
1 changed files with 6 additions and 6 deletions
|
@ -205,18 +205,18 @@
|
||||||
PinCfg.Funcnum = 2;
|
PinCfg.Funcnum = 2;
|
||||||
PinCfg.OpenDrain = 0;
|
PinCfg.OpenDrain = 0;
|
||||||
PinCfg.Pinmode = 0;
|
PinCfg.Pinmode = 0;
|
||||||
PinCfg.Pinnum = pin_map[SCK_PIN].pin;
|
PinCfg.Pinnum = LPC1768_PIN_PIN(SCK_PIN);
|
||||||
PinCfg.Portnum = pin_map[SCK_PIN].port;
|
PinCfg.Portnum = LPC1768_PIN_PORT(SCK_PIN);
|
||||||
PINSEL_ConfigPin(&PinCfg);
|
PINSEL_ConfigPin(&PinCfg);
|
||||||
SET_OUTPUT(SCK_PIN);
|
SET_OUTPUT(SCK_PIN);
|
||||||
|
|
||||||
PinCfg.Pinnum = pin_map[MISO_PIN].pin;
|
PinCfg.Pinnum = LPC1768_PIN_PIN(MISO_PIN);
|
||||||
PinCfg.Portnum = pin_map[MISO_PIN].port;
|
PinCfg.Portnum = LPC1768_PIN_PORT(MISO_PIN);
|
||||||
PINSEL_ConfigPin(&PinCfg);
|
PINSEL_ConfigPin(&PinCfg);
|
||||||
SET_INPUT(MISO_PIN);
|
SET_INPUT(MISO_PIN);
|
||||||
|
|
||||||
PinCfg.Pinnum = pin_map[MOSI_PIN].pin;
|
PinCfg.Pinnum = LPC1768_PIN_PIN(MOSI_PIN);
|
||||||
PinCfg.Portnum = pin_map[MOSI_PIN].port;
|
PinCfg.Portnum = LPC1768_PIN_PORT(MOSI_PIN);
|
||||||
PINSEL_ConfigPin(&PinCfg);
|
PINSEL_ConfigPin(&PinCfg);
|
||||||
SET_OUTPUT(MOSI_PIN);
|
SET_OUTPUT(MOSI_PIN);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue