Browse Source

Fix _BV already defined warnings

Thomas Moore 6 years ago
parent
commit
34eaaab5fb

+ 0
- 4
Marlin/src/HAL/HAL_AVR/fastio_AVR.h View File

@@ -55,10 +55,6 @@
55 55
   #error "Pins for this chip not defined in Arduino.h! If you have a working pins definition, please contribute!"
56 56
 #endif
57 57
 
58
-#ifndef _BV
59
-  #define _BV(bit) (1UL << (bit))
60
-#endif
61
-
62 58
 /**
63 59
  * Magic I/O routines
64 60
  *

+ 0
- 2
Marlin/src/HAL/HAL_DUE/HAL_Due.h View File

@@ -53,8 +53,6 @@
53 53
   #define MYSERIAL customizedSerial
54 54
 #endif
55 55
 
56
-#define _BV(bit) (1 << (bit))
57
-
58 56
 // We need the previous define before the include, or compilation bombs...
59 57
 #include "MarlinSerial_Due.h"
60 58
 

+ 0
- 2
Marlin/src/HAL/HAL_LPC1768/include/arduino.h View File

@@ -38,8 +38,6 @@
38 38
 #define OUTPUT       0x01
39 39
 #define INPUT_PULLUP 0x02
40 40
 
41
-#define _BV(bit) (1 << (bit))
42
-
43 41
 #define E2END 0xFFF // EEPROM end address
44 42
 
45 43
 typedef uint8_t byte;

+ 0
- 2
Marlin/src/HAL/HAL_STM32F1/HAL_Stm32f1.h View File

@@ -77,8 +77,6 @@
77 77
   #define MYSERIAL Serial3
78 78
 #endif
79 79
 
80
-#define _BV(bit) 	(1 << (bit))
81
-
82 80
 /**
83 81
  * TODO: review this to return 1 for pins that are not analog input
84 82
  */

Loading…
Cancel
Save