General cleanups for HAL

This commit is contained in:
Scott Lahteine
2018-01-15 02:29:23 -06:00
parent 42933c804a
commit 2c18faf3e4
7 changed files with 70 additions and 70 deletions

View File

@ -1,18 +1,18 @@
#ifndef HAL_Servo_Teensy_h
#define HAL_Servo_Teensy_h
#ifndef _HAL_SERVO_TEENSY_H_
#define _HAL_SERVO_TEENSY_H_
#include <Servo.h>
// Inherit and expand on the official library
class libServo : public Servo {
public:
int8_t attach(const int pin);
int8_t attach(const int pin, const int min, const int max);
void move(const int value);
private:
uint16_t min_ticks;
uint16_t max_ticks;
uint8_t servoIndex; // index into the channel data for this servo
public:
int8_t attach(const int pin);
int8_t attach(const int pin, const int min, const int max);
void move(const int value);
private:
uint16_t min_ticks;
uint16_t max_ticks;
uint8_t servoIndex; // index into the channel data for this servo
};
#endif // HAL_Servo_Teensy_h
#endif // _HAL_SERVO_TEENSY_H_

View File

@ -45,7 +45,7 @@ void endstop_ISR(void) { endstop_ISR_worker(); }
#elif IS_32BIT_TEENSY
#include "HAL_TEENSY35_36/endstop_interrupts.h"
#elif defined(STM32F7)
#include "HAL_STM32F7/endstop_interrupts.h"