Browse Source

Fix _BV already defined warnings

Thomas Moore 7 years ago
parent
commit
34eaaab5fb

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

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

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

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

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

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

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

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

Loading…
Cancel
Save