Skip to content

Commit

Permalink
Merge branch 'release/v1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Aug 31, 2021
2 parents dcbaeb1 + 4c7def4 commit 0ad2290
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion boards/ATmega1608.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA1608",
"extra_flags": "-DARDUINO_AVR_ATmega1608",
"f_cpu": "16000000L",
"mcu": "atmega1608",
"variant": "32pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion boards/ATmega1609.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA1609",
"extra_flags": "-DARDUINO_AVR_ATmega1609",
"f_cpu": "16000000L",
"mcu": "atmega1609",
"variant": "48pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion boards/ATmega3208.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA3208",
"extra_flags": "-DARDUINO_AVR_ATmega3208",
"f_cpu": "16000000L",
"mcu": "atmega3208",
"variant": "32pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion boards/ATmega3209.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA3209",
"extra_flags": "-DARDUINO_AVR_ATmega3209",
"f_cpu": "16000000L",
"mcu": "atmega3209",
"variant": "48pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion boards/ATmega4808.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA4808",
"extra_flags": "-DARDUINO_AVR_ATmega4808",
"f_cpu": "16000000L",
"mcu": "atmega4808",
"variant": "32pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion boards/ATmega4809.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA4809",
"extra_flags": "-DARDUINO_AVR_ATmega4809",
"f_cpu": "16000000L",
"mcu": "atmega4809",
"variant": "48pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion boards/ATmega808.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA808",
"extra_flags": "-DARDUINO_AVR_ATmega808",
"f_cpu": "16000000L",
"mcu": "atmega808",
"variant": "32pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion boards/ATmega809.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA809",
"extra_flags": "-DARDUINO_AVR_ATmega809",
"f_cpu": "16000000L",
"mcu": "atmega809",
"variant": "48pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion boards/avr_iot_wg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA4808",
"extra_flags": "-DARDUINO_AVR_ATmega4808",
"f_cpu": "16000000L",
"mcu": "atmega4808",
"variant": "32pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion boards/curiosity_nano_4809.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA4809",
"extra_flags": "-DARDUINO_AVR_ATmega4809",
"f_cpu": "16000000L",
"mcu": "atmega4809",
"variant": "48pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion boards/xplained_pro_4809.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "MegaCoreX",
"extra_flags": "-DARDUINO_AVR_ATMEGA4809",
"extra_flags": "-DARDUINO_AVR_ATmega4809",
"f_cpu": "16000000L",
"mcu": "atmega4809",
"variant": "48pin-standard"
Expand Down
2 changes: 1 addition & 1 deletion builder/frameworks/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

oscillator_type = board.get("hardware", {}).get("oscillator", "internal")
if build_core == "megatinycore":
env.Append(CPPDEFINES=[("CLOCKSOURCE", 2 if oscillator_type == "external" else 0)])
env.Append(CPPDEFINES=[("CLOCK_SOURCE", 2 if oscillator_type == "external" else 0)])
elif oscillator_type == "external" and build_core == "MegaCoreX":
env.Append(CPPDEFINES=["USE_EXTERNAL_OSCILLATOR"])

Expand Down
1 change: 1 addition & 0 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
else:
target_elf = env.BuildProgram()
target_firm = env.ElfToHex(join("$BUILD_DIR", "${PROGNAME}"), target_elf)
env.Depends(target_firm, "checkprogsize")

AlwaysBuild(env.Alias("nobuild", target_firm))
target_buildprog = env.Alias("buildprog", target_firm, target_firm)
Expand Down
4 changes: 2 additions & 2 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-atmelmegaavr.git"
},
"version": "1.4.0",
"version": "1.5.0",
"frameworks": {
"arduino": {
"package": "framework-arduino-megaavr",
Expand Down Expand Up @@ -48,7 +48,7 @@
"type": "framework",
"optional": true,
"owner": "platformio",
"version": "~2.1.5"
"version": "~2.4.0"
},
"tool-avrdude-megaavr": {
"type": "uploader",
Expand Down

0 comments on commit 0ad2290

Please sign in to comment.