Browse Source

LPC1768 MarlinServo => libServo

pull/1/head
Scott Lahteine 6 years ago
parent
commit
a49919396a
  1. 4
      Marlin/src/HAL/HAL_LPC1768/HAL_Servo_LPC1768.h
  2. 2
      Marlin/src/HAL/shared/servo.h

4
Marlin/src/HAL/HAL_LPC1768/MarlinServo.h → Marlin/src/HAL/HAL_LPC1768/HAL_Servo_LPC1768.h

@ -50,7 +50,7 @@
#include <Servo.h> #include <Servo.h>
class MarlinServo: public Servo { class libServo: public Servo {
public: public:
void move(const int value) { void move(const int value) {
constexpr uint16_t servo_delay[] = SERVO_DELAY; constexpr uint16_t servo_delay[] = SERVO_DELAY;
@ -67,4 +67,4 @@ class MarlinServo: public Servo {
} }
}; };
#define HAL_SERVO_LIB MarlinServo #define HAL_SERVO_LIB libServo

2
Marlin/src/HAL/shared/servo.h

@ -73,7 +73,7 @@
#elif IS_TEENSY35 || IS_TEENSY36 #elif IS_TEENSY35 || IS_TEENSY36
#include "../HAL_TEENSY35_36/HAL_Servo_Teensy.h" #include "../HAL_TEENSY35_36/HAL_Servo_Teensy.h"
#elif defined(TARGET_LPC1768) #elif defined(TARGET_LPC1768)
#include "../HAL_LPC1768/MarlinServo.h" #include "../HAL_LPC1768/HAL_Servo_LPC1768.h"
#elif defined(__STM32F1__) || defined(TARGET_STM32F1) #elif defined(__STM32F1__) || defined(TARGET_STM32F1)
#include "../HAL_STM32F1/HAL_Servo_STM32F1.h" #include "../HAL_STM32F1/HAL_Servo_STM32F1.h"
#elif defined(STM32GENERIC) && defined(STM32F4) #elif defined(STM32GENERIC) && defined(STM32F4)

Loading…
Cancel
Save