Browse Source

LPC176x SPI / I2C PersistentStore (#17651)

randellhodges 5 years ago
parent
commit
5f7a75979f
No account linked to committer's email address
29 changed files with 132 additions and 210 deletions
  1. 2
    2
      Marlin/src/HAL/DUE/EepromEmulation.cpp
  2. 86
    0
      Marlin/src/HAL/LPC1768/eeprom_wired.cpp
  3. 3
    14
      Marlin/src/HAL/STM32/eeprom_wired.cpp
  4. 1
    1
      Marlin/src/HAL/STM32/inc/Conditionals_post.h
  5. 3
    3
      Marlin/src/HAL/STM32_F4_F7/EmulatedEeprom.cpp
  6. 1
    0
      Marlin/src/HAL/STM32_F4_F7/inc/Conditionals_post.h
  7. 30
    24
      Marlin/src/HAL/shared/eeprom_i2c.cpp
  8. 6
    2
      Marlin/src/HAL/shared/eeprom_spi.cpp
  9. 0
    8
      Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h
  10. 0
    8
      Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h
  11. 0
    8
      Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h
  12. 0
    8
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h
  13. 0
    8
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
  14. 0
    8
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
  15. 0
    4
      Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
  16. 0
    8
      Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h
  17. 0
    8
      Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
  18. 0
    8
      Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
  19. 0
    8
      Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
  20. 0
    8
      Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h
  21. 0
    8
      Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h
  22. 0
    8
      Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
  23. 0
    8
      Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h
  24. 0
    8
      Marlin/src/pins/lpc1769/pins_BTT_SKR_V1_4_TURBO.h
  25. 0
    8
      Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h
  26. 0
    8
      Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h
  27. 0
    8
      Marlin/src/pins/lpc1769/pins_MKS_SGEN.h
  28. 0
    8
      Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h
  29. 0
    8
      Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h

+ 2
- 2
Marlin/src/HAL/DUE/EepromEmulation.cpp View File

@@ -992,7 +992,7 @@ void eeprom_write_byte(uint8_t* addr, uint8_t value) {
992 992
   ee_Write((uint32_t)addr, value);
993 993
 }
994 994
 
995
-void eeprom_update_block(const void* __src, void* __dst, size_t __n) {
995
+void eeprom_update_block(const void *__src, void *__dst, size_t __n) {
996 996
   uint8_t* dst = (uint8_t*)__dst;
997 997
   const uint8_t* src = (const uint8_t*)__src;
998 998
   while (__n--) {
@@ -1002,7 +1002,7 @@ void eeprom_update_block(const void* __src, void* __dst, size_t __n) {
1002 1002
   }
1003 1003
 }
1004 1004
 
1005
-void eeprom_read_block(void* __dst, const void* __src, size_t __n) {
1005
+void eeprom_read_block(void *__dst, const void *__src, size_t __n) {
1006 1006
   uint8_t* dst = (uint8_t*)__dst;
1007 1007
   uint8_t* src = (uint8_t*)__src;
1008 1008
   while (__n--) {

+ 86
- 0
Marlin/src/HAL/LPC1768/eeprom_wired.cpp View File

@@ -0,0 +1,86 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+/**
24
+ * I2C/SPI EEPROM interface for LPC1768
25
+ */
26
+
27
+#ifdef TARGET_LPC1768
28
+
29
+#include "../../inc/MarlinConfig.h"
30
+
31
+#if USE_WIRED_EEPROM
32
+
33
+#include "../shared/eeprom_api.h"
34
+#include <Wire.h>
35
+
36
+#ifndef EEPROM_SIZE
37
+  #define EEPROM_SIZE           0x8000 // 32kB‬
38
+#endif
39
+
40
+bool PersistentStore::access_start() {
41
+  TERN_(SPI_EEPROM, eeprom_init());
42
+  return true;
43
+}
44
+
45
+bool PersistentStore::access_finish() { return true; }
46
+
47
+bool PersistentStore::write_data(int &pos, const uint8_t *value, size_t size, uint16_t *crc) {
48
+  while (size--) {
49
+    uint8_t v = *value;
50
+
51
+    // EEPROM has only ~100,000 write cycles,
52
+    // so only write bytes that have changed!
53
+    uint8_t * const p = (uint8_t * const)pos;
54
+    if (v != eeprom_read_byte(p)) {
55
+      eeprom_write_byte(p, v);
56
+      if (eeprom_read_byte(p) != v) {
57
+        SERIAL_ECHO_MSG(STR_ERR_EEPROM_WRITE);
58
+        return true;
59
+      }
60
+    }
61
+
62
+    crc16(crc, &v, 1);
63
+    pos++;
64
+    value++;
65
+  };
66
+
67
+  return false;
68
+}
69
+
70
+bool PersistentStore::read_data(int &pos, uint8_t* value, size_t size, uint16_t *crc, const bool writing/*=true*/) {
71
+  do {
72
+    // Read from external EEPROM
73
+    const uint8_t c = eeprom_read_byte((uint8_t*)pos);
74
+
75
+    if (writing) *value = c;
76
+    crc16(crc, &c, 1);
77
+    pos++;
78
+    value++;
79
+  } while (--size);
80
+  return false;
81
+}
82
+
83
+size_t PersistentStore::capacity() { return EEPROM_SIZE; }
84
+
85
+#endif // USE_WIRED_EEPROM
86
+#endif // TARGET_LPC1768

+ 3
- 14
Marlin/src/HAL/STM32/eeprom_wired.cpp View File

@@ -28,13 +28,8 @@
28 28
 
29 29
 #include "../shared/eeprom_api.h"
30 30
 
31
-bool PersistentStore::access_start() {
32
-  return true;
33
-}
34
-
35
-bool PersistentStore::access_finish() {
36
-  return true;
37
-}
31
+bool PersistentStore::access_start()  { return true; }
32
+bool PersistentStore::access_finish() { return true; }
38 33
 
39 34
 bool PersistentStore::write_data(int &pos, const uint8_t *value, size_t size, uint16_t *crc) {
40 35
   while (size--) {
@@ -84,13 +79,7 @@ bool PersistentStore::read_data(int &pos, uint8_t* value, size_t size, uint16_t
84 79
 }
85 80
 
86 81
 size_t PersistentStore::capacity() {
87
-  return (
88
-    #if USE_WIRED_EEPROM
89
-      E2END + 1
90
-    #else
91
-      4096 // 4kB
92
-    #endif
93
-  );
82
+  return TERN(USE_WIRED_EEPROM, E2END + 1, 4096); // 4K for emulated
94 83
 }
95 84
 
96 85
 #endif // USE_WIRED_EEPROM || SRAM_EEPROM_EMULATION

+ 1
- 1
Marlin/src/HAL/STM32/inc/Conditionals_post.h View File

@@ -21,7 +21,7 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-// If no real EEPROM, Flash emulation, or SRAM emulation is available fall back to SD emulation
24
+// If no real or emulated EEPROM selected, fall back to SD emulation
25 25
 #if USE_FALLBACK_EEPROM
26 26
   #define SDCARD_EEPROM_EMULATION
27 27
 #endif

+ 3
- 3
Marlin/src/HAL/STM32_F4_F7/EmulatedEeprom.cpp View File

@@ -80,7 +80,7 @@ void eeprom_write_byte(uint8_t *pos, unsigned char value) {
80 80
   HAL_FLASH_Unlock();
81 81
   __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR |FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
82 82
 
83
-  uint16_t eeprom_address = unsigned(pos);
83
+  const unsigned eeprom_address = (unsigned)pos;
84 84
   if (EE_WriteVariable(eeprom_address, uint16_t(value)) != EE_OK)
85 85
     for (;;) HAL_Delay(1); // Spin forever until watchdog reset
86 86
 
@@ -91,7 +91,7 @@ uint8_t eeprom_read_byte(uint8_t *pos) {
91 91
   eeprom_init();
92 92
 
93 93
   uint16_t data = 0xFF;
94
-  uint16_t eeprom_address = unsigned(pos);
94
+  const unsigned eeprom_address = (unsigned)pos;
95 95
   (void)EE_ReadVariable(eeprom_address, &data); // Data unchanged on error
96 96
 
97 97
   return uint8_t(data);
@@ -101,7 +101,7 @@ void eeprom_read_block(void *__dst, const void *__src, size_t __n) {
101 101
   eeprom_init();
102 102
 
103 103
   uint16_t data = 0xFF;
104
-  uint16_t eeprom_address = unsigned(__src);
104
+  const unsigned eeprom_address = (unsigned)__src;
105 105
   LOOP_L_N(c, __n) {
106 106
     EE_ReadVariable(eeprom_address+c, &data);
107 107
     *((uint8_t*)__dst + c) = data;

+ 1
- 0
Marlin/src/HAL/STM32_F4_F7/inc/Conditionals_post.h View File

@@ -26,4 +26,5 @@
26 26
   #undef SRAM_EEPROM_EMULATION
27 27
   #undef SDCARD_EEPROM_EMULATION
28 28
   #define FLASH_EEPROM_EMULATION
29
+  #warning "Forcing use of FLASH_EEPROM_EMULATION."
29 30
 #endif

+ 30
- 24
Marlin/src/HAL/shared/eeprom_i2c.cpp View File

@@ -35,44 +35,50 @@
35 35
 #include "../HAL.h"
36 36
 #include <Wire.h>
37 37
 
38
+#ifndef EEPROM_WRITE_DELAY
39
+  #define EEPROM_WRITE_DELAY    5
40
+#endif
41
+
38 42
 // ------------------------
39 43
 // Private Variables
40 44
 // ------------------------
41 45
 
42
-static constexpr uint8_t eeprom_device_address = I2C_ADDRESS(0x50);
46
+#ifndef EEPROM_DEVICE_ADDRESS
47
+  #define EEPROM_DEVICE_ADDRESS  0x50
48
+#endif
49
+
50
+static constexpr uint8_t eeprom_device_address = I2C_ADDRESS(EEPROM_DEVICE_ADDRESS);
43 51
 
44 52
 // ------------------------
45 53
 // Public functions
46 54
 // ------------------------
47 55
 
48
-static void eeprom_init() {
49
-  Wire.begin();
50
-}
56
+static void eeprom_init() { Wire.begin(); }
51 57
 
52 58
 void eeprom_write_byte(uint8_t *pos, unsigned char value) {
53
-  unsigned eeprom_address = (unsigned) pos;
54
-
55
-  eeprom_init();
59
+  const unsigned eeprom_address = (unsigned)pos;
56 60
 
57 61
   Wire.beginTransmission(eeprom_device_address);
58
-  Wire.write((int)(eeprom_address >> 8));   // MSB
59
-  Wire.write((int)(eeprom_address & 0xFF)); // LSB
62
+  Wire.write(int(eeprom_address >> 8));   // MSB
63
+  Wire.write(int(eeprom_address & 0xFF)); // LSB
60 64
   Wire.write(value);
61 65
   Wire.endTransmission();
62 66
 
63 67
   // wait for write cycle to complete
64 68
   // this could be done more efficiently with "acknowledge polling"
65
-  delay(5);
69
+  delay(EEPROM_WRITE_DELAY);
66 70
 }
67 71
 
68 72
 // WARNING: address is a page address, 6-bit end will wrap around
69 73
 // also, data can be maximum of about 30 bytes, because the Wire library has a buffer of 32 bytes
70
-void eeprom_update_block(const void *pos, void* eeprom_address, size_t n) {
74
+void eeprom_update_block(const void *pos, void *__dst, size_t n) {
75
+  const unsigned eeprom_address = (unsigned)__dst;
76
+
71 77
   eeprom_init();
72 78
 
73 79
   Wire.beginTransmission(eeprom_device_address);
74
-  Wire.write((int)((unsigned)eeprom_address >> 8));   // MSB
75
-  Wire.write((int)((unsigned)eeprom_address & 0xFF)); // LSB
80
+  Wire.write(int(eeprom_address >> 8));   // MSB
81
+  Wire.write(int(eeprom_address & 0xFF)); // LSB
76 82
   Wire.endTransmission();
77 83
 
78 84
   uint8_t *ptr = (uint8_t*)pos;
@@ -83,37 +89,37 @@ void eeprom_update_block(const void *pos, void* eeprom_address, size_t n) {
83 89
 
84 90
   if (flag) {
85 91
     Wire.beginTransmission(eeprom_device_address);
86
-    Wire.write((int)((unsigned)eeprom_address >> 8));   // MSB
87
-    Wire.write((int)((unsigned)eeprom_address & 0xFF)); // LSB
92
+    Wire.write(int(eeprom_address >> 8));   // MSB
93
+    Wire.write(int(eeprom_address & 0xFF)); // LSB
88 94
     Wire.write((uint8_t*)pos, n);
89 95
     Wire.endTransmission();
90 96
 
91 97
     // wait for write cycle to complete
92 98
     // this could be done more efficiently with "acknowledge polling"
93
-    delay(5);
99
+    delay(EEPROM_WRITE_DELAY);
94 100
   }
95 101
 }
96 102
 
97 103
 uint8_t eeprom_read_byte(uint8_t *pos) {
98
-  unsigned eeprom_address = (unsigned)pos;
99
-
100
-  eeprom_init();
104
+  const unsigned eeprom_address = (unsigned)pos;
101 105
 
102 106
   Wire.beginTransmission(eeprom_device_address);
103
-  Wire.write((int)(eeprom_address >> 8));   // MSB
104
-  Wire.write((int)(eeprom_address & 0xFF)); // LSB
107
+  Wire.write(int(eeprom_address >> 8));   // MSB
108
+  Wire.write(int(eeprom_address & 0xFF)); // LSB
105 109
   Wire.endTransmission();
106 110
   Wire.requestFrom(eeprom_device_address, (byte)1);
107 111
   return Wire.available() ? Wire.read() : 0xFF;
108 112
 }
109 113
 
110 114
 // Don't read more than 30..32 bytes at a time!
111
-void eeprom_read_block(void* pos, const void* eeprom_address, size_t n) {
115
+void eeprom_read_block(void* pos, const void *__dst, size_t n) {
116
+  const unsigned eeprom_address = (unsigned)__dst;
117
+
112 118
   eeprom_init();
113 119
 
114 120
   Wire.beginTransmission(eeprom_device_address);
115
-  Wire.write((int)((unsigned)eeprom_address >> 8));   // MSB
116
-  Wire.write((int)((unsigned)eeprom_address & 0xFF)); // LSB
121
+  Wire.write(int(eeprom_address >> 8));   // MSB
122
+  Wire.write(int(eeprom_address & 0xFF)); // LSB
117 123
   Wire.endTransmission();
118 124
   Wire.requestFrom(eeprom_device_address, (byte)n);
119 125
   for (byte c = 0; c < n; c++ )

+ 6
- 2
Marlin/src/HAL/shared/eeprom_spi.cpp View File

@@ -35,6 +35,10 @@
35 35
 #define CMD_READ  2   // WRITE
36 36
 #define CMD_WRITE 2   // WRITE
37 37
 
38
+#ifndef EEPROM_WRITE_DELAY
39
+  #define EEPROM_WRITE_DELAY    7
40
+#endif
41
+
38 42
 uint8_t eeprom_read_byte(uint8_t* pos) {
39 43
   uint8_t v;
40 44
   uint8_t eeprom_temp[3];
@@ -90,7 +94,7 @@ void eeprom_write_byte(uint8_t* pos, uint8_t value) {
90 94
 
91 95
   spiSend(SPI_CHAN_EEPROM1, value);
92 96
   WRITE(SPI_EEPROM1_CS, HIGH);
93
-  delay(7);   // wait for page write to complete
97
+  delay(EEPROM_WRITE_DELAY);   // wait for page write to complete
94 98
 }
95 99
 
96 100
 void eeprom_update_block(const void* src, void* eeprom_address, size_t n) {
@@ -112,7 +116,7 @@ void eeprom_update_block(const void* src, void* eeprom_address, size_t n) {
112 116
 
113 117
   spiSend(SPI_CHAN_EEPROM1, (const uint8_t*)src, n);
114 118
   WRITE(SPI_EEPROM1_CS, HIGH);
115
-  delay(7);   // wait for page write to complete
119
+  delay(EEPROM_WRITE_DELAY);   // wait for page write to complete
116 120
 }
117 121
 
118 122
 #endif // SPI_EEPROM

+ 0
- 8
Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h View File

@@ -32,14 +32,6 @@
32 32
 #define BOARD_INFO_NAME "AZSMZ MINI"
33 33
 
34 34
 //
35
-// EEPROM
36
-//
37
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
38
-  #define FLASH_EEPROM_EMULATION
39
-  //#define SDCARD_EEPROM_EMULATION
40
-#endif
41
-
42
-//
43 35
 // Servos
44 36
 //
45 37
 #define SERVO0_PIN                         P1_23

+ 0
- 8
Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h View File

@@ -39,14 +39,6 @@
39 39
 #endif
40 40
 
41 41
 //
42
-// EEPROM
43
-//
44
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
45
-  #define FLASH_EEPROM_EMULATION
46
-  //#define SDCARD_EEPROM_EMULATION
47
-#endif
48
-
49
-//
50 42
 // Limit Switches
51 43
 //
52 44
 #define X_MIN_PIN                          P1_24  // 10k pullup to 3.3V, 1K series

+ 0
- 8
Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h View File

@@ -37,14 +37,6 @@
37 37
 #define BOARD_INFO_NAME "BIQU BQ111-A4"
38 38
 
39 39
 //
40
-// EEPROM
41
-//
42
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
43
-  #define FLASH_EEPROM_EMULATION
44
-  //#define SDCARD_EEPROM_EMULATION
45
-#endif
46
-
47
-//
48 40
 // Limit Switches
49 41
 //
50 42
 #define X_MIN_PIN                          P1_24  // 10k pullup to 3.3V, 1K series

+ 0
- 8
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h View File

@@ -24,14 +24,6 @@
24 24
 #define BOARD_INFO_NAME "BIGTREE SKR 1.1"
25 25
 
26 26
 //
27
-// EEPROM
28
-//
29
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
30
-  #define FLASH_EEPROM_EMULATION
31
-  //#define SDCARD_EEPROM_EMULATION
32
-#endif
33
-
34
-//
35 27
 // Limit Switches
36 28
 //
37 29
 

+ 0
- 8
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h View File

@@ -24,14 +24,6 @@
24 24
 #define BOARD_INFO_NAME "BIGTREE SKR 1.3"
25 25
 
26 26
 //
27
-// EEPROM
28
-//
29
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
30
-  #define FLASH_EEPROM_EMULATION
31
-  //#define SDCARD_EEPROM_EMULATION
32
-#endif
33
-
34
-//
35 27
 // Trinamic Stallguard pins
36 28
 //
37 29
 #define X_DIAG_PIN                         P1_29  // X-

+ 0
- 8
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h View File

@@ -26,14 +26,6 @@
26 26
 #endif
27 27
 
28 28
 //
29
-// EEPROM
30
-//
31
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
32
-  #define FLASH_EEPROM_EMULATION
33
-  //#define SDCARD_EEPROM_EMULATION
34
-#endif
35
-
36
-//
37 29
 // SD Connection
38 30
 //
39 31
 #ifndef SDCARD_CONNECTION

+ 0
- 4
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h View File

@@ -32,10 +32,6 @@
32 32
 // Ignore temp readings during development.
33 33
 //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
34 34
 
35
-#if DISABLED(SDCARD_EEPROM_EMULATION)
36
-  #define FLASH_EEPROM_EMULATION
37
-#endif
38
-
39 35
 //
40 36
 // Steppers
41 37
 //

+ 0
- 8
Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h View File

@@ -31,14 +31,6 @@
31 31
 //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
32 32
 
33 33
 //
34
-// EEPROM
35
-//
36
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
37
-  #define FLASH_EEPROM_EMULATION
38
-  //#define SDCARD_EEPROM_EMULATION
39
-#endif
40
-
41
-//
42 34
 // Enable 12MHz clock output on P1.27 pin to sync TMC2208 chip clocks
43 35
 //
44 36
 #define LPC1768_ENABLE_CLKOUT_12M

+ 0
- 8
Marlin/src/pins/lpc1768/pins_MKS_SBASE.h View File

@@ -38,14 +38,6 @@
38 38
   #define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SBASE"
39 39
 #endif
40 40
 
41
-//
42
-// EEPROM
43
-//
44
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
45
-  #define FLASH_EEPROM_EMULATION
46
-  //#define SDCARD_EEPROM_EMULATION
47
-#endif
48
-
49 41
 #define LED_PIN                            P1_18  // Used as a status indicator
50 42
 #define LED2_PIN                           P1_19
51 43
 #define LED3_PIN                           P1_20

+ 0
- 8
Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h View File

@@ -33,14 +33,6 @@
33 33
 #define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN_L"
34 34
 
35 35
 //
36
-// EEPROM
37
-//
38
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
39
-  #define FLASH_EEPROM_EMULATION
40
-  //#define SDCARD_EEPROM_EMULATION
41
-#endif
42
-
43
-//
44 36
 // Servos
45 37
 //
46 38
 #define SERVO0_PIN                         P1_23  // SERVO P1.23

+ 0
- 8
Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h View File

@@ -43,14 +43,6 @@
43 43
 #define BOARD_INFO_NAME "Re-ARM RAMPS 1.4"
44 44
 
45 45
 //
46
-// EEPROM
47
-//
48
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
49
-  #define FLASH_EEPROM_EMULATION
50
-  //#define SDCARD_EEPROM_EMULATION
51
-#endif
52
-
53
-//
54 46
 // Servos
55 47
 //
56 48
 #define SERVO0_PIN                         P1_20  // (11)

+ 0
- 8
Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h View File

@@ -33,14 +33,6 @@
33 33
 #define BOARD_WEBSITE_URL "github.com/Ales2-k/Selena"
34 34
 
35 35
 //
36
-// EEPROM
37
-//
38
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
39
-  #define FLASH_EEPROM_EMULATION
40
-  //#define SDCARD_EEPROM_EMULATION
41
-#endif
42
-
43
-//
44 36
 // Servos
45 37
 //
46 38
 #define SERVO0_PIN                         P1_23

+ 0
- 8
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h View File

@@ -33,14 +33,6 @@
33 33
 #define BOARD_WEBSITE_URL "tinyurl.com/yx8tdqa3"
34 34
 
35 35
 //
36
-// EEPROM
37
-//
38
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
39
-  #define FLASH_EEPROM_EMULATION
40
-  //#define SDCARD_EEPROM_EMULATION
41
-#endif
42
-
43
-//
44 36
 // Servos
45 37
 //
46 38
 #define SERVO0_PIN                         P1_23

+ 0
- 8
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h View File

@@ -188,14 +188,6 @@
188 188
 #endif // HAS_SPI_LCD
189 189
 
190 190
 //
191
-// EEPROM
192
-//
193
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
194
-  #define FLASH_EEPROM_EMULATION
195
-  //#define SDCARD_EEPROM_EMULATION
196
-#endif
197
-
198
-//
199 191
 // SD Support
200 192
 //
201 193
 #ifndef SDCARD_CONNECTION

+ 0
- 8
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h View File

@@ -32,14 +32,6 @@
32 32
 #define BOARD_INFO_NAME "Azteeg X5 MINI WIFI"
33 33
 
34 34
 //
35
-// EEPROM
36
-//
37
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
38
-  #define FLASH_EEPROM_EMULATION
39
-  //#define SDCARD_EEPROM_EMULATION
40
-#endif
41
-
42
-//
43 35
 // DIGIPOT slave addresses
44 36
 //
45 37
 #ifndef DIGIPOT_I2C_ADDRESS_A

+ 0
- 8
Marlin/src/pins/lpc1769/pins_BTT_SKR_V1_4_TURBO.h View File

@@ -25,14 +25,6 @@
25 25
 #define SKR_HAS_LPC1769
26 26
 
27 27
 //
28
-// EEPROM
29
-//
30
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
31
-  #define FLASH_EEPROM_EMULATION
32
-  //#define SDCARD_EEPROM_EMULATION
33
-#endif
34
-
35
-//
36 28
 // Include SKR 1.4 pins
37 29
 //
38 30
 #include "../lpc1768/pins_BTT_SKR_V1_4.h"

+ 0
- 8
Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h View File

@@ -32,14 +32,6 @@
32 32
 #define BOARD_INFO_NAME "Cohesion3D Mini"
33 33
 
34 34
 //
35
-// EEPROM
36
-//
37
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
38
-  #define FLASH_EEPROM_EMULATION
39
-  //#define SDCARD_EEPROM_EMULATION
40
-#endif
41
-
42
-//
43 35
 // Servos
44 36
 //
45 37
 #define SERVO0_PIN                         P1_23

+ 0
- 8
Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h View File

@@ -32,14 +32,6 @@
32 32
 #define BOARD_INFO_NAME "Cohesion3D ReMix"
33 33
 
34 34
 //
35
-// EEPROM
36
-//
37
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
38
-  #define FLASH_EEPROM_EMULATION
39
-  //#define SDCARD_EEPROM_EMULATION
40
-#endif
41
-
42
-//
43 35
 // Servos
44 36
 //
45 37
 #define SERVO0_PIN                         P2_04

+ 0
- 8
Marlin/src/pins/lpc1769/pins_MKS_SGEN.h View File

@@ -32,14 +32,6 @@
32 32
 #define BOARD_INFO_NAME   "MKS SGen"
33 33
 #define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN"
34 34
 
35
-//
36
-// EEPROM
37
-//
38
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
39
-  #define FLASH_EEPROM_EMULATION
40
-  //#define SDCARD_EEPROM_EMULATION
41
-#endif
42
-
43 35
 #define MKS_HAS_LPC1769
44 36
 #include "../lpc1768/pins_MKS_SBASE.h"
45 37
 

+ 0
- 8
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h View File

@@ -33,14 +33,6 @@
33 33
 #define BOARD_WEBSITE_URL "smoothieware.org/smoothieboard"
34 34
 
35 35
 //
36
-// EEPROM
37
-//
38
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
39
-  #define FLASH_EEPROM_EMULATION
40
-  //#define SDCARD_EEPROM_EMULATION
41
-#endif
42
-
43
-//
44 36
 // Servos
45 37
 //
46 38
 #define SERVO0_PIN                         P1_23

+ 0
- 8
Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h View File

@@ -33,14 +33,6 @@
33 33
 #define BOARD_WEBSITE_URL "th3dstudio.com"
34 34
 
35 35
 //
36
-// EEPROM
37
-//
38
-#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
39
-  #define FLASH_EEPROM_EMULATION
40
-  //#define SDCARD_EEPROM_EMULATION
41
-#endif
42
-
43
-//
44 36
 // Servos
45 37
 //
46 38
 #define SERVO0_PIN                         P2_04

Loading…
Cancel
Save