Skip to content

Commit b788ad5

Browse files
committed
Distinguishing those boards with eight analog inputs (Fio, BT, Nano, Mini).
http://code.google.com/p/arduino/issues/detail?id=499
1 parent d00f094 commit b788ad5

File tree

2 files changed

+75
-6
lines changed

2 files changed

+75
-6
lines changed

hardware/arduino/boards.txt

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ uno.build.variant=standard
1818

1919
##############################################################
2020

21-
atmega328.name=Arduino Duemilanove or Nano w/ ATmega328
21+
atmega328.name=Arduino Duemilanove w/ ATmega328
2222

2323
atmega328.upload.protocol=stk500
2424
atmega328.upload.maximum_size=30720
@@ -39,7 +39,7 @@ atmega328.build.variant=standard
3939

4040
##############################################################
4141

42-
diecimila.name=Arduino Diecimila, Duemilanove, or Nano w/ ATmega168
42+
diecimila.name=Arduino Diecimila or Duemilanove w/ ATmega168
4343

4444
diecimila.upload.protocol=stk500
4545
diecimila.upload.maximum_size=14336
@@ -60,6 +60,48 @@ diecimila.build.variant=standard
6060

6161
##############################################################
6262

63+
nano328.name=Arduino Nano w/ ATmega328
64+
65+
nano328.upload.protocol=stk500
66+
nano328.upload.maximum_size=30720
67+
nano328.upload.speed=57600
68+
69+
nano328.bootloader.low_fuses=0xFF
70+
nano328.bootloader.high_fuses=0xDA
71+
nano328.bootloader.extended_fuses=0x05
72+
nano328.bootloader.path=atmega
73+
nano328.bootloader.file=ATmegaBOOT_168_atmega328.hex
74+
nano328.bootloader.unlock_bits=0x3F
75+
nano328.bootloader.lock_bits=0x0F
76+
77+
nano328.build.mcu=atmega328p
78+
nano328.build.f_cpu=16000000L
79+
nano328.build.core=arduino
80+
nano328.build.variant=eightanaloginputs
81+
82+
##############################################################
83+
84+
nano.name=Arduino Nano w/ ATmega168
85+
86+
nano.upload.protocol=stk500
87+
nano.upload.maximum_size=14336
88+
nano.upload.speed=19200
89+
90+
nano.bootloader.low_fuses=0xff
91+
nano.bootloader.high_fuses=0xdd
92+
nano.bootloader.extended_fuses=0x00
93+
nano.bootloader.path=atmega
94+
nano.bootloader.file=ATmegaBOOT_168_diecimila.hex
95+
nano.bootloader.unlock_bits=0x3F
96+
nano.bootloader.lock_bits=0x0F
97+
98+
nano.build.mcu=atmega168
99+
nano.build.f_cpu=16000000L
100+
nano.build.core=arduino
101+
nano.build.variant=eightanaloginputs
102+
103+
##############################################################
104+
63105
mega2560.name=Arduino Mega 2560
64106

65107
mega2560.upload.protocol=stk500v2
@@ -119,7 +161,7 @@ mini.bootloader.lock_bits=0x0F
119161
mini.build.mcu=atmega168
120162
mini.build.f_cpu=16000000L
121163
mini.build.core=arduino
122-
mini.build.variant=standard
164+
mini.build.variant=eightanaloginputs
123165

124166
##############################################################
125167

@@ -140,7 +182,7 @@ fio.bootloader.lock_bits=0x0F
140182
fio.build.mcu=atmega328p
141183
fio.build.f_cpu=8000000L
142184
fio.build.core=arduino
143-
fio.build.variant=standard
185+
fio.build.variant=eightanaloginputs
144186

145187
##############################################################
146188

@@ -162,7 +204,7 @@ bt328.bootloader.lock_bits=0x0F
162204
bt328.build.mcu=atmega328p
163205
bt328.build.f_cpu=16000000L
164206
bt328.build.core=arduino
165-
bt328.build.variant=standard
207+
bt328.build.variant=eightanaloginputs
166208

167209
##############################################################
168210

@@ -184,7 +226,7 @@ bt.bootloader.lock_bits=0x0F
184226
bt.build.mcu=atmega168
185227
bt.build.f_cpu=16000000L
186228
bt.build.core=arduino
187-
bt.build.variant=standard
229+
bt.build.variant=eightanaloginputs
188230

189231
##############################################################
190232

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
pins_arduino.h - Pin definition functions for Arduino
3+
Part of Arduino - http://www.arduino.cc/
4+
5+
Copyright (c) 2007 David A. Mellis
6+
7+
This library is free software; you can redistribute it and/or
8+
modify it under the terms of the GNU Lesser General Public
9+
License as published by the Free Software Foundation; either
10+
version 2.1 of the License, or (at your option) any later version.
11+
12+
This library is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+
Lesser General Public License for more details.
16+
17+
You should have received a copy of the GNU Lesser General
18+
Public License along with this library; if not, write to the
19+
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20+
Boston, MA 02111-1307 USA
21+
22+
$Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
23+
*/
24+
25+
#include "../standard/pins_arduino.h"
26+
#undef NUM_ANALOG_INPUTS
27+
#define NUM_ANALOG_INPUTS 8

0 commit comments

Comments
 (0)