Browse Source

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 years ago
parent
commit
8a24ff94d1
3 changed files with 13 additions and 13 deletions
  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 View File

252
 //
252
 //
253
 
253
 
254
 #elif MB(TEENSYLU)
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
 #elif MB(PRINTRBOARD)
256
 #elif MB(PRINTRBOARD)
257
-  #include "pins_PRINTRBOARD.h"       // AT90USB1286                                env:at90USB1286_DFU
257
+  #include "pins_PRINTRBOARD.h"       // AT90USB1286                                env:at90usb1286_dfu
258
 #elif MB(PRINTRBOARD_REVF)
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
 #elif MB(BRAINWAVE)
260
 #elif MB(BRAINWAVE)
261
-  #include "pins_BRAINWAVE.h"         // AT90USB646                                 env:at90USB1286_CDC
261
+  #include "pins_BRAINWAVE.h"         // AT90USB646                                 env:at90usb1286_cdc
262
 #elif MB(BRAINWAVE_PRO)
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
 #elif MB(SAV_MKI)
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
 #elif MB(TEENSY2)
266
 #elif MB(TEENSY2)
267
   #include "pins_TEENSY2.h"           // AT90USB1286                                env:teensy20
267
   #include "pins_TEENSY2.h"           // AT90USB1286                                env:teensy20
268
 #elif MB(5DPRINT)
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
 // LPC1768 ARM Cortex M3
272
 // LPC1768 ARM Cortex M3

buildroot/share/PlatformIO/boards/at90USB1286.json → buildroot/share/PlatformIO/boards/at90usb1286.json View File

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

+ 4
- 4
platformio.ini View File

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

Loading…
Cancel
Save