Browse Source

Use board-specific or platform SPI pins in HAL_STM32 (#12323)

pull/1/head
Karl Andersson 6 years ago
committed by Scott Lahteine
parent
commit
176654791e
  1. 6
      Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp
  2. 8
      Marlin/src/HAL/HAL_STM32/spi_pins.h
  3. 8
      Marlin/src/pins/pins_ARMED.h

6
Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp

@ -26,11 +26,7 @@
// Includes
// --------------------------------------------------------------------------
#include "HAL.h"
#include "../shared/HAL_SPI.h"
#include "pins_arduino.h"
#include "spi_pins.h"
#include "../../core/macros.h"
#include "../../inc/MarlinConfig.h"
#include <SPI.h>

8
Marlin/src/HAL/HAL_STM32/spi_pins.h

@ -22,14 +22,14 @@
* Define SPI Pins: SCK, MISO, MOSI, SS
*/
#ifndef SCK_PIN
#define SCK_PIN 13
#define SCK_PIN PIN_SPI_SCK
#endif
#ifndef MISO_PIN
#define MISO_PIN 12
#define MISO_PIN PIN_SPI_MISO
#endif
#ifndef MOSI_PIN
#define MOSI_PIN 11
#define MOSI_PIN PIN_SPI_MOSI
#endif
#ifndef SS_PIN
#define SS_PIN 14
#define SS_PIN PIN_SPI_SS
#endif

8
Marlin/src/pins/pins_ARMED.h

@ -104,13 +104,6 @@
#define E1_CS_PIN PE5
#endif
//
// SPI
//
#define SCK_PIN PA5
#define MISO_PIN PA6
#define MOSI_PIN PA7
//
// Temperature Sensors
//
@ -133,7 +126,6 @@
// Misc functions
//
#define SDSS PE7
#define SS_PIN PE7
#define LED_PIN PB7 // Heart beat
#define PS_ON_PIN PA10
#define KILL_PIN PA8

Loading…
Cancel
Save