platformio / platform-atmelmegaavr

Atmel megaAVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelmegaavr
Apache License 2.0
29 stars 22 forks source link

megaTinyCore has no CLOCKSOURCE #28

Closed 5e3 closed 3 years ago

5e3 commented 3 years ago

Spence Konde's cores use a compiler switch -DCLOCK_SOURCE. (See i.e.: .platformio\packages\framework-arduino-megaavr-megatinycore\cores\megatinycore\wiring.c:552) In platform-atmelmegaavr/builder/frameworks/arduino.py:77 there is a typo: it's called CLOCKSOURCE instead of CLOCK_SOURCE.

valeros commented 3 years ago

Resolved in #29