Skip to content

Commit 629c08b

Browse files
committed
Small changes for allowing XMC boards
1 parent 4def8a2 commit 629c08b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Servo.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@
7575
#include "mbed/ServoTimers.h"
7676
#elif defined(ARDUINO_ARCH_RENESAS)
7777
#include "renesas/ServoTimers.h"
78+
#elif defined(ARDUINO_ARCH_XMC)
79+
#include "xmc/ServoTimers.h"
7880
#else
79-
#error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
81+
#error "This library only supports boards with an AVR, SAM, SAMD, NRF52, STM32F4, Renesas or XMC processor."
8082
#endif
8183

8284
#define Servo_VERSION 2 // software version of this library
@@ -91,7 +93,7 @@
9193

9294
#define INVALID_SERVO 255 // flag indicating an invalid servo index
9395

94-
#if !defined(ARDUINO_ARCH_STM32F4)
96+
#if !defined(ARDUINO_ARCH_STM32F4) && !defined(ARDUINO_ARCH_XMC)
9597

9698
typedef struct {
9799
uint8_t nbr :6 ; // a pin number from 0 to 63

0 commit comments

Comments
 (0)