Skip to content

Commit

Permalink
Merge branch 'arduino:master' into eeprom
Browse files Browse the repository at this point in the history
  • Loading branch information
jfjlaros authored Aug 3, 2023
2 parents fcb276c + eabd762 commit 73e5775
Show file tree
Hide file tree
Showing 20 changed files with 44 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See: https://github.com/codespell-project/codespell#using-a-config-file
[codespell]
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
ignore-words-list = hart,pullrequest
ignore-words-list = clen,hart,pullrequest
builtin = clear
check-filenames =
check-hidden =
Expand Down
12 changes: 8 additions & 4 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ yun.build.extra_flags={build.usb_flags}

##############################################################

uno.name=Arduino Uno
uno.name=Arduino UNO

uno.vid.0=0x2341
uno.pid.0=0x0043
Expand All @@ -68,6 +68,8 @@ uno.vid.2=0x2A03
uno.pid.2=0x0043
uno.vid.3=0x2341
uno.pid.3=0x0243
uno.vid.4=0x2341
uno.pid.4=0x006A
uno.upload_port.0.vid=0x2341
uno.upload_port.0.pid=0x0043
uno.upload_port.1.vid=0x2341
Expand All @@ -76,7 +78,9 @@ uno.upload_port.2.vid=0x2A03
uno.upload_port.2.pid=0x0043
uno.upload_port.3.vid=0x2341
uno.upload_port.3.pid=0x0243
uno.upload_port.4.board=uno
uno.upload_port.4.vid=0x2341
uno.upload_port.4.pid=0x006A
uno.upload_port.5.board=uno

uno.upload.tool=avrdude
uno.upload.tool.default=avrdude
Expand All @@ -103,7 +107,7 @@ uno.build.variant=standard

##############################################################

unomini.name=Arduino Uno Mini
unomini.name=Arduino UNO Mini

unomini.vid.0=0x2341
unomini.pid.0=0x0062
Expand Down Expand Up @@ -1268,7 +1272,7 @@ one.build.extra_flags={build.usb_flags}

##############################################################

unowifi.name=Arduino Uno WiFi
unowifi.name=Arduino UNO WiFi
unowifi.vid.0=0x2A03
unowifi.pid.0=0x0057
unowifi.upload_port.0.vid=0x2A03
Expand Down
8 changes: 4 additions & 4 deletions bootloaders/atmega/ATmegaBOOT_168.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ int main(void)
UCSR0C = (1<<UCSZ00) | (1<<UCSZ01);

/* Enable internal pull-up resistor on pin D0 (RX), in order
to supress line noise that prevents the bootloader from
to suppress line noise that prevents the bootloader from
timing out (DAM: 20070509) */
DDRD &= ~_BV(PIND0);
PORTD |= _BV(PIND0);
Expand All @@ -408,7 +408,7 @@ int main(void)

#if defined __AVR_ATmega1280__
/* Enable internal pull-up resistor on pin D0 (RX), in order
to supress line noise that prevents the bootloader from
to suppress line noise that prevents the bootloader from
timing out (DAM: 20070509) */
/* feature added to the Arduino Mega --DC: 080930 */
DDRE &= ~_BV(PINE0);
Expand Down Expand Up @@ -447,7 +447,7 @@ int main(void)


/* Request programmer ID */
/* Not using PROGMEM string due to boot block in m128 being beyond 64kB boundry */
/* Not using PROGMEM string due to boot block in m128 being beyond 64kB boundary */
/* Would need to selectively manipulate RAMPZ, and it's only 9 characters anyway so who cares. */
else if(ch=='1') {
if (getch() == ' ') {
Expand Down Expand Up @@ -730,7 +730,7 @@ int main(void)
if (!flags.rampz) putch(pgm_read_byte_near(address.word));
#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega1280__)
else putch(pgm_read_byte_far(address.word + 0x10000));
// Hmmmm, yuck FIXME when m256 arrvies
// Hmmmm, yuck FIXME when m256 arrives
#endif
address.word++;
}
Expand Down
4 changes: 2 additions & 2 deletions bootloaders/atmega8/ATmegaBOOT.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int main(void)
}

/* Request programmer ID */
/* Not using PROGMEM string due to boot block in m128 being beyond 64kB boundry */
/* Not using PROGMEM string due to boot block in m128 being beyond 64kB boundary */
/* Would need to selectively manipulate RAMPZ, and it's only 9 characters anyway so who cares. */
else if(ch=='1') {
if (getch() == ' ') {
Expand Down Expand Up @@ -248,7 +248,7 @@ int main(void)
else if(ch=='P') {
nothing_response();
// FIXME: modified only here by DojoCorp, Mumbai, India, 20050626
//time_count=0; // exted the delay once entered prog.mode
//time_count=0; // extend the delay once entered prog.mode
}

/* Leave programming mode */
Expand Down
4 changes: 2 additions & 2 deletions bootloaders/bt/ATmegaBOOT_168.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ putch(0x0D);


/* Request programmer ID */
/* Not using PROGMEM string due to boot block in m128 being beyond 64kB boundry */
/* Not using PROGMEM string due to boot block in m128 being beyond 64kB boundary */
/* Would need to selectively manipulate RAMPZ, and it's only 9 characters anyway so who cares. */
else if(ch=='1') {
if (getch() == ' ') {
Expand Down Expand Up @@ -727,7 +727,7 @@ putch(0x0D);
if (!flags.rampz) putch(pgm_read_byte_near(address.word));
#if defined __AVR_ATmega128__
else putch(pgm_read_byte_far(address.word + 0x10000));
// Hmmmm, yuck FIXME when m256 arrvies
// Hmmmm, yuck FIXME when m256 arrives
#endif
address.word++;
}
Expand Down
4 changes: 2 additions & 2 deletions bootloaders/caterina-Arduino_Robot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ DEBUG = dwarf-2


# List any extra directories to look for include files here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRAINCDIRS = $(LUFA_PATH)/
Expand Down Expand Up @@ -331,7 +331,7 @@ MATH_LIB = -lm


# List any extra directories to look for libraries here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRALIBDIRS =
Expand Down
4 changes: 2 additions & 2 deletions bootloaders/caterina-LilyPadUSB/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ DEBUG = dwarf-2


# List any extra directories to look for include files here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRAINCDIRS = $(LUFA_PATH)/
Expand Down Expand Up @@ -320,7 +320,7 @@ MATH_LIB = -lm


# List any extra directories to look for libraries here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRALIBDIRS =
Expand Down
4 changes: 2 additions & 2 deletions bootloaders/caterina/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ DEBUG = dwarf-2


# List any extra directories to look for include files here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRAINCDIRS = $(LUFA_PATH)/
Expand Down Expand Up @@ -327,7 +327,7 @@ MATH_LIB = -lm


# List any extra directories to look for libraries here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRALIBDIRS =
Expand Down
4 changes: 2 additions & 2 deletions bootloaders/gemma/avrdude.conf
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
#
# INSTRUCTION FORMATS
#
# Instruction formats are specified as a comma seperated list of
# Instruction formats are specified as a comma separated list of
# string values containing information (bit specifiers) about each
# of the 32 bits of the instruction. Bit specifiers may be one of
# the following formats:
Expand Down Expand Up @@ -365,7 +365,7 @@ programmer
# http://flashrom.org/FT2232SPI_Programmer
#
# The drivers will look for a specific device and use the first one found.
# If you have mulitple devices, then look for unique information (like SN)
# If you have multiple devices, then look for unique information (like SN)
# And fill that in here.
#
# Note that the pin numbers for the main ISP signals (reset, sck,
Expand Down
6 changes: 3 additions & 3 deletions bootloaders/lilypad/src/ATmegaBOOT.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ int main(void)
UCSR0C = (1<<UCSZ00) | (1<<UCSZ01);

/* Enable internal pull-up resistor on pin D0 (RX), in order
to supress line noise that prevents the bootloader from
to suppress line noise that prevents the bootloader from
timing out (DAM: 20070509) */
DDRD &= ~_BV(PIND0);
PORTD |= _BV(PIND0);
Expand Down Expand Up @@ -381,7 +381,7 @@ int main(void)


/* Request programmer ID */
/* Not using PROGMEM string due to boot block in m128 being beyond 64kB boundry */
/* Not using PROGMEM string due to boot block in m128 being beyond 64kB boundary */
/* Would need to selectively manipulate RAMPZ, and it's only 9 characters anyway so who cares. */
else if(ch=='1') {
if (getch() == ' ') {
Expand Down Expand Up @@ -649,7 +649,7 @@ int main(void)
if (!flags.rampz) putch(pgm_read_byte_near(address.word));
#if defined __AVR_ATmega128__
else putch(pgm_read_byte_far(address.word + 0x10000));
// Hmmmm, yuck FIXME when m256 arrvies
// Hmmmm, yuck FIXME when m256 arrives
#endif
address.word++;
}
Expand Down
2 changes: 1 addition & 1 deletion bootloaders/stk500v2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ DEBUG = dwarf-2


# List any extra directories to look for include files here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRAINCDIRS =
Expand Down
2 changes: 1 addition & 1 deletion cores/arduino/CDC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ bool CDC_Setup(USBSetup& setup)
// For future boards save the key in the inproblematic RAMEND
// Which is reserved for the main() return value (which will never return)
if (isLUFAbootloader()) {
// horray, we got a new bootloader!
// hooray, we got a new bootloader!
magic_key_pos = (RAMEND-1);
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion cores/arduino/USBCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ typedef struct
} EndpointDescriptor;

// Interface Association Descriptor
// Used to bind 2 interfaces together in CDC compostite device
// Used to bind 2 interfaces together in CDC composite device
typedef struct
{
u8 len; // 8
Expand Down
Binary file modified drivers/arduino.cat
Binary file not shown.
4 changes: 4 additions & 0 deletions drivers/arduino.inf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ robotMotor.sketch.name="Arduino Robot"
uno.name="Arduino Uno"
unoR3.name="Arduino Uno"
unomini.name="Arduino Uno Mini"
makeyourunokit.name="Arduino Make Your Uno Kit"
usbserial.name="Arduino USB Serial Light Adapter"
yun.bootloader.name="Arduino Yun bootloader"
yun.sketch.name="Arduino Yun"
Expand Down Expand Up @@ -108,6 +109,7 @@ DefaultDestDir=12
%uno.name%=DriverInstall, USB\VID_2341&PID_0001
%unoR3.name%=DriverInstall, USB\VID_2341&PID_0043
%unomini.name%=DriverInstall, USB\VID_2341&PID_0062
%makeyourunokit.name%=DriverInstall, USB\VID_2341&PID_006A
%usbserial.name%=DriverInstall, USB\VID_2341&PID_003B
%yun.bootloader.name%=DriverInstall, USB\VID_2341&PID_0041
%yun.sketch.name%=DriverInstall, USB\VID_2341&PID_8041&MI_00
Expand Down Expand Up @@ -138,6 +140,7 @@ DefaultDestDir=12
%uno.name%=DriverInstall, USB\VID_2341&PID_0001
%unoR3.name%=DriverInstall, USB\VID_2341&PID_0043
%unomini.name%=DriverInstall, USB\VID_2341&PID_0062
%makeyourunokit.name%=DriverInstall, USB\VID_2341&PID_006A
%usbserial.name%=DriverInstall, USB\VID_2341&PID_003B
%robotControl.bootloader.name%=DriverInstall, USB\VID_2341&PID_0038
%robotControl.sketch.name%=DriverInstall, USB\VID_2341&PID_8038&MI_00
Expand Down Expand Up @@ -172,6 +175,7 @@ DefaultDestDir=12
%uno.name%=DriverInstall, USB\VID_2341&PID_0001
%unoR3.name%=DriverInstall, USB\VID_2341&PID_0043
%unomini.name%=DriverInstall, USB\VID_2341&PID_0062
%makeyourunokit.name%=DriverInstall, USB\VID_2341&PID_006A
%usbserial.name%=DriverInstall, USB\VID_2341&PID_003B
%robotControl.bootloader.name%=DriverInstall, USB\VID_2341&PID_0038
%robotControl.sketch.name%=DriverInstall, USB\VID_2341&PID_8038&MI_00
Expand Down
4 changes: 2 additions & 2 deletions firmwares/atmegaxxu2/arduino-usbdfu/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ DEBUG = dwarf-2


# List any extra directories to look for include files here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRAINCDIRS = $(LUFA_PATH)/
Expand Down Expand Up @@ -310,7 +310,7 @@ MATH_LIB = -lm


# List any extra directories to look for libraries here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRALIBDIRS =
Expand Down
4 changes: 2 additions & 2 deletions firmwares/atmegaxxu2/arduino-usbserial/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ DEBUG = dwarf-2


# List any extra directories to look for include files here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRAINCDIRS = $(LUFA_PATH)/
Expand Down Expand Up @@ -328,7 +328,7 @@ MATH_LIB = -lm


# List any extra directories to look for libraries here.
# Each directory must be seperated by a space.
# Each directory must be separated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
EXTRALIBDIRS =
Expand Down
2 changes: 1 addition & 1 deletion libraries/Wire/examples/i2c_scanner/i2c_scanner.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// can be found in many places.
// For example on the Arduino.cc forum.
// The original author is not known.
// Version 2, Juni 2012, Using Arduino 1.0.1
// Version 2, June 2012, Using Arduino 1.0.1
// Adapted to be as simple as possible by Arduino.cc user Krodal
// Version 3, Feb 26 2013
// V3 by louarnold
Expand Down
2 changes: 1 addition & 1 deletion platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# https://arduino.github.io/arduino-cli/latest/platform-specification/

name=Arduino AVR Boards
version=1.8.5
version=1.8.6

# AVR compile variables
# ---------------------
Expand Down
6 changes: 3 additions & 3 deletions post_install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (

REM dpinst /PATH has problems with relative paths, so use absolute path.
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
drivers\dpinst-amd64.exe /PATH %cd%\drivers\gemma %ARGS%
drivers\dpinst-amd64.exe /PATH "%cd%\drivers\gemma" %ARGS%
) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
drivers\dpinst-amd64.exe /PATH %cd%\drivers\gemma %ARGS%
drivers\dpinst-amd64.exe /PATH "%cd%\drivers\gemma" %ARGS%
) ELSE (
drivers\dpinst-x86.exe /PATH %cd%\drivers\gemma %ARGS%
drivers\dpinst-x86.exe /PATH "%cd%\drivers\gemma" %ARGS%
)

exit /b 0

0 comments on commit 73e5775

Please sign in to comment.