Browse Source

Only define _BV in Marduino.h

Scott Lahteine 5 years ago
parent
commit
9223261ea9
2 changed files with 1 additions and 2 deletions
  1. 0
    2
      Marlin/src/core/macros.h
  2. 1
    0
      Marlin/src/core/utility.h

+ 0
- 2
Marlin/src/core/macros.h View File

@@ -61,8 +61,6 @@
61 61
 #define L(CODE) CODE ":\n\t"
62 62
 
63 63
 // Macros for bit masks
64
-#undef _BV
65
-#define _BV(n) (1<<(n))
66 64
 #define TEST(n,b) !!((n)&_BV(b))
67 65
 #define SET_BIT_TO(N,B,TF) do{ if (TF) SBI(N,B); else CBI(N,B); }while(0)
68 66
 

+ 1
- 0
Marlin/src/core/utility.h View File

@@ -22,6 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 #include "../inc/MarlinConfigPre.h"
25
+#include "../HAL/shared/Marduino.h"
25 26
 
26 27
 constexpr char axis_codes[XYZE] = { 'X', 'Y', 'Z', 'E' };
27 28
 

Loading…
Cancel
Save