Skip to content

Commit

Permalink
Merge branch 'release/v3.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Aug 31, 2021
2 parents 245e5b1 + 28cd4eb commit da85d5c
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion boards/attiny167.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "tiny",
"extra_flags": "-DARDUINO_AVR_ATTINYX7",
"extra_flags": "-DARDUINO_AVR_ATTINYX7 -DCLOCK_SOURCE=17",
"f_cpu": "8000000L",
"mcu": "attiny167",
"variant": "tinyX7_New"
Expand Down
2 changes: 1 addition & 1 deletion boards/attiny85.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "tiny",
"extra_flags": "-DARDUINO_AVR_ATTINYX5 -DNEOPIXELPORT=PORTB",
"extra_flags": "-DARDUINO_AVR_ATTINYX5 -DNEOPIXELPORT=PORTB -DCLOCK_SOURCE=6",
"f_cpu": "8000000L",
"mcu": "attiny85",
"variant": "tinyX5"
Expand Down
2 changes: 1 addition & 1 deletion boards/attiny88.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "tiny",
"extra_flags": "-DARDUINO_AVR_ATTINYX8",
"extra_flags": "-DARDUINO_AVR_ATTINYX8 -DCLOCK_SOURCE=18",
"f_cpu": "8000000L",
"mcu": "attiny88",
"variant": "tinyX8"
Expand Down
4 changes: 2 additions & 2 deletions boards/sparkfun_satmega128rfa1.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
],
"name": "SparkFun ATmega128RFA1 Dev Board",
"upload": {
"maximum_ram_size": 126976,
"maximum_size": 16384,
"maximum_ram_size": 16384,
"maximum_size": 126976,
"protocol": "arduino",
"require_upload_port": true,
"speed": 57600
Expand Down
16 changes: 14 additions & 2 deletions builder/frameworks/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def get_bootloader_size():
CXXFLAGS=[
"-fno-exceptions",
"-fno-threadsafe-statics",
"-fpermissive",
"-std=gnu++11"
"-fpermissive"
],

LINKFLAGS=[
Expand All @@ -113,6 +112,19 @@ def get_bootloader_size():
]
)

if build_core in ("MiniCore", "MegaCore", "MightyCore", "MajorCore"):
env.Append(
CXXFLAGS=[
"-std=gnu++17"
],
)
else:
env.Append(
CXXFLAGS=[
"-std=gnu++11"
],
)

#
# Take into account bootloader size
#
Expand Down
6 changes: 3 additions & 3 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"type": "git",
"url": "https://github.com/platformio/platform-atmelavr.git"
},
"version": "3.3.0",
"version": "3.4.0",
"frameworks": {
"arduino": {
"package": "framework-arduino-avr",
Expand Down Expand Up @@ -99,7 +99,7 @@
"type": "framework",
"optional": true,
"owner": "platformio",
"version": "~2.0.3"
"version": "~2.1.0"
},
"framework-arduino-avr-nicai": {
"type": "framework",
Expand Down Expand Up @@ -141,7 +141,7 @@
"type": "debugger",
"optional": true,
"owner": "platformio",
"version": "~1.10600.200511"
"version": "~1.10700.0"
}
}
}

0 comments on commit da85d5c

Please sign in to comment.