You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pr...@apache.org on 2020/09/04 23:02:51 UTC
[incubator-nuttx] 10/10: deleted section on copying driver code
This is an automated email from the ASF dual-hosted git repository.
protobits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit ce604692dbaf2176939774ddfec0f696fc722553
Author: Adam Feuer <ad...@adamfeuer.com>
AuthorDate: Fri Sep 4 15:55:09 2020 -0700
deleted section on copying driver code
- changed to "use for inspiration only"
---
Documentation/guides/drivers.rst | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/Documentation/guides/drivers.rst b/Documentation/guides/drivers.rst
index 9d77be8..d458ed8 100644
--- a/Documentation/guides/drivers.rst
+++ b/Documentation/guides/drivers.rst
@@ -22,17 +22,15 @@ modification.
* Note that you'll have to compare the datasheet to the header and code files to see if there are differences; there
will usually be some differences between architectures, and they can be significant.
-* Find a similar driver in U-Boot source code:
+* Find a similar driver in U-Boot, Zephyr or BSD Unix (OpenBSD, FreeBSD, NetBSD) source code:
- * Only for inspiration, you can't copy code because of license incompatibility.
+ * Only for inspiration, you can't copy code because of license incompatibility and Apache Foundation restrictions.
+ (Apache License 2.0 and BSD code can come in with a software grant agreement from the original authors; this can
+ sometimes be hard to get. Ask on the mailing list if you're unsure.)
* But you can debug to see how the driver works.
* `U-Boot <https://www.denx.de/wiki/U-Boot>`_ drivers are often easier to understand than BSD Unix drivers because
U-Boot is simpler.
-* Find a similar driver in Zephyr or BSD Unix (OpenBSD, FreeBSD, NetBSD):
-
- * If you find one, you can borrow code directly (Apache 2.0 and BSD licenses are compatible).
-
* Understanding how the driver works
Here are a couple of techniques that helped me.