Преглед изворни кода

Only define _BV in Marduino.h

Scott Lahteine пре 5 година
родитељ
комит
9223261ea9
2 измењених фајлова са 1 додато и 2 уклоњено
  1. 0
    2
      Marlin/src/core/macros.h
  2. 1
    0
      Marlin/src/core/utility.h

+ 0
- 2
Marlin/src/core/macros.h Прегледај датотеку

61
 #define L(CODE) CODE ":\n\t"
61
 #define L(CODE) CODE ":\n\t"
62
 
62
 
63
 // Macros for bit masks
63
 // Macros for bit masks
64
-#undef _BV
65
-#define _BV(n) (1<<(n))
66
 #define TEST(n,b) !!((n)&_BV(b))
64
 #define TEST(n,b) !!((n)&_BV(b))
67
 #define SET_BIT_TO(N,B,TF) do{ if (TF) SBI(N,B); else CBI(N,B); }while(0)
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 Прегледај датотеку

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

Loading…
Откажи
Сачувај