-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Checking mergeability…
Don’t worry, you can still create the pull request.
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: arduino/ArduinoCore-avr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: arduino/ArduinoCore-avr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: formatting
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 19 commits
- 2 files changed
- 2 contributors
Commits on May 29, 2018
-
Remove all definitions of println(...) from Print.cpp except println(void), and replace them with inline methods in Print.h. This simplifies the code in Print.cpp improving maintainability.
Configuration menu - View commit details
-
Copy full SHA for 5301d53 - Browse repository at this point
Copy the full SHA 5301d53View commit details -
Remove print(char | char[] | Printable | unsigned char | int | unsigned int) from Print.cpp and replace them with inline versions in Print.h.
Configuration menu - View commit details
-
Copy full SHA for d9a8682 - Browse repository at this point
Copy the full SHA d9a8682View commit details -
Add print(signed char | short | float) explicitly
Add explicit print() support for signed char, unsigned/signed short, and float. Also, add `signed` keyword explicitly to int and long (even if unnecessary). Notice that `char` and `signed char` are considered different types, even if their ranges are the same (ditto for `unsigned char` in SAM). Both AVR and SAM seem to define [u]int8_t explicitly as [un]signed char and not as char, so printing them will print them as numbers as expected. (This does not apply to `int` and `signed int`; those are the same type.)
Configuration menu - View commit details
-
Copy full SHA for da0b943 - Browse repository at this point
Copy the full SHA da0b943View commit details -
Force inlining of inline print[ln] methods
Add GCC __attribute__ ((__always_inline__)) to inlined methods in Print.h. This seems necessary since not doing so increases the executable size (probably because that would create several function definitions), even with LTO optimizations. This change combined with the inlining of print/printf methods seems to reduce the executable size for most applications by a fair amount. (Note that the `inline` keyword does not imply actual inlining.)
Configuration menu - View commit details
-
Copy full SHA for a10af6b - Browse repository at this point
Copy the full SHA a10af6bView commit details -
Add support for variadic Serial.print(...)
Allows combining multiple arguments into a single call to Print::print[ln], like Serial.print("Answer=", 66, HEX). This feature requires C++11 or newer to work, but if it is not available the old calls can still be used (the change has been wrapped in `#if __cplusplus >= 201103L ... #endif`). This change is backwards compatible: print(42, 16) prints "2A" as always, not "4216" (the latter can still be achieved with print(42, "", 16) ). This also works with multiple arguments: any numeric argument followed by an int will be treated as a (number, format) pair. The variadic function calls are inlined using an __attribute__ ((__always_inline__)), so they're equivalent to writing multiple sequential calls to print with one argument.
Configuration menu - View commit details
-
Copy full SHA for a79b445 - Browse repository at this point
Copy the full SHA a79b445View commit details -
This allows passing formatters to print. E.g. instead of print(10, HEX), you can pass any object that has a suitable printTo(Print*, ValueT) method. This is a WIP on top of the variadic print PR and it makes some changes that should probably go into there. As an example of usage: struct EvenOddFormatter { int printTo(Print *p, int x) { return p->print(x % 2 ? "odd" : "even"); } }; Serial.println(1, EvenOddFormatter());
Configuration menu - View commit details
-
Copy full SHA for 5084817 - Browse repository at this point
Copy the full SHA 5084817View commit details -
Configuration menu - View commit details
-
Copy full SHA for c64a4e0 - Browse repository at this point
Copy the full SHA c64a4e0View commit details
Commits on Jun 1, 2018
-
Configuration menu - View commit details
-
Copy full SHA for fa23c18 - Browse repository at this point
Copy the full SHA fa23c18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 288d947 - Browse repository at this point
Copy the full SHA 288d947View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e13289 - Browse repository at this point
Copy the full SHA 9e13289View commit details
Commits on Jun 4, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 3913a2b - Browse repository at this point
Copy the full SHA 3913a2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51bc094 - Browse repository at this point
Copy the full SHA 51bc094View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ec021a - Browse repository at this point
Copy the full SHA 5ec021aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a4b502 - Browse repository at this point
Copy the full SHA 0a4b502View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18b5997 - Browse repository at this point
Copy the full SHA 18b5997View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07267a1 - Browse repository at this point
Copy the full SHA 07267a1View commit details
Commits on Jun 12, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 11a3dc9 - Browse repository at this point
Copy the full SHA 11a3dc9View commit details
Commits on Sep 24, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 67ad205 - Browse repository at this point
Copy the full SHA 67ad205View commit details
Commits on Oct 2, 2018
-
Configuration menu - View commit details
-
Copy full SHA for f770726 - Browse repository at this point
Copy the full SHA f770726View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...formatting