Skip to content

Commit e68ca71

Browse files
Merge pull request #67 from runger1101001/dev
fix compile problem on AVR due to SAMD header
2 parents ca63c46 + 273bcf8 commit e68ca71

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/drivers/hardware_specific/samd_mcu.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@
66
// uncomment to enable debug output to Serial port
77
#define SIMPLEFOC_SAMD_DEBUG
88

9-
10-
11-
#include "Arduino.h"
12-
#include "variant.h"
13-
#include "wiring_private.h"
149
#include "../hardware_api.h"
1510

1611

12+
#if defined(_SAMD21_)||defined(_SAMD51_)
1713

1814

19-
#if defined(_SAMD21_)||defined(_SAMD51_)
15+
#include "Arduino.h"
16+
#include "variant.h"
17+
#include "wiring_private.h"
2018

2119

2220
#ifndef SIMPLEFOC_SAMD_PWM_RESOLUTION

0 commit comments

Comments
 (0)