The license of this repository is somewhat complicated. The TLDR is that the
author believes that the code contained here is as a whole non-free, but it is
still usable for creating free software.

DISCLAIMER: The author is not a lawyer and the following does not constitute
legal advice. Consult your own lawyer if you are unsure.

The SVD files and file fragments found in the svd/ directory originally came
from STMicroelectronics. They are subject to ST's license agreement in
LICENSE-ST.html. This license is a non-free license with restrictions on allowed
usage (notably that usage with non-ST parts is forbidden).

The files under svd/ have been modified from the original files from
STMicroelectronics. These modifications are licensed under the
public-domain-equivalent "zero-clause BSD license" below.

The SVD files have been reorganized in a scheme "inspired by" libopencm3.
However, the author believes this does not affect the license status because
only the idea of how to organize the code has been copied and not any expression
of this organization.

The files not under svd/ are new code. These files are all licensed under the
public-domain-equivalent "zero-clause BSD license" below.

The author is of the opinion that the svd2rust tool will extract only the
noncopyrightable facts from SVD files. Therefore, the author believes that,
although this repository is non-free, the output produced as a result of running
the code in this repository is not non-free and should not be subject to
STMicroelectronic's license agreement. Therefore, the author believes that e.g.
embedding the files under svd/ into tools targeting GigaDevice parts would be
forbidden (by ST's license) but using the crate produced by the code in this
repository to build firmware for GigaDevice parts would be permitted (as the
svd2rust step has extracted only the noncopyrightable facts).

However, note that the SVD files contain short textual descriptions of registers
and fields. These will be embedded as comments in the generated code. The author
believes that these short descriptions are still noncopyrightable facts.
However, stripping the comments from the output of this tool might be safer.

Finally, the crate generated by running this tool is generated using svd2rust.
The output code contains fragments of template code and might be subject to the
license of the svd2rust tool (MIT or Apache). The author believes the resulting
crates are indeed subject to the svd2rust license.

================================================================================

Copyright (C) 2018 by Robert Ou <rqou@robertou.com>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
