Bläddra i källkod

AT90USB1286 PIO cleanup and optimization (#11230)

-normalize `env` and `board` to lowercase naming convention.
-make board `name` follow descriptive convention.
-implement `-fsingle-precision-constant` compile optimization per https://github.com/MarlinFirmware/Marlin/pull/11178#issuecomment-401673901
-fix typo in 5DPRINT entry.
Dave Johnson 6 år sedan
förälder
incheckning
8a24ff94d1
3 ändrade filer med 13 tillägg och 13 borttagningar
  1. 7
    7
      Marlin/src/pins/pins.h
  2. 2
    2
      buildroot/share/PlatformIO/boards/at90usb1286.json
  3. 4
    4
      platformio.ini

+ 7
- 7
Marlin/src/pins/pins.h Visa fil

@@ -252,21 +252,21 @@
252 252
 //
253 253
 
254 254
 #elif MB(TEENSYLU)
255
-  #include "pins_TEENSYLU.h"          // AT90USB1286, AT90USB1286P                  env:at90USB1286_CDC
255
+  #include "pins_TEENSYLU.h"          // AT90USB1286, AT90USB1286P                  env:at90usb1286_cdc
256 256
 #elif MB(PRINTRBOARD)
257
-  #include "pins_PRINTRBOARD.h"       // AT90USB1286                                env:at90USB1286_DFU
257
+  #include "pins_PRINTRBOARD.h"       // AT90USB1286                                env:at90usb1286_dfu
258 258
 #elif MB(PRINTRBOARD_REVF)
259
-  #include "pins_PRINTRBOARD_REVF.h"  // AT90USB1286                                env:at90USB1286_DFU
259
+  #include "pins_PRINTRBOARD_REVF.h"  // AT90USB1286                                env:at90usb1286_dfu
260 260
 #elif MB(BRAINWAVE)
261
-  #include "pins_BRAINWAVE.h"         // AT90USB646                                 env:at90USB1286_CDC
261
+  #include "pins_BRAINWAVE.h"         // AT90USB646                                 env:at90usb1286_cdc
262 262
 #elif MB(BRAINWAVE_PRO)
263
-  #include "pins_BRAINWAVE_PRO.h"     // AT90USB1286                                env:at90USB1286_CDC
263
+  #include "pins_BRAINWAVE_PRO.h"     // AT90USB1286                                env:at90usb1286_cdc
264 264
 #elif MB(SAV_MKI)
265
-  #include "pins_SAV_MKI.h"           // AT90USB1286                                env:at90USB1286_CDC
265
+  #include "pins_SAV_MKI.h"           // AT90USB1286                                env:at90usb1286_cdc
266 266
 #elif MB(TEENSY2)
267 267
   #include "pins_TEENSY2.h"           // AT90USB1286                                env:teensy20
268 268
 #elif MB(5DPRINT)
269
-  #include "pins_5DPRINT.h"           // AT90USB1286                                ?env:at90USB1286_DFU
269
+  #include "pins_5DPRINT.h"           // AT90USB1286                                env:at90usb1286_dfu
270 270
 
271 271
 //
272 272
 // LPC1768 ARM Cortex M3

buildroot/share/PlatformIO/boards/at90USB1286.json → buildroot/share/PlatformIO/boards/at90usb1286.json Visa fil

@@ -1,14 +1,14 @@
1 1
 {
2 2
   "build": {
3 3
     "core": "teensy",
4
-    "extra_flags": "-DTEENSY2PP",
4
+    "extra_flags": "-DTEENSY2PP  -fsingle-precision-constant",
5 5
     "f_cpu": "16000000L",
6 6
     "mcu": "at90usb1286"
7 7
   },
8 8
   "frameworks": [
9 9
     "arduino"
10 10
   ],
11
-  "name": "at90USB1286.json",
11
+  "name": "Atmel AT90USB1286 based",
12 12
   "upload": {
13 13
     "maximum_ram_size": 8192,
14 14
     "maximum_size": 122880,

+ 4
- 4
platformio.ini Visa fil

@@ -81,10 +81,10 @@ monitor_speed     = 250000
81 81
 # - SAV_MKI
82 82
 # - TEENSYLU
83 83
 #
84
-[env:at90USB1286_CDC]
84
+[env:at90usb1286_cdc]
85 85
 platform      = teensy
86 86
 framework     = arduino
87
-board         = at90USB1286
87
+board         = at90usb1286
88 88
 build_flags   = ${common.build_flags}
89 89
 lib_deps      = ${common.lib_deps}
90 90
 lib_ldf_mode  = deep+
@@ -98,10 +98,10 @@ monitor_speed = 250000
98 98
 # - PrintrBoard Rev.F
99 99
 # - ? 5DPRINT ?
100 100
 #
101
-[env:at90USB1286_DFU]
101
+[env:at90usb1286_dfu]
102 102
 platform      = teensy
103 103
 framework     = arduino
104
-board         = at90USB1286
104
+board         = at90usb1286
105 105
 build_flags   = ${common.build_flags}
106 106
 lib_deps      = ${common.lib_deps}
107 107
 lib_ldf_mode  = deep+

Laddar…
Avbryt
Spara