Skip to content

Commit 6cde670

Browse files
authored
chore: add the license and contribution notes (#127)
1 parent 7ff1714 commit 6cde670

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

33
## Unreleased - ReleaseDate
4+
### Added
5+
- License and contribution notes are added to the README.
6+
47
### Fixed
58
- Outdated code example in `README.md` is fixed.
69

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Users can use this library to implement a USB device deriver on your own OS.
1212

1313
This crate is `#![no_std]` compatible.
1414

15-
# Examples
15+
## Examples
1616

1717
```rust
1818
let mut r = unsafe { xhci::Registers::new(MMIO_BASE, mapper) };
@@ -23,3 +23,20 @@ o.usbcmd.update(|u| {
2323
});
2424
while o.usbsts.read().hc_halted() {}
2525
```
26+
27+
## License
28+
29+
Licensed under either of
30+
31+
* Apache License, Version 2.0
32+
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
33+
* MIT license
34+
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
35+
36+
at your option.
37+
38+
## Contribution
39+
40+
Unless you explicitly state otherwise, any contribution intentionally submitted
41+
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
42+
dual licensed as above, without any additional terms or conditions.

0 commit comments

Comments
 (0)