Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit bd60986

Browse files
committed
Merge branch 'dev'
2 parents 0fe1ad9 + 32796f7 commit bd60986

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3471
-2613
lines changed
Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
//------------------------------------------------------------------------------
22
// Makelangelo - firmware for various robot kinematic models
33
// [email protected] 2013-12-26
4-
// Copyright at end of file. Please see
5-
// http://www.github.com/MarginallyClever/makelangeloFirmware for more information.
4+
// Please see http://www.github.com/MarginallyClever/makelangeloFirmware for more information.
65
//------------------------------------------------------------------------------
76

87
/*
@@ -29,22 +28,4 @@ void serial_setup(long baud) {
2928
// serial receive interrupt
3029
ISR(USART0_RX_vect) {
3130
}
32-
*/
33-
34-
35-
/**
36-
* This file is part of makelangelo-firmware.
37-
*
38-
* makelangelo-firmware is free software: you can redistribute it and/or modify
39-
* it under the terms of the GNU General Public License as published by
40-
* the Free Software Foundation, either version 3 of the License, or
41-
* (at your option) any later version.
42-
*
43-
* makelangelo-firmware is distributed in the hope that it will be useful,
44-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
45-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46-
* GNU General Public License for more details.
47-
*
48-
* You should have received a copy of the GNU General Public License
49-
* along with makelangelo-firmware. If not, see <http://www.gnu.org/licenses/>.
50-
*/
31+
*/

MServo.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545

4646
#include "MServo.h"
4747

48+
#ifndef ESP8266
49+
4850
#define usToTicks(_us) (( clockCyclesPerMicrosecond()* _us) / 8) // converts microseconds to tick (assumes prescale of 8) // 12 Aug 2009
4951
#define ticksToUs(_ticks) (( (unsigned)_ticks * 8)/ clockCyclesPerMicrosecond() ) // converts from ticks back to microseconds
5052

@@ -333,3 +335,6 @@ bool Servo::attached()
333335
{
334336
return servos[this->servoIndex].Pin.isActive ;
335337
}
338+
339+
340+
#endif // ESP8266

MServo.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
#ifndef Servo_h
4646
#define Servo_h
4747

48+
#ifndef ESP8266
49+
4850
#include <avr/interrupt.h>
4951
#include <Arduino.h>
5052
#include <inttypes.h>
@@ -86,10 +88,10 @@ typedef enum { _timer3, _Nbr_16timers } timer16_Sequence_t ;
8688
typedef enum { _timer3, _Nbr_16timers } timer16_Sequence_t ;
8789

8890
#else // everything else
89-
//#define _useTimer1
90-
#define _useTimer3
91-
//typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t ;
92-
typedef enum { _timer3, _Nbr_16timers } timer16_Sequence_t ;
91+
#define _useTimer1
92+
//#define _useTimer3
93+
typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t ;
94+
//typedef enum { _timer3, _Nbr_16timers } timer16_Sequence_t ;
9395
#endif
9496

9597
#define Servo_VERSION 2 // software version of this library
@@ -132,4 +134,6 @@ class Servo
132134
int8_t max; // maximum is this value times 4 added to MAX_PULSE_WIDTH
133135
};
134136

135-
#endif
137+
#endif // ESP8266
138+
139+
#endif // Servo_h

0 commit comments

Comments
 (0)