Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
17299a08
Unverified
Commit
17299a08
authored
Jul 28, 2020
by
per1234
Committed by
GitHub
Jul 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip changelog] Document platform bundled libraries (#872)
parent
c4d5571c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
docs/platform-specification.md
docs/platform-specification.md
+17
-3
No files found.
docs/platform-specification.md
View file @
17299a08
...
...
@@ -783,9 +783,9 @@ Note that we don't need to specify any architecture since the same architecture
The platform.txt settings are inherited from the referenced core platform, thus there is no need to provide a
platform.txt unless there are some specific properties that need to be overridden.
The
libraries from the referenced platform are used, thus there is no need to provide those libraries. If libraries are
provided the list of available libraries are the sum of the 2 libraries where the referencing platform has priority over
the referenced platform.
The
[
bundled libraries
](
#platform-bundled-libraries
)
from the referenced platform are used, thus there is no need for
the referencing platform to bundle those libraries. If libraries are provided the list of available libraries are the
sum of the 2 libraries where the referencing platform has priority over
the referenced platform.
In the same way we can use variants and tools defined on another platform:
...
...
@@ -823,6 +823,20 @@ actual arduino-cli code, the "board platform" is called `targetPlatform`, the "c
Introduced in Arduino IDE 1.6.6. This file can be used to override properties defined in boards.txt or define new
properties without modifying boards.txt.
## Platform bundled libraries
Arduino libraries placed in the platform's
`libraries`
subfolder are accessible when a board of the platform, or of a
platform that
[
references
](
#referencing-another-core-variant-or-tool
)
the platform's core, is selected. When any other
board is selected, the platform bundled libraries are inaccessible.
These are often architecture-specific libraries (e.g., SPI, Wire) which must be implemented differently for each
architecture.
Platform bundled libraries may be used to provide specialized versions of libraries which use the
[
dependency resolution system
](
sketch-build-process.md#dependency-resolution
)
to override built-in libraries.
For more information, see the
[
Arduino library specification
](
library-specification.md
)
.
## keywords.txt
As of Arduino IDE 1.6.6, per-platform keywords can be defined by adding a keywords.txt file to the platform's
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment