Skip to content

Commit 1c1ecb6

Browse files
cmaglieFederico Fissore
authored and
Federico Fissore
committed
Added support to Genuino boards (drivers, boards.txt entries, bootloaders)
1 parent f605d1d commit 1c1ecb6

9 files changed

+1879
-5
lines changed
8 KB
Binary file not shown.
+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
;
2+
; Copyright 2015 Arduino LLC (http://www.arduino.cc/)
3+
;
4+
; Developed by Zach Eveland, Blacklabel Development, Inc.
5+
;
6+
; Arduino is free software; you can redistribute it and/or modify
7+
; it under the terms of the GNU General Public License as published by
8+
; the Free Software Foundation; either version 2 of the License, or
9+
; (at your option) any later version.
10+
;
11+
; This program is distributed in the hope that it will be useful,
12+
; but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
; GNU General Public License for more details.
15+
;
16+
; You should have received a copy of the GNU General Public License
17+
; along with this program; if not, write to the Free Software
18+
; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
;
20+
; As a special exception, you may use this file as part of a free software
21+
; library without restriction. Specifically, if other files instantiate
22+
; templates or use macros or inline functions from this file, or you compile
23+
; this file and link it with other files to produce an executable, this
24+
; file does not by itself cause the resulting executable to be covered by
25+
; the GNU General Public License. This exception does not however
26+
; invalidate any other reasons why the executable file might be covered by
27+
; the GNU General Public License.
28+
;
29+
30+
[Strings]
31+
DriverPackageDisplayName="Genuino USB Driver"
32+
ManufacturerName="Arduino LLC (www.arduino.cc)"
33+
ServiceName="USB RS-232 Emulation Driver"
34+
unoR3.name="Genuino Uno"
35+
mega2560rev3.name="Genuino Mega 2560"
36+
micro.bootloader.name="Genuino Micro bootloader"
37+
micro.sketch.name="Genuino Micro"
38+
39+
[DefaultInstall]
40+
CopyINF=genuino.inf
41+
42+
[Version]
43+
Class=Ports
44+
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
45+
Signature="$Windows NT$"
46+
Provider=%ManufacturerName%
47+
DriverPackageDisplayName=%DriverPackageDisplayName%
48+
CatalogFile=genuino.cat
49+
DriverVer=08/25/2015,1.0.1.0
50+
51+
[Manufacturer]
52+
%ManufacturerName%=DeviceList, NTamd64, NTia64
53+
54+
[DestinationDirs]
55+
FakeModemCopyFileSection=12
56+
DefaultDestDir=12
57+
58+
[DeviceList]
59+
%mega2560rev3.name%=DriverInstall, USB\VID_2341&PID_0242
60+
%micro.bootloader.name%=DriverInstall, USB\VID_2341&PID_0237
61+
%micro.sketch.name%=DriverInstall, USB\VID_2341&PID_8237&MI_00
62+
%unoR3.name%=DriverInstall, USB\VID_2341&PID_0243
63+
64+
[DeviceList.NTamd64]
65+
%mega2560rev3.name%=DriverInstall, USB\VID_2341&PID_0242
66+
%micro.bootloader.name%=DriverInstall, USB\VID_2341&PID_0237
67+
%micro.sketch.name%=DriverInstall, USB\VID_2341&PID_8237&MI_00
68+
%unoR3.name%=DriverInstall, USB\VID_2341&PID_0243
69+
70+
[DeviceList.NTia64]
71+
%mega2560rev3.name%=DriverInstall, USB\VID_2341&PID_0242
72+
%micro.bootloader.name%=DriverInstall, USB\VID_2341&PID_0237
73+
%micro.sketch.name%=DriverInstall, USB\VID_2341&PID_8237&MI_00
74+
%unoR3.name%=DriverInstall, USB\VID_2341&PID_0243
75+
76+
[DriverInstall]
77+
include=mdmcpq.inf,usb.inf
78+
CopyFiles = FakeModemCopyFileSection
79+
AddReg=DriverAddReg
80+
81+
[DriverAddReg]
82+
HKR,,DevLoader,,*ntkern
83+
HKR,,NTMPDriver,,usbser.sys
84+
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
85+
86+
[DriverInstall.Services]
87+
include=mdmcpq.inf
88+
AddService=usbser, 0x00000002, DriverService
89+
90+
[DriverService]
91+
DisplayName=%ServiceName%
92+
ServiceType=1
93+
StartType=3
94+
ErrorControl=1
95+
ServiceBinary=%12%\usbser.sys
96+
LoadOrderGroup=Base
97+

hardware/arduino/avr/boards.txt

+30-5
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,16 @@ yun.build.extra_flags={build.usb_flags}
4646

4747
##############################################################
4848

49-
uno.name=Arduino Uno
49+
uno.name=Arduino/Genuino Uno
5050

5151
uno.vid.0=0x2341
5252
uno.pid.0=0x0043
5353
uno.vid.1=0x2341
5454
uno.pid.1=0x0001
5555
uno.vid.2=0x2A03
5656
uno.pid.2=0x0043
57+
uno.vid.3=0x2341
58+
uno.pid.3=0x0243
5759

5860
uno.upload.tool=avrdude
5961
uno.upload.protocol=arduino
@@ -168,7 +170,7 @@ nano.menu.cpu.atmega168.build.mcu=atmega168
168170

169171
##############################################################
170172

171-
mega.name=Arduino Mega or Mega 2560
173+
mega.name=Arduino/Genuino Mega or Mega 2560
172174

173175
mega.vid.0=0x2341
174176
mega.pid.0=0x0010
@@ -178,6 +180,10 @@ mega.vid.2=0x2A03
178180
mega.pid.2=0x0010
179181
mega.vid.3=0x2A03
180182
mega.pid.3=0x0042
183+
mega.vid.4=0x2341
184+
mega.pid.4=0x0210
185+
mega.vid.5=0x2341
186+
mega.pid.5=0x0242
181187

182188
mega.upload.tool=avrdude
183189
mega.upload.maximum_data_size=8192
@@ -190,10 +196,10 @@ mega.bootloader.lock_bits=0x0F
190196
mega.build.f_cpu=16000000L
191197
mega.build.core=arduino
192198
mega.build.variant=mega
193-
# default board may be overridden by the cpu menu
199+
# default board may be overridden by the cpu menu
194200
mega.build.board=AVR_MEGA2560
195201

196-
## Arduino Mega w/ ATmega2560
202+
## Arduino/Genuino Mega w/ ATmega2560
197203
## -------------------------
198204
mega.menu.cpu.atmega2560=ATmega2560 (Mega 2560)
199205

@@ -297,7 +303,8 @@ leonardo.build.extra_flags={build.usb_flags}
297303

298304
##############################################################
299305

300-
micro.name=Arduino Micro
306+
micro.name=Arduino/Genuino Micro
307+
301308
micro.vid.0=0x2341
302309
micro.pid.0=0x0037
303310
micro.vid.1=0x2341
@@ -307,6 +314,24 @@ micro.pid.2=0x0037
307314
micro.vid.3=0x2A03
308315
micro.pid.3=0x8037
309316

317+
micro.vid.4=0x2341
318+
micro.pid.4=0x0237
319+
# If the board is a 2341:0237 use 2341:8237 for build and set
320+
# other parameters as well
321+
micro.vid.4.build.vid=0x2341
322+
micro.vid.4.build.pid=0x8237
323+
micro.vid.4.build.usb_product="Genuino Micro"
324+
micro.vid.4.bootloader.file=caterina/Caterina-Genuino-Micro.hex
325+
326+
micro.vid.5=0x2341
327+
micro.pid.5=0x8237
328+
# If the board is a 2341:8237 use 2341:8237 for build and set
329+
# other paramters as well
330+
micro.vid.5.build.vid=0x2341
331+
micro.vid.5.build.pid=0x8237
332+
micro.vid.5.build.usb_product="Genuino Micro"
333+
micro.vid.5.bootloader.file=caterina/Caterina-Genuino-Micro.hex
334+
310335
micro.upload.tool=avrdude
311336
micro.upload.protocol=avr109
312337
micro.upload.maximum_size=28672

0 commit comments

Comments
 (0)