Marco Mayer / Mbed OS Queue
Committer:
demayer
Date:
Sat Mar 28 15:28:19 2020 +0000
Revision:
0:6bf0743ece18
IMU Thread with an event-queue running parallel to handle tasks like a 5 times blinking LED. Button with interrupt detected.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
demayer 0:6bf0743ece18 1
demayer 0:6bf0743ece18 2 Apache License
demayer 0:6bf0743ece18 3 Version 2.0, January 2004
demayer 0:6bf0743ece18 4 http://www.apache.org/licenses/
demayer 0:6bf0743ece18 5
demayer 0:6bf0743ece18 6 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
demayer 0:6bf0743ece18 7
demayer 0:6bf0743ece18 8 1. Definitions.
demayer 0:6bf0743ece18 9
demayer 0:6bf0743ece18 10 "License" shall mean the terms and conditions for use, reproduction,
demayer 0:6bf0743ece18 11 and distribution as defined by Sections 1 through 9 of this document.
demayer 0:6bf0743ece18 12
demayer 0:6bf0743ece18 13 "Licensor" shall mean the copyright owner or entity authorized by
demayer 0:6bf0743ece18 14 the copyright owner that is granting the License.
demayer 0:6bf0743ece18 15
demayer 0:6bf0743ece18 16 "Legal Entity" shall mean the union of the acting entity and all
demayer 0:6bf0743ece18 17 other entities that control, are controlled by, or are under common
demayer 0:6bf0743ece18 18 control with that entity. For the purposes of this definition,
demayer 0:6bf0743ece18 19 "control" means (i) the power, direct or indirect, to cause the
demayer 0:6bf0743ece18 20 direction or management of such entity, whether by contract or
demayer 0:6bf0743ece18 21 otherwise, or (ii) ownership of fifty percent (50%) or more of the
demayer 0:6bf0743ece18 22 outstanding shares, or (iii) beneficial ownership of such entity.
demayer 0:6bf0743ece18 23
demayer 0:6bf0743ece18 24 "You" (or "Your") shall mean an individual or Legal Entity
demayer 0:6bf0743ece18 25 exercising permissions granted by this License.
demayer 0:6bf0743ece18 26
demayer 0:6bf0743ece18 27 "Source" form shall mean the preferred form for making modifications,
demayer 0:6bf0743ece18 28 including but not limited to software source code, documentation
demayer 0:6bf0743ece18 29 source, and configuration files.
demayer 0:6bf0743ece18 30
demayer 0:6bf0743ece18 31 "Object" form shall mean any form resulting from mechanical
demayer 0:6bf0743ece18 32 transformation or translation of a Source form, including but
demayer 0:6bf0743ece18 33 not limited to compiled object code, generated documentation,
demayer 0:6bf0743ece18 34 and conversions to other media types.
demayer 0:6bf0743ece18 35
demayer 0:6bf0743ece18 36 "Work" shall mean the work of authorship, whether in Source or
demayer 0:6bf0743ece18 37 Object form, made available under the License, as indicated by a
demayer 0:6bf0743ece18 38 copyright notice that is included in or attached to the work
demayer 0:6bf0743ece18 39 (an example is provided in the Appendix below).
demayer 0:6bf0743ece18 40
demayer 0:6bf0743ece18 41 "Derivative Works" shall mean any work, whether in Source or Object
demayer 0:6bf0743ece18 42 form, that is based on (or derived from) the Work and for which the
demayer 0:6bf0743ece18 43 editorial revisions, annotations, elaborations, or other modifications
demayer 0:6bf0743ece18 44 represent, as a whole, an original work of authorship. For the purposes
demayer 0:6bf0743ece18 45 of this License, Derivative Works shall not include works that remain
demayer 0:6bf0743ece18 46 separable from, or merely link (or bind by name) to the interfaces of,
demayer 0:6bf0743ece18 47 the Work and Derivative Works thereof.
demayer 0:6bf0743ece18 48
demayer 0:6bf0743ece18 49 "Contribution" shall mean any work of authorship, including
demayer 0:6bf0743ece18 50 the original version of the Work and any modifications or additions
demayer 0:6bf0743ece18 51 to that Work or Derivative Works thereof, that is intentionally
demayer 0:6bf0743ece18 52 submitted to Licensor for inclusion in the Work by the copyright owner
demayer 0:6bf0743ece18 53 or by an individual or Legal Entity authorized to submit on behalf of
demayer 0:6bf0743ece18 54 the copyright owner. For the purposes of this definition, "submitted"
demayer 0:6bf0743ece18 55 means any form of electronic, verbal, or written communication sent
demayer 0:6bf0743ece18 56 to the Licensor or its representatives, including but not limited to
demayer 0:6bf0743ece18 57 communication on electronic mailing lists, source code control systems,
demayer 0:6bf0743ece18 58 and issue tracking systems that are managed by, or on behalf of, the
demayer 0:6bf0743ece18 59 Licensor for the purpose of discussing and improving the Work, but
demayer 0:6bf0743ece18 60 excluding communication that is conspicuously marked or otherwise
demayer 0:6bf0743ece18 61 designated in writing by the copyright owner as "Not a Contribution."
demayer 0:6bf0743ece18 62
demayer 0:6bf0743ece18 63 "Contributor" shall mean Licensor and any individual or Legal Entity
demayer 0:6bf0743ece18 64 on behalf of whom a Contribution has been received by Licensor and
demayer 0:6bf0743ece18 65 subsequently incorporated within the Work.
demayer 0:6bf0743ece18 66
demayer 0:6bf0743ece18 67 2. Grant of Copyright License. Subject to the terms and conditions of
demayer 0:6bf0743ece18 68 this License, each Contributor hereby grants to You a perpetual,
demayer 0:6bf0743ece18 69 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
demayer 0:6bf0743ece18 70 copyright license to reproduce, prepare Derivative Works of,
demayer 0:6bf0743ece18 71 publicly display, publicly perform, sublicense, and distribute the
demayer 0:6bf0743ece18 72 Work and such Derivative Works in Source or Object form.
demayer 0:6bf0743ece18 73
demayer 0:6bf0743ece18 74 3. Grant of Patent License. Subject to the terms and conditions of
demayer 0:6bf0743ece18 75 this License, each Contributor hereby grants to You a perpetual,
demayer 0:6bf0743ece18 76 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
demayer 0:6bf0743ece18 77 (except as stated in this section) patent license to make, have made,
demayer 0:6bf0743ece18 78 use, offer to sell, sell, import, and otherwise transfer the Work,
demayer 0:6bf0743ece18 79 where such license applies only to those patent claims licensable
demayer 0:6bf0743ece18 80 by such Contributor that are necessarily infringed by their
demayer 0:6bf0743ece18 81 Contribution(s) alone or by combination of their Contribution(s)
demayer 0:6bf0743ece18 82 with the Work to which such Contribution(s) was submitted. If You
demayer 0:6bf0743ece18 83 institute patent litigation against any entity (including a
demayer 0:6bf0743ece18 84 cross-claim or counterclaim in a lawsuit) alleging that the Work
demayer 0:6bf0743ece18 85 or a Contribution incorporated within the Work constitutes direct
demayer 0:6bf0743ece18 86 or contributory patent infringement, then any patent licenses
demayer 0:6bf0743ece18 87 granted to You under this License for that Work shall terminate
demayer 0:6bf0743ece18 88 as of the date such litigation is filed.
demayer 0:6bf0743ece18 89
demayer 0:6bf0743ece18 90 4. Redistribution. You may reproduce and distribute copies of the
demayer 0:6bf0743ece18 91 Work or Derivative Works thereof in any medium, with or without
demayer 0:6bf0743ece18 92 modifications, and in Source or Object form, provided that You
demayer 0:6bf0743ece18 93 meet the following conditions:
demayer 0:6bf0743ece18 94
demayer 0:6bf0743ece18 95 (a) You must give any other recipients of the Work or
demayer 0:6bf0743ece18 96 Derivative Works a copy of this License; and
demayer 0:6bf0743ece18 97
demayer 0:6bf0743ece18 98 (b) You must cause any modified files to carry prominent notices
demayer 0:6bf0743ece18 99 stating that You changed the files; and
demayer 0:6bf0743ece18 100
demayer 0:6bf0743ece18 101 (c) You must retain, in the Source form of any Derivative Works
demayer 0:6bf0743ece18 102 that You distribute, all copyright, patent, trademark, and
demayer 0:6bf0743ece18 103 attribution notices from the Source form of the Work,
demayer 0:6bf0743ece18 104 excluding those notices that do not pertain to any part of
demayer 0:6bf0743ece18 105 the Derivative Works; and
demayer 0:6bf0743ece18 106
demayer 0:6bf0743ece18 107 (d) If the Work includes a "NOTICE" text file as part of its
demayer 0:6bf0743ece18 108 distribution, then any Derivative Works that You distribute must
demayer 0:6bf0743ece18 109 include a readable copy of the attribution notices contained
demayer 0:6bf0743ece18 110 within such NOTICE file, excluding those notices that do not
demayer 0:6bf0743ece18 111 pertain to any part of the Derivative Works, in at least one
demayer 0:6bf0743ece18 112 of the following places: within a NOTICE text file distributed
demayer 0:6bf0743ece18 113 as part of the Derivative Works; within the Source form or
demayer 0:6bf0743ece18 114 documentation, if provided along with the Derivative Works; or,
demayer 0:6bf0743ece18 115 within a display generated by the Derivative Works, if and
demayer 0:6bf0743ece18 116 wherever such third-party notices normally appear. The contents
demayer 0:6bf0743ece18 117 of the NOTICE file are for informational purposes only and
demayer 0:6bf0743ece18 118 do not modify the License. You may add Your own attribution
demayer 0:6bf0743ece18 119 notices within Derivative Works that You distribute, alongside
demayer 0:6bf0743ece18 120 or as an addendum to the NOTICE text from the Work, provided
demayer 0:6bf0743ece18 121 that such additional attribution notices cannot be construed
demayer 0:6bf0743ece18 122 as modifying the License.
demayer 0:6bf0743ece18 123
demayer 0:6bf0743ece18 124 You may add Your own copyright statement to Your modifications and
demayer 0:6bf0743ece18 125 may provide additional or different license terms and conditions
demayer 0:6bf0743ece18 126 for use, reproduction, or distribution of Your modifications, or
demayer 0:6bf0743ece18 127 for any such Derivative Works as a whole, provided Your use,
demayer 0:6bf0743ece18 128 reproduction, and distribution of the Work otherwise complies with
demayer 0:6bf0743ece18 129 the conditions stated in this License.
demayer 0:6bf0743ece18 130
demayer 0:6bf0743ece18 131 5. Submission of Contributions. Unless You explicitly state otherwise,
demayer 0:6bf0743ece18 132 any Contribution intentionally submitted for inclusion in the Work
demayer 0:6bf0743ece18 133 by You to the Licensor shall be under the terms and conditions of
demayer 0:6bf0743ece18 134 this License, without any additional terms or conditions.
demayer 0:6bf0743ece18 135 Notwithstanding the above, nothing herein shall supersede or modify
demayer 0:6bf0743ece18 136 the terms of any separate license agreement you may have executed
demayer 0:6bf0743ece18 137 with Licensor regarding such Contributions.
demayer 0:6bf0743ece18 138
demayer 0:6bf0743ece18 139 6. Trademarks. This License does not grant permission to use the trade
demayer 0:6bf0743ece18 140 names, trademarks, service marks, or product names of the Licensor,
demayer 0:6bf0743ece18 141 except as required for reasonable and customary use in describing the
demayer 0:6bf0743ece18 142 origin of the Work and reproducing the content of the NOTICE file.
demayer 0:6bf0743ece18 143
demayer 0:6bf0743ece18 144 7. Disclaimer of Warranty. Unless required by applicable law or
demayer 0:6bf0743ece18 145 agreed to in writing, Licensor provides the Work (and each
demayer 0:6bf0743ece18 146 Contributor provides its Contributions) on an "AS IS" BASIS,
demayer 0:6bf0743ece18 147 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
demayer 0:6bf0743ece18 148 implied, including, without limitation, any warranties or conditions
demayer 0:6bf0743ece18 149 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
demayer 0:6bf0743ece18 150 PARTICULAR PURPOSE. You are solely responsible for determining the
demayer 0:6bf0743ece18 151 appropriateness of using or redistributing the Work and assume any
demayer 0:6bf0743ece18 152 risks associated with Your exercise of permissions under this License.
demayer 0:6bf0743ece18 153
demayer 0:6bf0743ece18 154 8. Limitation of Liability. In no event and under no legal theory,
demayer 0:6bf0743ece18 155 whether in tort (including negligence), contract, or otherwise,
demayer 0:6bf0743ece18 156 unless required by applicable law (such as deliberate and grossly
demayer 0:6bf0743ece18 157 negligent acts) or agreed to in writing, shall any Contributor be
demayer 0:6bf0743ece18 158 liable to You for damages, including any direct, indirect, special,
demayer 0:6bf0743ece18 159 incidental, or consequential damages of any character arising as a
demayer 0:6bf0743ece18 160 result of this License or out of the use or inability to use the
demayer 0:6bf0743ece18 161 Work (including but not limited to damages for loss of goodwill,
demayer 0:6bf0743ece18 162 work stoppage, computer failure or malfunction, or any and all
demayer 0:6bf0743ece18 163 other commercial damages or losses), even if such Contributor
demayer 0:6bf0743ece18 164 has been advised of the possibility of such damages.
demayer 0:6bf0743ece18 165
demayer 0:6bf0743ece18 166 9. Accepting Warranty or Additional Liability. While redistributing
demayer 0:6bf0743ece18 167 the Work or Derivative Works thereof, You may choose to offer,
demayer 0:6bf0743ece18 168 and charge a fee for, acceptance of support, warranty, indemnity,
demayer 0:6bf0743ece18 169 or other liability obligations and/or rights consistent with this
demayer 0:6bf0743ece18 170 License. However, in accepting such obligations, You may act only
demayer 0:6bf0743ece18 171 on Your own behalf and on Your sole responsibility, not on behalf
demayer 0:6bf0743ece18 172 of any other Contributor, and only if You agree to indemnify,
demayer 0:6bf0743ece18 173 defend, and hold each Contributor harmless for any liability
demayer 0:6bf0743ece18 174 incurred by, or claims asserted against, such Contributor by reason
demayer 0:6bf0743ece18 175 of your accepting any such warranty or additional liability.
demayer 0:6bf0743ece18 176
demayer 0:6bf0743ece18 177 END OF TERMS AND CONDITIONS
demayer 0:6bf0743ece18 178
demayer 0:6bf0743ece18 179 APPENDIX: How to apply the Apache License to your work.
demayer 0:6bf0743ece18 180
demayer 0:6bf0743ece18 181 To apply the Apache License to your work, attach the following
demayer 0:6bf0743ece18 182 boilerplate notice, with the fields enclosed by brackets "[]"
demayer 0:6bf0743ece18 183 replaced with your own identifying information. (Don't include
demayer 0:6bf0743ece18 184 the brackets!) The text should be enclosed in the appropriate
demayer 0:6bf0743ece18 185 comment syntax for the file format. We also recommend that a
demayer 0:6bf0743ece18 186 file or class name and description of purpose be included on the
demayer 0:6bf0743ece18 187 same "printed page" as the copyright notice for easier
demayer 0:6bf0743ece18 188 identification within third-party archives.
demayer 0:6bf0743ece18 189
demayer 0:6bf0743ece18 190 Copyright [yyyy] [name of copyright owner]
demayer 0:6bf0743ece18 191
demayer 0:6bf0743ece18 192 Licensed under the Apache License, Version 2.0 (the "License");
demayer 0:6bf0743ece18 193 you may not use this file except in compliance with the License.
demayer 0:6bf0743ece18 194 You may obtain a copy of the License at
demayer 0:6bf0743ece18 195
demayer 0:6bf0743ece18 196 http://www.apache.org/licenses/LICENSE-2.0
demayer 0:6bf0743ece18 197
demayer 0:6bf0743ece18 198 Unless required by applicable law or agreed to in writing, software
demayer 0:6bf0743ece18 199 distributed under the License is distributed on an "AS IS" BASIS,
demayer 0:6bf0743ece18 200 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
demayer 0:6bf0743ece18 201 See the License for the specific language governing permissions and
demayer 0:6bf0743ece18 202 limitations under the License.