Browse Source

Define LSBFIRST / MSBFIRST for LPC

Scott Lahteine 7 years ago
parent
commit
eb18ae9003
1 changed files with 8 additions and 4 deletions
  1. 8
    4
      Marlin/src/HAL/HAL_LPC1768/include/Arduino.h

+ 8
- 4
Marlin/src/HAL/HAL_LPC1768/include/Arduino.h View File

28
 
28
 
29
 #include "../pinmapping.h"
29
 #include "../pinmapping.h"
30
 
30
 
31
-#define LOW          0x00
32
 #define HIGH         0x01
31
 #define HIGH         0x01
33
-#define CHANGE       0x02
34
-#define FALLING      0x03
35
-#define RISING       0x04
32
+#define LOW          0x00
36
 
33
 
37
 #define INPUT        0x00
34
 #define INPUT        0x00
38
 #define OUTPUT       0x01
35
 #define OUTPUT       0x01
39
 #define INPUT_PULLUP 0x02
36
 #define INPUT_PULLUP 0x02
40
 
37
 
38
+#define LSBFIRST     0
39
+#define MSBFIRST     1
40
+
41
+#define CHANGE       0x02
42
+#define FALLING      0x03
43
+#define RISING       0x04
44
+
41
 #define E2END 0xFFF // EEPROM end address
45
 #define E2END 0xFFF // EEPROM end address
42
 
46
 
43
 typedef uint8_t byte;
47
 typedef uint8_t byte;

Loading…
Cancel
Save