From a49919396a26ae075ff84801f5db4b236e9e33d5 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 22 May 2019 16:54:03 -0500 Subject: [PATCH] LPC1768 MarlinServo => libServo --- .../HAL/HAL_LPC1768/{MarlinServo.h => HAL_Servo_LPC1768.h} | 4 ++-- Marlin/src/HAL/shared/servo.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename Marlin/src/HAL/HAL_LPC1768/{MarlinServo.h => HAL_Servo_LPC1768.h} (97%) diff --git a/Marlin/src/HAL/HAL_LPC1768/MarlinServo.h b/Marlin/src/HAL/HAL_LPC1768/HAL_Servo_LPC1768.h similarity index 97% rename from Marlin/src/HAL/HAL_LPC1768/MarlinServo.h rename to Marlin/src/HAL/HAL_LPC1768/HAL_Servo_LPC1768.h index 925e5a7e45..83ac8f0eab 100644 --- a/Marlin/src/HAL/HAL_LPC1768/MarlinServo.h +++ b/Marlin/src/HAL/HAL_LPC1768/HAL_Servo_LPC1768.h @@ -50,7 +50,7 @@ #include -class MarlinServo: public Servo { +class libServo: public Servo { public: void move(const int value) { 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 diff --git a/Marlin/src/HAL/shared/servo.h b/Marlin/src/HAL/shared/servo.h index 042c5d83cc..1bcc200a54 100644 --- a/Marlin/src/HAL/shared/servo.h +++ b/Marlin/src/HAL/shared/servo.h @@ -73,7 +73,7 @@ #elif IS_TEENSY35 || IS_TEENSY36 #include "../HAL_TEENSY35_36/HAL_Servo_Teensy.h" #elif defined(TARGET_LPC1768) - #include "../HAL_LPC1768/MarlinServo.h" + #include "../HAL_LPC1768/HAL_Servo_LPC1768.h" #elif defined(__STM32F1__) || defined(TARGET_STM32F1) #include "../HAL_STM32F1/HAL_Servo_STM32F1.h" #elif defined(STM32GENERIC) && defined(STM32F4)