Browse Source

Merge pull request #8364 from Bob-the-Kuhn/temp-sd-card

2.0.x - LPC1768 - update file to new pin numbering system
pull/1/head
Bob-the-Kuhn 7 years ago
committed by GitHub
parent
commit
a886e98967
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      Marlin/src/HAL/HAL_LPC1768/HAL_spi.cpp

12
Marlin/src/HAL/HAL_LPC1768/HAL_spi.cpp

@ -205,18 +205,18 @@
PinCfg.Funcnum = 2;
PinCfg.OpenDrain = 0;
PinCfg.Pinmode = 0;
PinCfg.Pinnum = pin_map[SCK_PIN].pin;
PinCfg.Portnum = pin_map[SCK_PIN].port;
PinCfg.Pinnum = LPC1768_PIN_PIN(SCK_PIN);
PinCfg.Portnum = LPC1768_PIN_PORT(SCK_PIN);
PINSEL_ConfigPin(&PinCfg);
SET_OUTPUT(SCK_PIN);
PinCfg.Pinnum = pin_map[MISO_PIN].pin;
PinCfg.Portnum = pin_map[MISO_PIN].port;
PinCfg.Pinnum = LPC1768_PIN_PIN(MISO_PIN);
PinCfg.Portnum = LPC1768_PIN_PORT(MISO_PIN);
PINSEL_ConfigPin(&PinCfg);
SET_INPUT(MISO_PIN);
PinCfg.Pinnum = pin_map[MOSI_PIN].pin;
PinCfg.Portnum = pin_map[MOSI_PIN].port;
PinCfg.Pinnum = LPC1768_PIN_PIN(MOSI_PIN);
PinCfg.Portnum = LPC1768_PIN_PORT(MOSI_PIN);
PINSEL_ConfigPin(&PinCfg);
SET_OUTPUT(MOSI_PIN);
}

Loading…
Cancel
Save