Browse Source

Pre-override of ST7920 delays before HAL.h

Scott Lahteine 7 years ago
parent
commit
15d68cb496
1 changed files with 9 additions and 3 deletions
  1. 9
    3
      Marlin/src/HAL/HAL_LPC1768/HAL.h

+ 9
- 3
Marlin/src/HAL/HAL_LPC1768/HAL.h View File

68
 #include "HAL_timers.h"
68
 #include "HAL_timers.h"
69
 #include "HardwareSerial.h"
69
 #include "HardwareSerial.h"
70
 
70
 
71
-#define ST7920_DELAY_1 DELAY_NS(600)
72
-#define ST7920_DELAY_2 DELAY_NS(750)
73
-#define ST7920_DELAY_3 DELAY_NS(750)
71
+#ifndef ST7920_DELAY_1
72
+  #define ST7920_DELAY_1 DELAY_NS(600)
73
+#endif
74
+#ifndef ST7920_DELAY_2
75
+  #define ST7920_DELAY_2 DELAY_NS(750)
76
+#endif
77
+#ifndef ST7920_DELAY_3
78
+  #define ST7920_DELAY_3 DELAY_NS(750)
79
+#endif
74
 
80
 
75
 extern HalSerial usb_serial;
81
 extern HalSerial usb_serial;
76
 
82
 

Loading…
Cancel
Save