Explorar el Código

Only define _BV in Marduino.h

Scott Lahteine hace 5 años
padre
commit
9223261ea9
Se han modificado 2 ficheros con 1 adiciones y 2 borrados
  1. 0
    2
      Marlin/src/core/macros.h
  2. 1
    0
      Marlin/src/core/utility.h

+ 0
- 2
Marlin/src/core/macros.h Ver fichero

@@ -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 Ver fichero

@@ -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…
Cancelar
Guardar