diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8494849
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+obj
+*.project
+*.workspace
+*.o
+*.d
+resources
+images/*.bin
+images/*.s19
+images/*.map
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..195316d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,677 @@
+(This project uses BertOS for some functionality. BertOS is licensed under GPLv2. Please see http://www.bertos.org for details. All files in the "bertos" directory originates from BertOS.)
+
+GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ {one line to give the program's name and a brief idea of what it does.}
+ Copyright (C) {year} {name of author}
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ {project} Copyright (C) {year} {fullname}
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
+
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0c8d0c1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,379 @@
+# AVR Sample makefile written by Eric B. Weddington, Jörg Wunsch, et al.
+# Modified (bringing often-changed options to the top) by Elliot Williams
+
+# make all = Make software and program
+# make clean = Clean out built project files.
+# make program = Download the hex file to the device, using avrdude. Please
+# customize the avrdude settings below first!
+
+# Microcontroller Type
+#MCU = atmega1284p
+#MCU = atmega644p
+MCU = atmega328p
+
+# Target file name (without extension).
+TARGET = images/MicroAPRS
+
+# Programming hardware: type avrdude -c ?
+# to get a full listing.
+AVRDUDE_PROGRAMMER = arduino
+
+AVRDUDE_PORT = /dev/usb # not really needed for usb
+#AVRDUDE_PORT = /dev/parport0 # linux
+# AVRDUDE_PORT = lpt1 # windows
+
+############# Don't need to change below here for most purposes (Elliot)
+
+# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization.
+# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
+OPT = s
+
+# Output format. (can be srec, ihex, binary)
+FORMAT = ihex
+
+# List C source files here. (C dependencies are automatically generated.)
+#SRC = $(TARGET).c
+SRC = main.c hardware/Serial.c hardware/AFSK.c util/CRC-CCIT.c protocol/AX25.c protocol/KISS.c protocol/SimpleSerial.c
+
+# If there is more than one source file, append them above, or modify and
+# uncomment the following:
+#SRC += foo.c bar.c
+
+# You can also wrap lines by appending a backslash to the end of the line:
+#SRC += baz.c \
+#xyzzy.c
+
+
+
+# List Assembler source files here.
+# Make them always end in a capital .S. Files ending in a lowercase .s
+# will not be considered source files but generated files (assembler
+# output from the compiler), and will be deleted upon "make clean"!
+# Even though the DOS/Win* filesystem matches both .s and .S the same,
+# it will preserve the spelling of the filenames, and gcc itself does
+# care about how the name is spelled on its command-line.
+ASRC =
+
+
+# List any extra directories to look for include files here.
+# Each directory must be seperated by a space.
+EXTRAINCDIRS =
+
+
+# Optional compiler flags.
+# -g: generate debugging information (for GDB, or for COFF conversion)
+# -O*: optimization level
+# -f...: tuning, see gcc manual and avr-libc documentation
+# -Wall...: warning level
+# -Wa,...: tell GCC to pass this to the assembler.
+# -ahlms: create assembler listing
+CFLAGS = -g -O$(OPT) \
+-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \
+-Wall -Wstrict-prototypes \
+-Wa,-adhlns=$(<:.c=.lst) \
+$(patsubst %,-I%,$(EXTRAINCDIRS))
+
+
+# Set a "language standard" compiler flag.
+# Unremark just one line below to set the language standard to use.
+# gnu99 = C99 + GNU extensions. See GCC manual for more information.
+#CFLAGS += -std=c89
+#CFLAGS += -std=gnu89
+#CFLAGS += -std=c99
+CFLAGS += -std=gnu99
+
+
+
+# Optional assembler flags.
+# -Wa,...: tell GCC to pass this to the assembler.
+# -ahlms: create listing
+# -gstabs: have the assembler create line number information; note that
+# for use in COFF files, additional information about filenames
+# and function names needs to be present in the assembler source
+# files -- see avr-libc docs [FIXME: not yet described there]
+ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs
+
+
+
+# Optional linker flags.
+# -Wl,...: tell GCC to pass this to linker.
+# -Map: create map file
+# --cref: add cross reference to map file
+LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
+
+
+
+# Additional libraries
+
+# Minimalistic printf version
+#LDFLAGS += -Wl,-u,vfprintf -lprintf_min
+
+# Floating point printf version (requires -lm below)
+#LDFLAGS += -Wl,-u,vfprintf -lprintf_flt
+
+# -lm = math library
+LDFLAGS += -lm
+
+
+# Programming support using avrdude. Settings and variables.
+
+
+AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
+#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
+
+AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
+
+# Uncomment the following if you want avrdude's erase cycle counter.
+# Note that this counter needs to be initialized first using -Yn,
+# see avrdude manual.
+#AVRDUDE_ERASE += -y
+
+# Uncomment the following if you do /not/ wish a verification to be
+# performed after programming the device.
+#AVRDUDE_FLAGS += -V
+
+# Increase verbosity level. Please use this when submitting bug
+# reports about avrdude. See
+# to submit bug reports.
+#AVRDUDE_FLAGS += -v -v
+
+#Run while cable attached or don't
+AVRDUDE_FLAGS += -E reset #keep chip disabled while cable attached
+#AVRDUDE_FLAGS += -E noreset
+
+#AVRDUDE_WRITE_FLASH = -U lfuse:w:0x04:m #run with 8 Mhz clock
+
+#AVRDUDE_WRITE_FLASH = -U lfuse:w:0x21:m #run with 1 Mhz clock #default clock mode
+
+#AVRDUDE_WRITE_FLASH = -U lfuse:w:0x01:m #run with 1 Mhz clock no start up time
+
+# ---------------------------------------------------------------------------
+
+# Define programs and commands.
+SHELL = sh
+
+CC = avr-gcc
+
+OBJCOPY = avr-objcopy
+OBJDUMP = avr-objdump
+SIZE = avr-size
+
+
+# Programming support using avrdude.
+AVRDUDE = avrdude
+
+
+REMOVE = rm -f
+COPY = cp
+
+HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
+ELFSIZE = $(SIZE) -C $(TARGET).elf
+
+
+
+# Define Messages
+# English
+MSG_ERRORS_NONE = Firmware compiled successfully!
+MSG_BEGIN = Starting build...
+MSG_END = -------- Done --------
+MSG_SIZE_BEFORE = Size before:
+MSG_SIZE_AFTER = Size after:
+MSG_COFF = Converting to AVR COFF:
+MSG_EXTENDED_COFF = Converting to AVR Extended COFF:
+MSG_FLASH = Creating load file for Flash:
+MSG_EEPROM = Creating load file for EEPROM:
+MSG_EXTENDED_LISTING = Creating Extended Listing:
+MSG_SYMBOL_TABLE = Creating Symbol Table:
+MSG_LINKING = Linking:
+MSG_COMPILING = Compiling:
+MSG_ASSEMBLING = Assembling:
+MSG_CLEANING = Cleaning project:
+
+
+
+
+# Define all object files.
+OBJ = $(SRC:.c=.o) $(ASRC:.S=.o)
+
+# Define all listing files.
+LST = $(ASRC:.S=.lst) $(SRC:.c=.lst)
+
+# Combine all necessary flags and optional flags.
+# Add target processor to flags.
+ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS)
+ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
+
+
+
+# Default target: make program!
+#all: begin gccversion sizebefore $(TARGET).elf $(TARGET).hex $(TARGET).eep \
+# $(TARGET).lss $(TARGET).sym sizeafter finished end
+
+all: begin $(TARGET).elf $(TARGET).hex $(TARGET).eep \
+ $(TARGET).lss $(TARGET).sym cleanup sizeafter finished
+# $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
+
+# Eye candy.
+# AVR Studio 3.x does not check make's exit code but relies on
+# the following magic strings to be generated by the compile job.
+begin:
+ @echo
+ @echo $(MSG_BEGIN)
+
+finished:
+ @echo $(MSG_ERRORS_NONE)
+
+end:
+ @echo $(MSG_END)
+ @echo
+
+
+# Display size of file.
+sizebefore:
+ @if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi
+
+sizeafter:
+ @if [ -f $(TARGET).elf ]; then echo; $(ELFSIZE); echo; fi
+
+
+
+# Display compiler version information.
+gccversion :
+ @$(CC) --version
+
+
+
+
+# Convert ELF to COFF for use in debugging / simulating in
+# AVR Studio or VMLAB.
+COFFCONVERT=$(OBJCOPY) --debugging \
+ --change-section-address .data-0x800000 \
+ --change-section-address .bss-0x800000 \
+ --change-section-address .noinit-0x800000 \
+ --change-section-address .eeprom-0x810000
+
+
+coff: $(TARGET).elf
+# @echo
+# @echo $(MSG_COFF) $(TARGET).cof
+ @$(COFFCONVERT) -O coff-avr $< $(TARGET).cof
+
+
+extcoff: $(TARGET).elf
+# @echo
+# @echo $(MSG_EXTENDED_COFF) $(TARGET).cof
+ @$(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof
+
+
+
+
+# Program the device.
+program: $(TARGET).hex $(TARGET).eep
+ @$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
+
+
+
+
+# Create final output files (.hex, .eep) from ELF output file.
+%.hex: %.elf
+# @echo
+# @echo $(MSG_FLASH) $@
+ @$(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
+
+%.eep: %.elf
+# @echo
+# @echo $(MSG_EEPROM) $@
+# @echo Not generating any EEPROM images
+ @-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O $(FORMAT) $< $@
+
+# Create extended listing file from ELF output file.
+%.lss: %.elf
+# @echo
+# @echo $(MSG_EXTENDED_LISTING) $@
+ @$(OBJDUMP) -h -S $< > $@
+
+# Create a symbol table from ELF output file.
+%.sym: %.elf
+# @echo
+# @echo $(MSG_SYMBOL_TABLE) $@
+ @avr-nm -n $< > $@
+
+
+
+# Link: create ELF output file from object files.
+.SECONDARY : $(TARGET).elf
+.PRECIOUS : $(OBJ)
+%.elf: $(OBJ)
+ @echo $(MSG_LINKING) $@
+ @$(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS)
+
+
+# Compile: create object files from C source files.
+%.o : %.c
+ @echo $(MSG_COMPILING) $<
+ @$(CC) -c $(ALL_CFLAGS) $< -o $@
+
+
+# Compile: create assembler files from C source files.
+%.s : %.c
+ @$(CC) -S $(ALL_CFLAGS) $< -o $@
+
+
+# Assemble: create object files from assembler source files.
+%.o : %.S
+ @echo
+ @echo $(MSG_ASSEMBLING) $<
+ @$(CC) -c $(ALL_ASFLAGS) $< -o $@
+
+
+
+# Target: clean project.
+clean: clean_list finished
+
+clean_list :
+ @echo
+ @echo $(MSG_CLEANING)
+ $(REMOVE) $(TARGET).hex
+ $(REMOVE) $(TARGET).eep
+ $(REMOVE) $(TARGET).obj
+ $(REMOVE) $(TARGET).cof
+ $(REMOVE) $(TARGET).elf
+ $(REMOVE) $(TARGET).map
+ $(REMOVE) $(TARGET).obj
+ $(REMOVE) $(TARGET).a90
+ $(REMOVE) $(TARGET).sym
+ $(REMOVE) $(TARGET).lnk
+ $(REMOVE) $(TARGET).lss
+ $(REMOVE) $(OBJ)
+ $(REMOVE) $(LST)
+ $(REMOVE) $(SRC:.c=.s)
+ $(REMOVE) $(SRC:.c=.d)
+ $(REMOVE) *~
+
+cleanup:
+ @$(REMOVE) $(SRC:.c=.s)
+ @$(REMOVE) $(SRC:.c=.d)
+ @$(REMOVE) $(LST)
+
+# Automatically generate C source code dependencies.
+# (Code originally taken from the GNU make user manual and modified
+# (See README.txt Credits).)
+#
+# Note that this will work with sh (bash) and sed that is shipped with WinAVR
+# (see the SHELL variable defined above).
+# This may not work with other shells or other seds.
+#
+%.d: %.c
+ @set -e; $(CC) -MM $(ALL_CFLAGS) $< \
+ | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > $@; \
+ [ -s $@ ] || rm -f $@
+
+
+# Remove the '-' if you want to see the dependency files generated.
+-include $(SRC:.c=.d)
+
+
+
+# Listing of phony targets.
+.PHONY : all begin finish end sizebefore sizeafter gccversion coff extcoff \
+ clean clean_list program
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..c0e9d59
--- /dev/null
+++ b/README.md
@@ -0,0 +1,124 @@
+MicroAPRS
+==========
+
+MicroAPRS is an APRS firmware for MicroModem. It supports both normal KISS mode, and a simple serial protocol for easy communication with an Arduino, or other MCU.
+
+You can buy a complete modem from [my shop](http://unsigned.io/shop), or you can build one yourself pretty easily. Take a look at the documentation in the [MicroModem](https://github.com/markqvist/MicroModem) repository for information and getting started guides!
+
+## Some features
+
+- Send and receive AX.25 APRS packets
+- Full modulation and demodulation in software
+- Easy configuration of callsign and path settings
+- Flexibility in how received packets are output over serial connection
+- Persistent configuration stored in EEPROM
+- Shorthand functions for sending location updates and messages, so you don't need to manually create the packets
+- Ability to send raw packets
+- Support for settings APRS symbols
+- Support for power/height/gain info in location updates
+- Ability to automatically ACK messages adressed to the modem
+- Can run with open squelch
+- Supports KISS mode for use with programs on a host computer
+
+## KISS mode
+
+When the modem is running in KISS mode, there's really not much more to it than connecting the modem to a computer, opening whatever program you want to use with it, and off you go.
+
+## Modem control - SimpleSerial
+
+If you want to use the SimpleSerial protocol, here's how to control the APRS modem over a serial connection. The modem accepts a variety of commands for setting options and sending packets. Generally a command starts with one or more characters defining the command, and then whatever data is needed to set the options for that command. Here's a list of the currently available commands:
+
+##Serial commands
+
+Command | Description
+--- | :---
+__!\__ | Send raw packet
+__@\__ | Send location update (cmt = optional comment)
+__#\__ | Send APRS message
+ |
+__c\__ | Set your callsign
+__d\__ | Set destination callsign
+__1\__ | Set PATH1 callsign
+__2\__ | Set PATH2 callsign
+ |
+__sc\__ | Set your SSID
+__sd\__ | Set destination SSID
+__s1\__ | Set PATH1 SSID
+__s2\__ | Set PATH2 SSID
+ |
+__lla\__ | Set latitude (NMEA-format, eg 4903.50N)
+__llo\__ | Set latitude (NMEA-format, eg 07201.75W)
+__lp\<0-9>__ | Set TX power info
+__lh\<0-9>__ | Set antenna height info
+__lg\<0-9>__ | Set antenna gain info
+__ld\<0-9>__ | Set antenna directivity info
+__ls\__ | Select symbol
+__lt\__ | Select symbol table (standard/alternate)
+ |
+__mc\__ | Set message recipient callsign
+__ms\__ | Set message recipient SSID
+__mr\__ | Retry last message
+__ma\<1/0>__ | Automatic message ACK on/off
+ |
+__ps\<1/0>__ | Print SRC on/off
+__pd\<1/0>__ | Print DST on/off
+__pp\<1/0>__ | Print PATH on/off
+__pm\<1/0>__ | Print DATA on/off
+__pi\<1/0>__ | Print INFO on/off
+__v\<1/0>__ | Verbose mode on/off
+__V\<1/0>__ | Silent mode on/off
+ |
+__w\__ | Set preamble in ms
+__W\__ | Set TX tail in ms
+ |
+__S__ | Save configuration
+__L__ | Load configuration
+__C__ | Clear configuration
+__H__ | Print configuration
+
+
+
+### Examples
+
+__To set your callsign to XX1YYY-5, and then save the configuration, send these three commands:__
+```
+cXX1YYY
+sc5
+S
+```
+
+__To send an APRS message to ZZ5ABC-1 with the content "Hi there!", send these commands:__
+```
+mcZZ5ABC
+ms1
+#Hi there!
+```
+
+__To send a location update, with the comment "MicroAPRS", you can do something like this:__
+```
+lla5230.70N
+llo01043.70E
+@MicroAPRS
+```
+
+__To send an APRS message to ZZ5ABC-1 with the content "Hi there!", using a raw packet, send this command:__
+```
+!:ZZ5ABC-1 :Hi there!{01
+```
+__Here's an example of how to send a location update with power, height and gain information, using a raw packet:__
+```
+!=5230.70N/01043.70E-PHG2410MicroAPRS
+```
+
+### EEPROM Settings
+When saving the configuration, it is written to EEPROM, so it will persist between poweroffs. If a configuration has been stored, it will automatically be loaded when the modem powers up. The configuration can be cleared by sending the "clear configuration" command (`C`).
+
+### Serial Connection
+
+To connect to the modem use __9600 baud, 8N1__ serial. By default, the firmware uses time-sensitive input, which means that it will buffer serial data as it comes in, and when it has received no data for a few milliseconds, it will start interpreting whatever it has received. This means you need to set your serial terminal program to not send data for every keystroke, but only on new-line, or pressing send or whatever. If you do not want this behaviour, you can compile the firmware with the DEBUG flag set, which will make the modem wait for a new-line character before interpreting the received data. I would generally advise against this though, since it means that you cannot have newline characters in whatever data you want to send!
+
+![MicroModem](https://raw.githubusercontent.com/markqvist/MicroModem/master/Design/Images/1.jpg)
+
+The project has been implemented in your normal C with makefile style, and uses AVR Libc. The firmware is compatible with Arduino-based products, although it was not written in the Arduino IDE.
+
+Visit [my site](http://unsigned.io) for questions, comments and other details.
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..86203cf
--- /dev/null
+++ b/config.h
@@ -0,0 +1,4 @@
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#endif
\ No newline at end of file
diff --git a/device.h b/device.h
new file mode 100644
index 0000000..c26447a
--- /dev/null
+++ b/device.h
@@ -0,0 +1,45 @@
+#include "util/constants.h"
+
+#ifndef DEVICE_CONFIGURATION
+#define DEVICE_CONFIGURATION
+
+// CPU settings
+#define TARGET_CPU m328p
+#define F_CPU 16000000
+#define FREQUENCY_CORRECTION 0
+
+// ADC settings
+#define OPEN_SQUELCH false
+#define ADC_REFERENCE REF_3V3
+// OR
+//#define ADC_REFERENCE REF_5V
+
+// Sampling & timer setup
+#define CONFIG_AFSK_DAC_SAMPLERATE 9600
+
+// Serial protocol settings
+#define SERIAL_PROTOCOL PROTOCOL_KISS
+// OR
+//#define SERIAL_PROTOCOL PROTOCOL_SIMPLE_SERIAL
+
+// AX25 settings
+#if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
+ #define CUSTOM_FRAME_SIZE 330
+#endif
+
+// Serial settings
+#define BAUD 9600
+#define SERIAL_DEBUG false
+#define TX_MAXWAIT 2UL
+
+// Port settings
+#if TARGET_CPU == m328p
+ #define DAC_PORT PORTD
+ #define DAC_DDR DDRD
+ #define LED_PORT PORTB
+ #define LED_DDR DDRB
+ #define ADC_PORT PORTC
+ #define ADC_DDR DDRC
+#endif
+
+#endif
\ No newline at end of file
diff --git a/flash b/flash
new file mode 100755
index 0000000..e05c4d8
--- /dev/null
+++ b/flash
@@ -0,0 +1,2 @@
+#!/bin/bash
+avrdude -p $2 -c arduino -P /dev/tty$1 -b 115200 -F -U flash:w:images/OpenAPRS.hex
diff --git a/hardware/AFSK.c b/hardware/AFSK.c
new file mode 100644
index 0000000..82103b0
--- /dev/null
+++ b/hardware/AFSK.c
@@ -0,0 +1,470 @@
+#include
+#include "AFSK.h"
+#include "util/time.h"
+
+extern volatile ticks_t _clock;
+extern unsigned long custom_preamble;
+extern unsigned long custom_tail;
+
+bool hw_afsk_dac_isr = false;
+bool hw_5v_ref = false;
+Afsk *AFSK_modem;
+
+// Forward declerations
+int afsk_getchar(void);
+void afsk_putchar(char c);
+
+void AFSK_hw_refDetect(void) {
+ // This is manual for now
+ #if ADC_REFERENCE == REF_5V
+ hw_5v_ref = true;
+ #else
+ hw_5v_ref = false;
+ #endif
+}
+
+void AFSK_hw_init(void) {
+ // Set up ADC
+
+ AFSK_hw_refDetect();
+
+ TCCR1A = 0;
+ TCCR1B = _BV(CS10) | _BV(WGM13) | _BV(WGM12);
+ ICR1 = (((CPU_FREQ+FREQUENCY_CORRECTION)) / 9600) - 1;
+
+ if (hw_5v_ref) {
+ ADMUX = _BV(REFS0) | 0;
+ } else {
+ ADMUX = 0;
+ }
+
+ ADC_DDR &= ~_BV(0);
+ ADC_PORT &= ~_BV(0);
+ DIDR0 |= _BV(0);
+ ADCSRB = _BV(ADTS2) |
+ _BV(ADTS1) |
+ _BV(ADTS0);
+ ADCSRA = _BV(ADEN) |
+ _BV(ADSC) |
+ _BV(ADATE)|
+ _BV(ADIE) |
+ _BV(ADPS2);
+
+ AFSK_DAC_INIT();
+ LED_TX_INIT();
+ LED_RX_INIT();
+}
+
+void AFSK_init(Afsk *afsk) {
+ // Allocate modem struct memory
+ memset(afsk, 0, sizeof(*afsk));
+ AFSK_modem = afsk;
+ // Set phase increment
+ afsk->phaseInc = MARK_INC;
+ // Initialise FIFO buffers
+ fifo_init(&afsk->delayFifo, (uint8_t *)afsk->delayBuf, sizeof(afsk->delayBuf));
+ fifo_init(&afsk->rxFifo, afsk->rxBuf, sizeof(afsk->rxBuf));
+ fifo_init(&afsk->txFifo, afsk->txBuf, sizeof(afsk->txBuf));
+
+ // Fill delay FIFO with zeroes
+ for (int i = 0; idelayFifo, 0);
+ }
+
+ AFSK_hw_init();
+
+ // Set up streams
+ FILE afsk_fd = FDEV_SETUP_STREAM(afsk_putchar, afsk_getchar, _FDEV_SETUP_RW);
+ afsk->fd = afsk_fd;
+}
+
+static void AFSK_txStart(Afsk *afsk) {
+ if (!afsk->sending) {
+ afsk->phaseInc = MARK_INC;
+ afsk->phaseAcc = 0;
+ afsk->bitstuffCount = 0;
+ afsk->sending = true;
+ LED_TX_ON();
+ afsk->preambleLength = DIV_ROUND(custom_preamble * BITRATE, 8000);
+ AFSK_DAC_IRQ_START();
+ }
+ ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
+ afsk->tailLength = DIV_ROUND(custom_tail * BITRATE, 8000);
+ }
+}
+
+void afsk_putchar(char c) {
+ AFSK_txStart(AFSK_modem);
+ while(fifo_isfull_locked(&AFSK_modem->txFifo)) { /* Wait */ }
+ fifo_push_locked(&AFSK_modem->txFifo, c);
+}
+
+int afsk_getchar(void) {
+ if (fifo_isempty_locked(&AFSK_modem->rxFifo)) {
+ return EOF;
+ } else {
+ return fifo_pop_locked(&AFSK_modem->rxFifo);
+ }
+}
+
+void AFSK_transmit(char *buffer, size_t size) {
+ fifo_flush(&AFSK_modem->txFifo);
+ int i = 0;
+ while (size--) {
+ afsk_putchar(buffer[i++]);
+ }
+}
+
+uint8_t AFSK_dac_isr(Afsk *afsk) {
+ if (afsk->sampleIndex == 0) {
+ if (afsk->txBit == 0) {
+ if (fifo_isempty(&afsk->txFifo) && afsk->tailLength == 0) {
+ AFSK_DAC_IRQ_STOP();
+ afsk->sending = false;
+ LED_TX_OFF();
+ return 0;
+ } else {
+ if (!afsk->bitStuff) afsk->bitstuffCount = 0;
+ afsk->bitStuff = true;
+ if (afsk->preambleLength == 0) {
+ if (fifo_isempty(&afsk->txFifo)) {
+ afsk->tailLength--;
+ afsk->currentOutputByte = HDLC_FLAG;
+ } else {
+ afsk->currentOutputByte = fifo_pop(&afsk->txFifo);
+ }
+ } else {
+ afsk->preambleLength--;
+ afsk->currentOutputByte = HDLC_FLAG;
+ }
+ if (afsk->currentOutputByte == AX25_ESC) {
+ if (fifo_isempty(&afsk->txFifo)) {
+ AFSK_DAC_IRQ_STOP();
+ afsk->sending = false;
+ LED_TX_OFF();
+ return 0;
+ } else {
+ afsk->currentOutputByte = fifo_pop(&afsk->txFifo);
+ }
+ } else if (afsk->currentOutputByte == HDLC_FLAG || afsk->currentOutputByte == HDLC_RESET) {
+ afsk->bitStuff = false;
+ }
+ }
+ afsk->txBit = 0x01;
+ }
+
+ if (afsk->bitStuff && afsk->bitstuffCount >= BIT_STUFF_LEN) {
+ afsk->bitstuffCount = 0;
+ afsk->phaseInc = SWITCH_TONE(afsk->phaseInc);
+ } else {
+ if (afsk->currentOutputByte & afsk->txBit) {
+ afsk->bitstuffCount++;
+ } else {
+ afsk->bitstuffCount = 0;
+ afsk->phaseInc = SWITCH_TONE(afsk->phaseInc);
+ }
+ afsk->txBit <<= 1;
+ }
+
+ afsk->sampleIndex = SAMPLESPERBIT;
+ }
+
+ afsk->phaseAcc += afsk->phaseInc;
+ afsk->phaseAcc %= SIN_LEN;
+ afsk->sampleIndex--;
+
+ return sinSample(afsk->phaseAcc);
+}
+
+static bool hdlcParse(Hdlc *hdlc, bool bit, FIFOBuffer *fifo) {
+ // Initialise a return value. We start with the
+ // assumption that all is going to end well :)
+ bool ret = true;
+
+ // Bitshift our byte of demodulated bits to
+ // the left by one bit, to make room for the
+ // next incoming bit
+ hdlc->demodulatedBits <<= 1;
+ // And then put the newest bit from the
+ // demodulator into the byte.
+ hdlc->demodulatedBits |= bit ? 1 : 0;
+
+ // Now we'll look at the last 8 received bits, and
+ // check if we have received a HDLC flag (01111110)
+ if (hdlc->demodulatedBits == HDLC_FLAG) {
+ // If we have, check that our output buffer is
+ // not full.
+ if (!fifo_isfull(fifo)) {
+ // If it isn't, we'll push the HDLC_FLAG into
+ // the buffer and indicate that we are now
+ // receiving data. For bling we also turn
+ // on the RX LED.
+ fifo_push(fifo, HDLC_FLAG);
+ hdlc->receiving = true;
+ #if OPEN_SQUELCH == false
+ LED_RX_ON();
+ #endif
+ } else {
+ // If the buffer is full, we have a problem
+ // and abort by setting the return value to
+ // false and stopping the here.
+
+ ret = false;
+ hdlc->receiving = false;
+ LED_RX_OFF();
+ }
+
+ // Everytime we receive a HDLC_FLAG, we reset the
+ // storage for our current incoming byte and bit
+ // position in that byte. This effectively
+ // synchronises our parsing to the start and end
+ // of the received bytes.
+ hdlc->currentByte = 0;
+ hdlc->bitIndex = 0;
+ return ret;
+ }
+
+ // Check if we have received a RESET flag (01111111)
+ // In this comparison we also detect when no transmission
+ // (or silence) is taking place, and the demodulator
+ // returns an endless stream of zeroes. Due to the NRZ
+ // coding, the actual bits send to this function will
+ // be an endless stream of ones, which this AND operation
+ // will also detect.
+ if ((hdlc->demodulatedBits & HDLC_RESET) == HDLC_RESET) {
+ // If we have, something probably went wrong at the
+ // transmitting end, and we abort the reception.
+ hdlc->receiving = false;
+ LED_RX_OFF();
+ return ret;
+ }
+
+ // If we have not yet seen a HDLC_FLAG indicating that
+ // a transmission is actually taking place, don't bother
+ // with anything.
+ if (!hdlc->receiving)
+ return ret;
+
+ // First check if what we are seeing is a stuffed bit.
+ // Since the different HDLC control characters like
+ // HDLC_FLAG, HDLC_RESET and such could also occur in
+ // a normal data stream, we employ a method known as
+ // "bit stuffing". All control characters have more than
+ // 5 ones in a row, so if the transmitting party detects
+ // this sequence in the _data_ to be transmitted, it inserts
+ // a zero to avoid the receiving party interpreting it as
+ // a control character. Therefore, if we detect such a
+ // "stuffed bit", we simply ignore it and wait for the
+ // next bit to come in.
+ //
+ // We do the detection by applying an AND bit-mask to the
+ // stream of demodulated bits. This mask is 00111111 (0x3f)
+ // if the result of the operation is 00111110 (0x3e), we
+ // have detected a stuffed bit.
+ if ((hdlc->demodulatedBits & 0x3f) == 0x3e)
+ return ret;
+
+ // If we have an actual 1 bit, push this to the current byte
+ // If it's a zero, we don't need to do anything, since the
+ // bit is initialized to zero when we bitshifted earlier.
+ if (hdlc->demodulatedBits & 0x01)
+ hdlc->currentByte |= 0x80;
+
+ // Increment the bitIndex and check if we have a complete byte
+ if (++hdlc->bitIndex >= 8) {
+ // If we have a HDLC control character, put a AX.25 escape
+ // in the received data. We know we need to do this,
+ // because at this point we must have already seen a HDLC
+ // flag, meaning that this control character is the result
+ // of a bitstuffed byte that is equal to said control
+ // character, but is actually part of the data stream.
+ // By inserting the escape character, we tell the protocol
+ // layer that this is not an actual control character, but
+ // data.
+ if ((hdlc->currentByte == HDLC_FLAG ||
+ hdlc->currentByte == HDLC_RESET ||
+ hdlc->currentByte == AX25_ESC)) {
+ // We also need to check that our received data buffer
+ // is not full before putting more data in
+ if (!fifo_isfull(fifo)) {
+ fifo_push(fifo, AX25_ESC);
+ } else {
+ // If it is, abort and return false
+ hdlc->receiving = false;
+ LED_RX_OFF();
+ ret = false;
+ }
+ }
+
+ // Push the actual byte to the received data FIFO,
+ // if it isn't full.
+ if (!fifo_isfull(fifo)) {
+ fifo_push(fifo, hdlc->currentByte);
+ } else {
+ // If it is, well, you know by now!
+ hdlc->receiving = false;
+ LED_RX_OFF();
+ ret = false;
+ }
+
+ // Wipe received byte and reset bit index to 0
+ hdlc->currentByte = 0;
+ hdlc->bitIndex = 0;
+
+ } else {
+ // We don't have a full byte yet, bitshift the byte
+ // to make room for the next bit
+ hdlc->currentByte >>= 1;
+ }
+
+ //digitalWrite(13, LOW);
+ return ret;
+}
+
+
+void AFSK_adc_isr(Afsk *afsk, int8_t currentSample) {
+ // To determine the received frequency, and thereby
+ // the bit of the sample, we multiply the sample by
+ // a sample delayed by (samples per bit / 2).
+ // We then lowpass-filter the samples with a
+ // Chebyshev filter. The lowpass filtering serves
+ // to "smooth out" the variations in the samples.
+
+ afsk->iirX[0] = afsk->iirX[1];
+ afsk->iirX[1] = ((int8_t)fifo_pop(&afsk->delayFifo) * currentSample) >> 2;
+
+ afsk->iirY[0] = afsk->iirY[1];
+
+ afsk->iirY[1] = afsk->iirX[0] + afsk->iirX[1] + (afsk->iirY[0] >> 1); // Chebyshev filter
+
+
+ // We put the sampled bit in a delay-line:
+ // First we bitshift everything 1 left
+ afsk->sampledBits <<= 1;
+ // And then add the sampled bit to our delay line
+ afsk->sampledBits |= (afsk->iirY[1] > 0) ? 1 : 0;
+
+ // Put the current raw sample in the delay FIFO
+ fifo_push(&afsk->delayFifo, currentSample);
+
+ // We need to check whether there is a signal transition.
+ // If there is, we can recalibrate the phase of our
+ // sampler to stay in sync with the transmitter. A bit of
+ // explanation is required to understand how this works.
+ // Since we have PHASE_MAX/PHASE_BITS = 8 samples per bit,
+ // we employ a phase counter (currentPhase), that increments
+ // by PHASE_BITS everytime a sample is captured. When this
+ // counter reaches PHASE_MAX, it wraps around by modulus
+ // PHASE_MAX. We then look at the last three samples we
+ // captured and determine if the bit was a one or a zero.
+ //
+ // This gives us a "window" looking into the stream of
+ // samples coming from the ADC. Sort of like this:
+ //
+ // Past Future
+ // 0000000011111111000000001111111100000000
+ // |________|
+ // ||
+ // Window
+ //
+ // Every time we detect a signal transition, we adjust
+ // where this window is positioned little. How much we
+ // adjust it is defined by PHASE_INC. If our current phase
+ // phase counter value is less than half of PHASE_MAX (ie,
+ // the window size) when a signal transition is detected,
+ // add PHASE_INC to our phase counter, effectively moving
+ // the window a little bit backward (to the left in the
+ // illustration), inversely, if the phase counter is greater
+ // than half of PHASE_MAX, we move it forward a little.
+ // This way, our "window" is constantly seeking to position
+ // it's center at the bit transitions. Thus, we synchronise
+ // our timing to the transmitter, even if it's timing is
+ // a little off compared to our own.
+ if (SIGNAL_TRANSITIONED(afsk->sampledBits)) {
+ if (afsk->currentPhase < PHASE_THRESHOLD) {
+ afsk->currentPhase += PHASE_INC;
+ } else {
+ afsk->currentPhase -= PHASE_INC;
+ }
+ }
+
+ // We increment our phase counter
+ afsk->currentPhase += PHASE_BITS;
+
+ // Check if we have reached the end of
+ // our sampling window.
+ if (afsk->currentPhase >= PHASE_MAX) {
+ // If we have, wrap around our phase
+ // counter by modulus
+ afsk->currentPhase %= PHASE_MAX;
+
+ // Bitshift to make room for the next
+ // bit in our stream of demodulated bits
+ afsk->actualBits <<= 1;
+
+ // We determine the actual bit value by reading
+ // the last 3 sampled bits. If there is three or
+ // more 1's, we will assume that the transmitter
+ // sent us a one, otherwise we assume a zero
+ uint8_t bits = afsk->sampledBits & 0x07;
+ if (bits == 0x07 || // 111
+ bits == 0x06 || // 110
+ bits == 0x05 || // 101
+ bits == 0x03 // 011
+ ) {
+ afsk->actualBits |= 1;
+ }
+
+ //// Alternative using five bits ////////////////
+ // uint8_t bits = afsk->sampledBits & 0x0f;
+ // uint8_t c = 0;
+ // c += bits & BV(1);
+ // c += bits & BV(2);
+ // c += bits & BV(3);
+ // c += bits & BV(4);
+ // c += bits & BV(5);
+ // if (c >= 3) afsk->actualBits |= 1;
+ /////////////////////////////////////////////////
+
+ // Now we can pass the actual bit to the HDLC parser.
+ // We are using NRZ coding, so if 2 consecutive bits
+ // have the same value, we have a 1, otherwise a 0.
+ // We use the TRANSITION_FOUND function to determine this.
+ //
+ // This is smart in combination with bit stuffing,
+ // since it ensures a transmitter will never send more
+ // than five consecutive 1's. When sending consecutive
+ // ones, the signal stays at the same level, and if
+ // this happens for longer periods of time, we would
+ // not be able to synchronize our phase to the transmitter
+ // and would start experiencing "bit slip".
+ //
+ // By combining bit-stuffing with NRZ coding, we ensure
+ // that the signal will regularly make transitions
+ // that we can use to synchronize our phase.
+ //
+ // We also check the return of the Link Control parser
+ // to check if an error occured.
+
+ if (!hdlcParse(&afsk->hdlc, !TRANSITION_FOUND(afsk->actualBits), &afsk->rxFifo)) {
+ afsk->status |= 1;
+ if (fifo_isfull(&afsk->rxFifo)) {
+ fifo_flush(&afsk->rxFifo);
+ afsk->status = 0;
+ }
+ }
+ }
+
+}
+
+
+ISR(ADC_vect) {
+ TIFR1 = _BV(ICF1);
+ AFSK_adc_isr(AFSK_modem, ((int16_t)((ADC) >> 2) - 128));
+ if (hw_afsk_dac_isr) {
+ DAC_PORT = (AFSK_dac_isr(AFSK_modem) & 0xF0) | _BV(3);
+ } else {
+ DAC_PORT = 128;
+ }
+ ++_clock;
+}
\ No newline at end of file
diff --git a/hardware/AFSK.h b/hardware/AFSK.h
new file mode 100644
index 0000000..3ea6d61
--- /dev/null
+++ b/hardware/AFSK.h
@@ -0,0 +1,136 @@
+#ifndef AFSK_H
+#define AFSK_H
+
+#include "device.h"
+#include
+#include
+#include
+#include
+#include "util/FIFO.h"
+#include "util/time.h"
+#include "protocol/HDLC.h"
+
+#define SIN_LEN 512
+static const uint8_t sin_table[] PROGMEM =
+{
+ 128, 129, 131, 132, 134, 135, 137, 138, 140, 142, 143, 145, 146, 148, 149, 151,
+ 152, 154, 155, 157, 158, 160, 162, 163, 165, 166, 167, 169, 170, 172, 173, 175,
+ 176, 178, 179, 181, 182, 183, 185, 186, 188, 189, 190, 192, 193, 194, 196, 197,
+ 198, 200, 201, 202, 203, 205, 206, 207, 208, 210, 211, 212, 213, 214, 215, 217,
+ 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233,
+ 234, 234, 235, 236, 237, 238, 238, 239, 240, 241, 241, 242, 243, 243, 244, 245,
+ 245, 246, 246, 247, 248, 248, 249, 249, 250, 250, 250, 251, 251, 252, 252, 252,
+ 253, 253, 253, 253, 254, 254, 254, 254, 254, 255, 255, 255, 255, 255, 255, 255,
+};
+
+inline static uint8_t sinSample(uint16_t i) {
+ uint16_t newI = i % (SIN_LEN/2);
+ newI = (newI >= (SIN_LEN/4)) ? (SIN_LEN/2 - newI -1) : newI;
+ uint8_t sine = pgm_read_byte(&sin_table[newI]);
+ return (i >= (SIN_LEN/2)) ? (255 - sine) : sine;
+}
+
+
+#define SWITCH_TONE(inc) (((inc) == MARK_INC) ? SPACE_INC : MARK_INC)
+#define BITS_DIFFER(bits1, bits2) (((bits1)^(bits2)) & 0x01)
+#define DUAL_XOR(bits1, bits2) ((((bits1)^(bits2)) & 0x03) == 0x03)
+#define SIGNAL_TRANSITIONED(bits) DUAL_XOR((bits), (bits) >> 2)
+#define TRANSITION_FOUND(bits) BITS_DIFFER((bits), (bits) >> 1)
+
+#define CPU_FREQ F_CPU
+
+#define CONFIG_AFSK_RX_BUFLEN 64
+#define CONFIG_AFSK_TX_BUFLEN 64
+#define CONFIG_AFSK_RXTIMEOUT 0
+#define CONFIG_AFSK_PREAMBLE_LEN 150UL
+#define CONFIG_AFSK_TRAILER_LEN 50UL
+#define SAMPLERATE 9600
+#define BITRATE 1200
+#define SAMPLESPERBIT (SAMPLERATE / BITRATE)
+#define BIT_STUFF_LEN 5
+#define MARK_FREQ 1200
+#define SPACE_FREQ 2200
+#define PHASE_BITS 8 // How much to increment phase counter each sample
+#define PHASE_INC 1 // Nudge by an eigth of a sample each adjustment
+#define PHASE_MAX (SAMPLESPERBIT * PHASE_BITS) // Resolution of our phase counter = 64
+#define PHASE_THRESHOLD (PHASE_MAX / 2) // Target transition point of our phase window
+
+
+typedef struct Hdlc
+{
+ uint8_t demodulatedBits;
+ uint8_t bitIndex;
+ uint8_t currentByte;
+ bool receiving;
+} Hdlc;
+
+typedef struct Afsk
+{
+ // Stream access to modem
+ FILE fd;
+
+ // General values
+ Hdlc hdlc; // We need a link control structure
+ uint16_t preambleLength; // Length of sync preamble
+ uint16_t tailLength; // Length of transmission tail
+
+ // Modulation values
+ uint8_t sampleIndex; // Current sample index for outgoing bit
+ uint8_t currentOutputByte; // Current byte to be modulated
+ uint8_t txBit; // Mask of current modulated bit
+ bool bitStuff; // Whether bitstuffing is allowed
+
+ uint8_t bitstuffCount; // Counter for bit-stuffing
+
+ uint16_t phaseAcc; // Phase accumulator
+ uint16_t phaseInc; // Phase increment per sample
+
+ FIFOBuffer txFifo; // FIFO for transmit data
+ uint8_t txBuf[CONFIG_AFSK_TX_BUFLEN]; // Actial data storage for said FIFO
+
+ volatile bool sending; // Set when modem is sending
+
+ // Demodulation values
+ FIFOBuffer delayFifo; // Delayed FIFO for frequency discrimination
+ int8_t delayBuf[SAMPLESPERBIT / 2 + 1]; // Actual data storage for said FIFO
+
+ FIFOBuffer rxFifo; // FIFO for received data
+ uint8_t rxBuf[CONFIG_AFSK_RX_BUFLEN]; // Actual data storage for said FIFO
+
+ int16_t iirX[2]; // IIR Filter X cells
+ int16_t iirY[2]; // IIR Filter Y cells
+
+ uint8_t sampledBits; // Bits sampled by the demodulator (at ADC speed)
+ int8_t currentPhase; // Current phase of the demodulator
+ uint8_t actualBits; // Actual found bits at correct bitrate
+
+ volatile int status; // Status of the modem, 0 means OK
+
+} Afsk;
+
+#define DIV_ROUND(dividend, divisor) (((dividend) + (divisor) / 2) / (divisor))
+#define MARK_INC (uint16_t)(DIV_ROUND(SIN_LEN * (uint32_t)MARK_FREQ, CONFIG_AFSK_DAC_SAMPLERATE))
+#define SPACE_INC (uint16_t)(DIV_ROUND(SIN_LEN * (uint32_t)SPACE_FREQ, CONFIG_AFSK_DAC_SAMPLERATE))
+
+#define AFSK_DAC_IRQ_START() do { extern bool hw_afsk_dac_isr; hw_afsk_dac_isr = true; } while (0)
+#define AFSK_DAC_IRQ_STOP() do { extern bool hw_afsk_dac_isr; hw_afsk_dac_isr = false; } while (0)
+#define AFSK_DAC_INIT() do { DAC_DDR |= 0xF8; } while (0)
+
+// Here's some macros for controlling the RX/TX LEDs
+// THE _INIT() functions writes to the DDRB register
+// to configure the pins as output pins, and the _ON()
+// and _OFF() functions writes to the PORT registers
+// to turn the pins on or off.
+#define LED_TX_INIT() do { LED_DDR |= _BV(1); } while (0)
+#define LED_TX_ON() do { LED_PORT |= _BV(1); } while (0)
+#define LED_TX_OFF() do { LED_PORT &= ~_BV(1); } while (0)
+
+#define LED_RX_INIT() do { LED_DDR |= _BV(2); } while (0)
+#define LED_RX_ON() do { LED_PORT |= _BV(2); } while (0)
+#define LED_RX_OFF() do { LED_PORT &= ~_BV(2); } while (0)
+
+void AFSK_init(Afsk *afsk);
+void AFSK_transmit(char *buffer, size_t size);
+void AFSK_poll(Afsk *afsk);
+
+#endif
\ No newline at end of file
diff --git a/hardware/Serial.c b/hardware/Serial.c
new file mode 100644
index 0000000..fa90d11
--- /dev/null
+++ b/hardware/Serial.c
@@ -0,0 +1,47 @@
+#include "Serial.h"
+#include
+#include
+#include
+
+void serial_init(Serial *serial) {
+ memset(serial, 0, sizeof(*serial));
+ UBRR0H = UBRRH_VALUE;
+ UBRR0L = UBRRL_VALUE;
+
+ #if USE_2X
+ UCSR0A |= _BV(U2X0);
+ #else
+ UCSR0A &= ~(_BV(U2X0));
+ #endif
+
+ // Set to 8-bit data, enable RX and TX
+ UCSR0C = _BV(UCSZ01) | _BV(UCSZ00);
+ UCSR0B = _BV(RXEN0) | _BV(TXEN0);
+
+ FILE uart0_fd = FDEV_SETUP_STREAM(uart0_putchar, uart0_getchar, _FDEV_SETUP_RW);
+
+ serial->uart0 = uart0_fd;
+}
+
+bool serial_available(uint8_t index) {
+ if (index == 0) {
+ if (UCSR0A & _BV(RXC0)) return true;
+ }
+ return false;
+}
+
+
+void uart0_putchar(char c) {
+ loop_until_bit_is_set(UCSR0A, UDRE0);
+ UDR0 = c;
+}
+
+char uart0_getchar(void) {
+ loop_until_bit_is_set(UCSR0A, RXC0);
+ return UDR0;
+}
+
+char uart0_getchar_nowait(void) {
+ if (!(UCSR0A & _BV(RXC0))) return EOF;
+ return UDR0;
+}
\ No newline at end of file
diff --git a/hardware/Serial.h b/hardware/Serial.h
new file mode 100644
index 0000000..7671c28
--- /dev/null
+++ b/hardware/Serial.h
@@ -0,0 +1,20 @@
+#ifndef SERIAL_H
+#define SERIAL_H
+
+#include "device.h"
+
+#include
+#include
+#include
+
+typedef struct Serial {
+ FILE uart0;
+} Serial;
+
+void serial_init(Serial *serial);
+bool serial_available(uint8_t index);
+void uart0_putchar(char c);
+char uart0_getchar(void);
+char uart0_getchar_nowait(void);
+
+#endif
\ No newline at end of file
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..9ff480b
--- /dev/null
+++ b/main.c
@@ -0,0 +1,116 @@
+#include
+#include
+
+#include "device.h"
+#include "util/FIFO.h"
+#include "util/time.h"
+#include "hardware/AFSK.h"
+#include "hardware/Serial.h"
+#include "protocol/AX25.h"
+
+#if SERIAL_PROTOCOL == PROTOCOL_KISS
+ #include "protocol/KISS.h"
+#endif
+
+#if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
+ #include "protocol/SimpleSerial.h"
+#endif
+
+Serial serial;
+Afsk modem;
+AX25Ctx AX25;
+
+#if SERIAL_PROTOCOL == PROTOCOL_KISS
+ static void ax25_callback(struct AX25Ctx *ctx) {
+ kiss_messageCallback(ctx);
+ }
+#endif
+
+#if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
+ static uint8_t serialBuffer[AX25_MAX_FRAME_LEN+1];
+ static int sbyte;
+ static size_t serialLen = 0;
+ static bool sertx = false;
+
+ static void ax25_callback(struct AX25Msg *msg) {
+ ss_messageCallback(msg);
+ }
+#endif
+
+void init(void) {
+ sei();
+
+ AFSK_init(&modem);
+ ax25_init(&AX25, &modem.fd, ax25_callback);
+
+ serial_init(&serial);
+ stdout = &serial.uart0;
+ stdin = &serial.uart0;
+
+ #if SERIAL_PROTOCOL == PROTOCOL_KISS
+ kiss_init(&AX25, &modem, &serial);
+ #endif
+
+ #if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
+ ss_init(&AX25);
+ #endif
+}
+
+int main (void) {
+ init();
+
+ #if SERIAL_PROTOCOL == PROTOCOL_KISS
+ while (true) {
+ ax25_poll(&AX25);
+
+ if (serial_available(0)) {
+ char sbyte = uart0_getchar_nowait();
+ kiss_serialCallback(sbyte);
+ }
+ }
+ #endif
+
+ #if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
+ ticks_t start = timer_clock();
+ while (1) {
+ ax25_poll(&AX25);
+
+ if (!sertx && serial_available(0)) {
+ sbyte = uart0_getchar_nowait();
+
+ #if SERIAL_DEBUG
+ if ((serialLen < AX25_MAX_FRAME_LEN) && (sbyte != 10)) {
+ serialBuffer[serialLen] = sbyte;
+ serialLen++;
+ } else {
+ sertx = true;
+ }
+ #else
+ if (serialLen < AX25_MAX_FRAME_LEN-1) {
+ serialBuffer[serialLen] = sbyte;
+ serialLen++;
+ } else {
+ serialBuffer[serialLen] = sbyte;
+ serialLen++;
+ sertx = true;
+ }
+
+ start = timer_clock();
+ #endif
+ } else {
+ if (!SERIAL_DEBUG && serialLen > 0 && timer_clock() - start > ms_to_ticks(TX_MAXWAIT)) {
+ sertx = true;
+ }
+ }
+
+ if (sertx) {
+ ss_serialCallback(serialBuffer, serialLen, &AX25);
+ sertx = false;
+ serialLen = 0;
+ }
+
+ }
+ #endif
+
+ return(0);
+}
\ No newline at end of file
diff --git a/precompiled/microaprs-3v-kiss-latest.hex b/precompiled/microaprs-3v-kiss-latest.hex
new file mode 100644
index 0000000..6e20ee3
--- /dev/null
+++ b/precompiled/microaprs-3v-kiss-latest.hex
@@ -0,0 +1,362 @@
+:100000000C9474010C9491010C9491010C94910145
+:100010000C9491010C9491010C9491010C94910118
+:100020000C9491010C9491010C9491010C94910108
+:100030000C9491010C9491010C9491010C949101F8
+:100040000C9491010C9491010C9491010C949101E8
+:100050000C9491010C94C9060C9491010C9491019B
+:100060000C9491010C949101808183848687898A04
+:100070008C8E8F9192949597989A9B9D9EA0A2A307
+:10008000A5A6A7A9AAACADAFB0B2B3B5B6B7B9BA79
+:10009000BCBDBEC0C1C2C4C5C6C8C9CACBCDCECF07
+:1000A000D0D2D3D4D5D6D7D9DADBDCDDDEDFE0E1C0
+:1000B000E2E3E4E5E6E7E8E9EAEAEBECEDEEEEEFB1
+:1000C000F0F1F1F2F3F3F4F5F5F6F6F7F8F8F9F9E3
+:1000D000FAFAFAFBFBFCFCFCFDFDFDFDFEFEFEFE5C
+:1000E000FEFFFFFFFFFFFFFF0000891112239B327D
+:1000F0002446AD573665BF74488CC19D5AAFD3BEF8
+:100100006CCAE5DB7EE9F7F88110080193331A2207
+:10011000A5562C47B7753E64C99C408DDBBF52AED7
+:10012000EDDA64CBFFF976E802218B3010029913E7
+:100130002667AF763444BD554AADC3BC588ED19FB7
+:100140006EEBE7FA7CC8F5D983310A2091121803C7
+:10015000A7772E66B5543C45CBBD42ACD99E508F97
+:10016000EFFB66EAFDD874C904428D5316619F7097
+:100170002004A9153227BB364CCEC5DF5EEDD7FC77
+:100180006888E1997AABF3BA85520C4397711E6087
+:10019000A1142805B3373A26CDDE44CFDFFD56EC57
+:1001A000E9986089FBBB72AA06638F7214409D5167
+:1001B0002225AB343006B9174EEFC7FE5CCCD5DD37
+:1001C0006AA9E3B8788AF19B87730E6295501C4147
+:1001D000A3352A24B1163807CFFF46EEDDDC54CD17
+:1001E000EBB962A8F99A708B088481951AA793B627
+:1001F0002CC2A5D33EE1B7F04008C919522BDB3A17
+:10020000644EED5F766DFF7C899400859BB712A6E6
+:10021000ADD224C3BFF136E0C1184809D33B5A2AF6
+:10022000E55E6C4FF77D7E6C0AA583B418869197C6
+:100230002EE3A7F23CC0B5D14229CB38500AD91BD6
+:10024000666FEF7E744CFD5D8BB502A499961087A6
+:10025000AFF326E2BDD034C1C3394A28D11A580BB6
+:10026000E77F6E6EF55C7C4D0CC685D71EE597F476
+:100270002880A1913AA3B3B2444ACD5B5669DF7896
+:10028000600CE91D722FFB3E8DD604C79FF516E466
+:10029000A9902081BBB332A2C55A4C4BD7795E6876
+:1002A000E11C680DF33F7A2E0EE787F61CC495D546
+:1002B0002AA1A3B03882B193466BCF7A5448DD5956
+:1002C000622DEB3C700EF91F8FF706E69DD414C526
+:1002D000ABB122A0B9923083C77B4E6AD5585C4936
+:1002E000E33D6A2CF11E780F11241FBECFEFD8E03A
+:1002F000DEBFCDBF11E0A0E0B1E0E2E6F6E102C072
+:1003000005900D92A231B107D9F716E0A2E1B1E054
+:1003100001C01D92A43EB107E1F70E94EE090C94C2
+:100320002F0B0C9400000C948208789480E893E0E2
+:100330000E94050343E951E060E873E08CE594E036
+:100340000E9463078EE494E00E94C5018EE494E06D
+:100350009093E1068093E0069093DF068093DE069B
+:10036000AC0160E873E08CE594E00C947508909122
+:10037000C00095FFFCCF8093C60008958091C00017
+:1003800087FFFCCF8091C6000895CF93DF93CDB750
+:10039000DEB72E970FB6F894DEBF0FBECDBFDC01DF
+:1003A0009EE0FD01892F11928A95E9F71092C50010
+:1003B00087E68093C400E0ECF0E080818D7F80834D
+:1003C00086E08093C20088E18093C1009E012F5F88
+:1003D0003F4FF90111929A95E9F783E08C8387EBFF
+:1003E00091E09A8789878EEB91E09C878B878EE0DE
+:1003F000F90101900D928A95E1F72E960FB6F894C7
+:10040000DEBF0FBECDBFDF91CF910895811106C031
+:100410008091C000881F8827881F089580E0089574
+:100420008091C00087FF03C08091C60008958FEFC0
+:100430000895E091D406F091D5064FB7F894EB58A3
+:10044000FF4F24813581868197814FBF2817390757
+:10045000E1F0E091D406F091D5062FB7F894EB586F
+:10046000FF4FA481B58182819381A817B90719F440
+:100470008081918104C0A481B581CD0101969583CD
+:1004800084838C912FBF90E008958FEF9FEF0895A4
+:100490000F931F93CF93DF93182FC091D406D09161
+:1004A000D506FE01E959FF4F8081811124C080E407
+:1004B00090E09E8F8D8F1C8E1B8E1A8E01E0008324
+:1004C000299A2091090130910A0140910B01509124
+:1004D0000C01A0EBB4E00E940D0A6056704F8F4FE4
+:1004E0009F4F20E43FE140E050E00E94180A3B8B20
+:1004F0002A8B009313010FB7F894209105013091D6
+:1005000006014091070150910801A0EBB4E00E9460
+:100510000D0A6056704F8F4F9F4F20E43FE140E03F
+:1005200050E00E94180A3D8B2C8B0FBFE091D4063F
+:10053000F091D5065FB7F89423A134A1878D90A1DF
+:100540002817390739F425A136A181A192A12817CE
+:10055000390761F025A136A183A194A1019741E05B
+:100560002817390709F040E0842F01C081E05FBF00
+:1005700080FDDCCFE091D406F091D5064FB7F8941A
+:10058000A5A1B6A11C9325A136A181A192A12817EE
+:10059000390719F4878D90A103C085A196A1019612
+:1005A00096A385A34FBFDF91CF911F910F9108951F
+:1005B000109212010895109212011092800089E1A8
+:1005C0008093810081E896E0909387008093860075
+:1005D00080911201882321F080E480937C0002C086
+:1005E00010927C003898409880917E0081608093C2
+:1005F0007E0087E080937B008CEE80937A008AB146
+:10060000886F8AB9219A229A08950F931F93CF93E6
+:10061000DF93CDB7DEB72E970FB6F894DEBF0FBECF
+:10062000CDBF8C018AECD8011D928A95E9F7109311
+:10063000D5060093D40680E490E0F801968F858F6C
+:10064000C80180599F4FE859FF4F9183808397835A
+:10065000868395838483C8018C589F4F93838283BC
+:10066000C80183589F4FD801AB58BF4F11969C9338
+:100670008E9317969C938E93169715969C938E93B4
+:100680001497C80184549F4F13969C938E9312978E
+:10069000C8018796D80190969C938E935F97969603
+:1006A0009C938E93959794969C938E939397C80161
+:1006B0008A599F4F92969C938E93919784E090E0F5
+:1006C000A681B7811C9246815781228133814217CE
+:1006D000530719F42081318104C0268137812F5FAF
+:1006E0003F4F378326830197009751F70E94DB0223
+:1006F0002EE0FE013196DF01822F1D928A95E9F7E7
+:1007000083E08C8388E492E09A87898789E192E08C
+:100710009C878B87D80101900D922A95E1F72E9640
+:100720000FB6F894DEBF0FBECDBFDF91CF911F9102
+:100730000F9108950F931F93CF93DF938B01E09157
+:10074000D406F091D50625A136A134A323A3EC014C
+:10075000080F191FC017D10721F089910E94480284
+:10076000F9CFDF91CF911F910F910895DC0156963B
+:100770008C9156978111E9C058968C9158978111A8
+:100780009FC093962D913C91949795968D919C91B5
+:1007900096972817390739F454968D919C9155975F
+:1007A000892B09F45CC059968C915997811103C02B
+:1007B0005A961C925A9781E059968C935997529663
+:1007C0008D919C915397009789F593962D913C912B
+:1007D000949795968D919C9196972817390751F487
+:1007E00054968D919C915597019755969C938E9315
+:1007F000549721C09396ED91FC91949791968D9189
+:100800009C919297E817F90729F45F968D919C9136
+:10081000909706C09396ED91FC919497CF01019625
+:1008200094969C938E939397808106C001975396DC
+:100830009C938E9352978EE757968C935797579623
+:100840008C9157978B3191F593962D913C9194977C
+:1008500095968D919C9196972817390741F410929F
+:100860001301A959BF4F1C92299880E008959396CF
+:10087000ED91FC91949791968D919C919297E817A8
+:10088000F90729F45F968D919C91909706C09396F5
+:10089000ED91FC919497CF01019694969C938E9341
+:1008A0009397808157968C93579706C08E578230C6
+:1008B00018F459961C92599781E058968C93589742
+:1008C00059962C9159975D968D919C915E97222314
+:1008D000A9F05A962C915A97253080F05A961C927E
+:1008E0005A978034910519F485E790E002C080E4BE
+:1008F00090E05E969C938E935D9723C058963C91B2
+:10090000589757962C915797232341F05A968C91DC
+:100910005A978F5F5A968C935A970FC05A961C928B
+:100920005A978034910519F485E790E002C080E47D
+:1009300090E05E969C938E935D97330F58963C9310
+:10094000589788E056968C9356975D96ED91FC915A
+:100950005E975B968D919C915C97E80FF91F9F01C4
+:1009600031705C963C932E935B9756968C9156977C
+:10097000815056968C93FF27E038F10530F08FEFC9
+:1009800090E0AC014E1B5F0BFA01E859FF4F8491D8
+:100990002F3F310511F008F080950895EF92FF92F6
+:1009A0000F931F93CF93DF93FC018C0101541F4FD2
+:1009B000D8014D915C91DC01A354BF4F4D935C93E2
+:1009C000DC01A859BF4F14968D919C9115971296F2
+:1009D0002D913C9113978217930721F42D913C910F
+:1009E000119707C014968D919C9115979C012F5FCC
+:1009F0003F4F15963C932E931497EC018881860205
+:100A0000C00111249595879595958795E80199835F
+:100A100088837F01D3ECED0EF11CE7012881398139
+:100A20008F010F531F4FE80139832883840F951FCF
+:100A300035952795820F931FE70199838883AF012E
+:100A40004B535F4F21E0181619060CF020E0EA0125
+:100A50008881880F822B888316968D919C91179799
+:100A6000EC01688316962D913C91179712968D9103
+:100A70009C9113972817390721F48D919C91119718
+:100A800005C016968D919C911797019617969C9389
+:100A90008E931697DA019C91892F869586958927E2
+:100AA0008370DF01AA53BF4F833039F48C918032B9
+:100AB00014F48F5F01C081508C938C91885F8C936C
+:100AC00080340CF45FC18F738C93DF01A953BF4F47
+:100AD0008C91880F97702BEF290F233010F09330F3
+:100AE00009F481608C939C91892F86958927809544
+:100AF00081709685990F892B86878E3709F04EC0B5
+:100B0000DF01AB58BF4F14962D913C9115978D91F5
+:100B10009C9111972817390759F416962D913C91FD
+:100B2000179712968D919C9113972817390781F08A
+:100B300016962D913C91179714968D919C9115972F
+:100B4000019741E02817390709F040E0842F01C0E0
+:100B500081E080FDDCC01696CD91DC9117978EE781
+:100B6000888316962D913C91179712968D919C91A2
+:100B700013972817390721F48D919C91119705C07F
+:100B800016968D919C911797019617969C938E932C
+:100B9000169781E0818B2A9A41E0BCC0982F9F77FD
+:100BA0009F3719F4118A2A98EDC09189992309F485
+:100BB000E9C0982F9F739E3309F4E4C080FF03C0FF
+:100BC00080898068808B87858F5F87879089883050
+:100BD00008F4A5C0DF01AB58BF4F82E8890F82300F
+:100BE00018F09B3109F04BC014962D913C9115974C
+:100BF0008D919C9111972817390759F416962D91CC
+:100C00003C91179712968D919C911397281739074D
+:100C100081F016962D913C91179714968D919C9189
+:100C20001597019741E02817390709F040E0842F14
+:100C300001C081E080FD1FC01696CD91DC91179711
+:100C40008BE1888316962D913C91179712968D9182
+:100C50009C9113972817390721F48D919C91119736
+:100C600005C016968D919C911797019617969C93A7
+:100C70008E93169704C0118A2A9840E001C041E083
+:100C800014962D913C9115978D919C911197281751
+:100C9000390759F416962D913C91179712968D911C
+:100CA0009C9113972817390781F016962D913C9146
+:100CB000179714968D919C911597019751E02817DD
+:100CC000390709F050E0852F01C081E080FD1FC089
+:100CD00080891696CD91DC911797888316962D9171
+:100CE0003C91179712968D919C911397281739076D
+:100CF00021F48D919C91119705C016968D919C9130
+:100D00001797019617969C938E93169703C0118A96
+:100D10002A9840E0108A1786442321F033C0969524
+:100D2000908B30C0DF01A853BF4F8D919C911197DC
+:100D3000816011969C938E93EB58FF4F24813581EF
+:100D4000808191812817390739F426813781828182
+:100D500093812817390761F0268137818481958135
+:100D6000019741E02817390709F040E0842F01C0BE
+:100D700081E080FF07C086819781958384831196E7
+:100D80001C921E92DF91CF911F910F91FF90EF90D7
+:100D900008951F920F920FB60F9211242F933F9335
+:100DA0004F935F936F937F938F939F93AF93BF9373
+:100DB000EF93FF9380E286BB609178007091790099
+:100DC000769567957695679560588091D406909151
+:100DD000D5060E94CE0480911301882349F08091AA
+:100DE000D4069091D5060E94B603807F886001C02A
+:100DF00080E88BB980914A0490914B04A0914C04F7
+:100E0000B0914D040196A11DB11D80934A049093A9
+:100E10004B04A0934C04B0934D04FF91EF91BF910C
+:100E2000AF919F918F917F916F915F914F913F9182
+:100E30002F910F900FBE0F901F901895CF92DF92B9
+:100E4000EF92FF920F931F93CF93DF931F92CDB733
+:100E5000DEB77C01462F82E8860F970124593D4F6B
+:100E60006901823010F06B3149F4F60160817181C3
+:100E70008BE190E049830E94D60A4981D701AE58A0
+:100E8000BD4F2C9111965C911197842F90E0FC013D
+:100E9000E227EE0FFF1FE851FF4F25913491052FF8
+:100EA00010E0202731272D933C93F601608171815A
+:100EB0000F90DF91CF911F910F91FF90EF90DF90F6
+:100EC000CF900C94D60A28E732E0DC01F9011D929C
+:100ED0003197E9F7FC01E459FD4F71836083FC0110
+:100EE000EC58FD4F51834083FC01EE58FD4F2FEF2E
+:100EF0003FEF31832083FC01E059FD4F3183208394
+:100F000008953F924F925F926F927F928F929F923D
+:100F1000AF92BF92CF92DF92EF92FF920F931F9307
+:100F2000CF93DF932C013C0124E9621A2DEF720A62
+:100F30006C0149E8C41A4DEFD40AEC01CA58DD4FE0
+:100F40008C0102591D4F7C0180E9E81A8DEFF80AE7
+:100F500033243394AA24AA94BA2C4201ACE88A1A06
+:100F6000ADEF9A0AF301808191810E94980A8F3F28
+:100F7000FFEF9F0709F458C0D6012C91211128C01A
+:100F80008E379105D1F4F80180819181429768F004
+:100F9000D7018D919C91883B904F39F4D401ED910C
+:100FA000FC91309711F0C20109953882F701B182A6
+:100FB000A082D8011D921C92D5CF8F37910511F4D4
+:100FC0001882D0CF8B31910519F4F6013082CACF47
+:100FD0002881222331F1D8012D913C912C36B2E0A9
+:100FE0003B07F0F4A9014F5F5F4FF8015183408345
+:100FF000F201E20FF31F8083D7012D913C911197ED
+:10100000F901E827FF27EE0FFF1FE851FF4F8591F9
+:101010009491232F3327822793278D939C9301C08C
+:101020001882F60110829ECFDF91CF911F910F9110
+:10103000FF90EF90DF90CF90BF90AF909F908F90F8
+:101040007F906F905F904F903F9008958F929F9206
+:10105000AF92BF92CF92DF92EF92FF920F931F93C6
+:10106000CF93DF938C014B016A017C018EE8E81A73
+:101070008DEFF80A8FEF9FEFF7019183808358017E
+:10108000F4E9AF1AFDEFBF0AF501608171818EE7C7
+:1010900090E00E94D60AE401C80CD91CCC15DD05ED
+:1010A00029F06991C8010E941E07F8CFF7016081FD
+:1010B000C1816095C8010E941E076C2F6095C80110
+:1010C0000E941E07F501608171818EE790E0DF913B
+:1010D000CF911F910F91FF90EF90DF90CF90BF9035
+:1010E000AF909F908F900C94D60A9093D8068093DF
+:1010F000D70650934F0440934E047093DA066093E2
+:10110000D9060895EF92FF920F931F93CF93DF9329
+:10111000EC0160914E0470914F0480EC90E00E94CD
+:10112000D60A60914E0470914F0480E090E00E94D6
+:10113000D60A8E017E0182E9E81A8DEFF80AF701DE
+:101140008081918160914E0470914F0498012C1B15
+:101150003D0B2817390708F5F80181918F01803C74
+:1011600059F48BED90E00E94D60A60914E04709184
+:101170004F048CED90E00EC08B3D59F48BED90E068
+:101180000E94D60A60914E0470914F048DED90E05C
+:1011900001C090E00E94D60AD2CF80EC90E0DF91AF
+:1011A000CF911F910F91FF90EF900C94D60A8F92E0
+:1011B0009F92AF92BF92CF92DF92EF92FF920F93E6
+:1011C0001F93CF93DF93EC017B016A01E091D90675
+:1011D000F091DA068189811144C00E94880A9091B9
+:1011E0000001891788F4A601B701CE01DF91CF91E4
+:1011F0001F910F91FF90EF90DF90CF90BF90AF9035
+:101200009F908F900C9426088FB7F89480904A0492
+:1012100090904B04A0904C04B0904D048FBF20914F
+:101220000101309102014091030150910401AAE0B3
+:10123000B0E00E940D0A4FB7F89400914A04109153
+:101240004B0420914C0430914D044FBF08191909EB
+:101250002A093B0906171707280739070CF0B6CFEC
+:10126000EACFE091D906F091DA068189882309F462
+:10127000ADCF8091D7069091D8060E948107E0916A
+:10128000D906F091DA06E853FF4F80819181892BCE
+:1012900041F311821082DF91CF911F910F91FF9046
+:1012A000EF90DF90CF90BF90AF909F908F90089578
+:1012B000282F8091DB068823A1F0203C01F5809146
+:1012C0000D01811111C01092DB064091DC06509196
+:1012D000DD0664E171E08091D7069091D8060C9408
+:1012E000D708203C09F079C081E08093DB068EEFBF
+:1012F00080930D011092DD061092DC060895809116
+:10130000DC069091DD068C3632E0930708F065C06C
+:1013100030910D01009731F43E3F21F42F7020935E
+:101320000D01089531111FC02B3D21F481E0809300
+:10133000D60608953091D606332349F02C3D21F08E
+:101340002D3D19F42BED01C020EC1092D606AC0116
+:101350004F5F5F4F5093DD064093DC06FC01EC5E6F
+:10136000FE4F20830895313071F430E0AAE0B0E000
+:101370000E94FE096093090170930A0180930B019A
+:1013800090930C010895343089F43AE0239FC00112
+:101390001124AA2797FDA095BA2F80930501909359
+:1013A0000601A0930701B09308010895333089F432
+:1013B0003AE0239FC0011124AA2797FDA095BA2FD8
+:1013C0008093010190930201A0930301B093040163
+:1013D0000895323011F42093000108950E94950180
+:1013E0008CE594E00E94810780E00E940602882339
+:1013F000B9F30E9410020E945809F2CFA29FB001D7
+:10140000B39FC001A39F700D811D1124911DB29F38
+:10141000700D811D1124911D08950E94FE09A59F44
+:10142000900DB49F900DA49F800D911D11240895DF
+:10143000A1E21A2EAA1BBB1BFD010DC0AA1FBB1FD8
+:10144000EE1FFF1FA217B307E407F50720F0A21B4A
+:10145000B30BE40BF50B661F771F881F991F1A94B7
+:1014600069F760957095809590959B01AC01BD01E1
+:10147000CF0108958F929F92AF92BF92CF92DF9249
+:10148000EF92FF92CF93DF93EC01688179818A819B
+:101490009B81611571058105910521F464E279ED67
+:1014A0008BE597E02DE133EF41E050E00E94100B17
+:1014B00049015A019B01AC01A7EAB1E40E940D0A5F
+:1014C0006B017C01ACEEB4EFA50194010E940B0B03
+:1014D000C60ED71EE81EF91EF7FE06C081E0C81A28
+:1014E000D108E10880E8F80AC882D982EA82FB8242
+:1014F000C6019F77DF91CF91FF90EF90DF90CF9063
+:10150000BF90AF909F908F9008950E943A0A0895DF
+:101510008EE091E00E943A0A0895A0E0B0E0809346
+:101520000E0190930F01A0931001B0931101089543
+:10153000CF93DF93EC012B8120FF33C026FF0AC03D
+:101540002F7B2B838E819F8101969F838E838A813F
+:1015500090E029C022FF0FC0E881F981808199279E
+:1015600087FD9095009719F420622B831AC031965D
+:10157000F983E8830EC0EA85FB85099597FF09C0CA
+:101580002B81019611F480E101C080E2822B8B83D4
+:1015900008C02E813F812F5F3F4F3F832E839927C5
+:1015A00002C08FEF9FEFDF91CF9108950F931F93AC
+:1015B000CF93DF93182F092FEB018B8181FD03C09F
+:1015C0008FEF9FEF20C082FF10C04E815F812C8182
+:1015D0003D81421753077CF4E881F9819F012F5F19
+:1015E0003F4F39832883108306C0E885F985812F12
+:1015F0000995892B29F72E813F812F5F3F4F3F832C
+:101600002E83812F902FDF91CF911F910F910895FD
+:10161000B7FF0C940D0A0E940D0A821B930B0895CC
+:10162000052E97FB1EF400940E94270B57FD07D050
+:101630000E94180A07FC03D04EF40C94270B509517
+:101640004095309521953F4F4F4F5F4F08959095AE
+:101650008095709561957F4F8F4F9F4F0895F894B7
+:02166000FFCFBA
+:101662003FC80000003200000096000000FE0100AA
+:02167200000076
+:00000001FF
diff --git a/precompiled/microaprs-3v-ss-latest.hex b/precompiled/microaprs-3v-ss-latest.hex
new file mode 100644
index 0000000..b81ea15
--- /dev/null
+++ b/precompiled/microaprs-3v-ss-latest.hex
@@ -0,0 +1,1250 @@
+:100000000C945E070C947B070C947B070C947B0785
+:100010000C947B070C947B070C947B070C947B0758
+:100020000C947B070C947B070C947B070C947B0748
+:100030000C947B070C947B070C947B070C947B0738
+:100040000C947B070C947B070C947B070C947B0728
+:100050000C947B070C94B00C0C947B070C947B07DE
+:100060000C947B070C947B07808183848687898A24
+:100070008C8E8F9192949597989A9B9D9EA0A2A307
+:10008000A5A6A7A9AAACADAFB0B2B3B5B6B7B9BA79
+:10009000BCBDBEC0C1C2C4C5C6C8C9CACBCDCECF07
+:1000A000D0D2D3D4D5D6D7D9DADBDCDDDEDFE0E1C0
+:1000B000E2E3E4E5E6E7E8E9EAEAEBECEDEEEEEFB1
+:1000C000F0F1F1F2F3F3F4F5F5F6F6F7F8F8F9F9E3
+:1000D000FAFAFAFBFBFCFCFCFDFDFDFDFEFEFEFE5C
+:1000E000FEFFFFFFFFFFFFFF0000891112239B327D
+:1000F0002446AD573665BF74488CC19D5AAFD3BEF8
+:100100006CCAE5DB7EE9F7F88110080193331A2207
+:10011000A5562C47B7753E64C99C408DDBBF52AED7
+:10012000EDDA64CBFFF976E802218B3010029913E7
+:100130002667AF763444BD554AADC3BC588ED19FB7
+:100140006EEBE7FA7CC8F5D983310A2091121803C7
+:10015000A7772E66B5543C45CBBD42ACD99E508F97
+:10016000EFFB66EAFDD874C904428D5316619F7097
+:100170002004A9153227BB364CCEC5DF5EEDD7FC77
+:100180006888E1997AABF3BA85520C4397711E6087
+:10019000A1142805B3373A26CDDE44CFDFFD56EC57
+:1001A000E9986089FBBB72AA06638F7214409D5167
+:1001B0002225AB343006B9174EEFC7FE5CCCD5DD37
+:1001C0006AA9E3B8788AF19B87730E6295501C4147
+:1001D000A3352A24B1163807CFFF46EEDDDC54CD17
+:1001E000EBB962A8F99A708B088481951AA793B627
+:1001F0002CC2A5D33EE1B7F04008C919522BDB3A17
+:10020000644EED5F766DFF7C899400859BB712A6E6
+:10021000ADD224C3BFF136E0C1184809D33B5A2AF6
+:10022000E55E6C4FF77D7E6C0AA583B418869197C6
+:100230002EE3A7F23CC0B5D14229CB38500AD91BD6
+:10024000666FEF7E744CFD5D8BB502A499961087A6
+:10025000AFF326E2BDD034C1C3394A28D11A580BB6
+:10026000E77F6E6EF55C7C4D0CC685D71EE597F476
+:100270002880A1913AA3B3B2444ACD5B5669DF7896
+:10028000600CE91D722FFB3E8DD604C79FF516E466
+:10029000A9902081BBB332A2C55A4C4BD7795E6876
+:1002A000E11C680DF33F7A2E0EE787F61CC495D546
+:1002B0002AA1A3B03882B193466BCF7A5448DD5956
+:1002C000622DEB3C700EF91F8FF706E69DD414C526
+:1002D000ABB122A0B9923083C77B4E6AD5585C4936
+:1002E000E33D6A2CF11E780F2D2D2D2D2D2D2D2D5A
+:1002F0002D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2E
+:100300002D2D2D2D2D2D2D2D2D2D0A004820202079
+:100310002020202020205072696E7420636F6E664A
+:10032000696775726174696F6E0A0043202020202E
+:100330002020202020436C65617220636F6E666907
+:100340006775726174696F6E0A004C20202020204E
+:10035000202020204C6F616420636F6E6669677592
+:10036000726174696F6E0A005320202020202020C3
+:1003700020205361766520636F6E666967757261D0
+:1003800074696F6E0A00573C5858583E2020202050
+:10039000536574207472616E736D697373696F6EE7
+:1003A000207461696C2074696D6520696E206D73BD
+:1003B0000A00773C5858583E20202020536574206E
+:1003C000707265616D626C652074696D6520696E1F
+:1003D000206D730A00563C312F303E2020202053E0
+:1003E000696C656E74206D6F6465206F6E2F6F662B
+:1003F000660A0A00763C312F303E202020205665C8
+:1004000072626F7365206D6F6465206F6E2F6F660B
+:10041000660A0070693C312F303E202020507269FE
+:100420006E7420494E464F206F6E2F6F66660A0A23
+:1004300000706D3C312F303E2020205072696E7468
+:100440002044415441206F6E2F6F66660A00707021
+:100450003C312F303E2020205072696E7420504174
+:100460005448206F6E2F6F66660A0070643C312F0F
+:10047000303E2020205072696E7420445354206F07
+:100480006E2F6F66660A0070733C312F303E20205D
+:10049000205072696E7420535243206F6E2F6F6626
+:1004A000660A006D613C312F303E2020204175747A
+:1004B0006F6D61746963206D657373616765204159
+:1004C000434B206F6E2F6F66660A0A006D723C7395
+:1004D0007369643E20205265747279206C61737474
+:1004E000206D6573736167650A006D733C73736992
+:1004F000643E2020536574206D65737361676520C9
+:10050000726563697069656E7420535349440A00CB
+:100510006D633C63616C6C3E2020536574206D6597
+:10052000737361676520726563697069656E7420B5
+:1005300063616C6C7369676E0A006C743C732F6145
+:100540003E20202053656C6563742073796D626F63
+:100550006C207461626C6520287374616E646172D2
+:10056000642F616C7465726E617465290A0A006C8F
+:10057000733C73796D3E20202053656C6563742055
+:1005800073796D626F6C0A006C643C302D393E20CB
+:10059000202053657420616E74656E6E61206469FD
+:1005A00072656374697669747920696E666F0A0092
+:1005B0006C673C302D393E20202053657420616EDD
+:1005C00074656E6E61206761696E20696E666F0A80
+:1005D000006C683C302D393E20202053657420612A
+:1005E0006E74656E6E612068656967687420696EF7
+:1005F000666F0A006C703C302D393E202020536518
+:100600007420545820706F77657220696E666F0A87
+:10061000006C6C6F3C4C4F4E3E2020536574206C38
+:100620006174697475646520284E4D45412D666F6F
+:10063000726D61742C2065672030373230312E376F
+:100640003557290A006C6C613C4C41543E202053C4
+:100650006574206C6174697475646520284E4D451D
+:10066000412D666F726D61742C20656720343930BE
+:10067000332E35304E290A0073323C737369643E61
+:10068000202053657420504154483220535349442C
+:100690000A0A0073313C737369643E202053657409
+:1006A00020504154483120535349440A0073643C5C
+:1006B000737369643E2020536574206465737469A4
+:1006C0006E6174696F6E20535349440A0073633C32
+:1006D000737369643E202053657420796F757220AE
+:1006E000535349440A00323C63616C6C3E20202025
+:1006F0005365742050415448322063616C6C7369B7
+:10070000676E0A0A00313C63616C6C3E2020205306
+:1007100065742050415448312063616C6C73696783
+:100720006E0A00643C63616C6C3E2020205365744B
+:100730002064657374696E6174696F6E2063616CA7
+:100740006C7369676E0A00633C63616C6C3E2020C9
+:100750002053657420796F75722063616C6C7369C6
+:10076000676E0A00233C6D73673E2020202053658E
+:100770006E642041505253206D6573736167650A42
+:100780000A00403C636D743E2020202053656E6457
+:10079000206C6F636174696F6E207570646174653D
+:1007A0002028636D74203D206F7074696F6E616CDA
+:1007B00020636F6D6D656E74290A00213C6461745D
+:1007C000613E20202053656E642072617720706145
+:1007D000636B65740A0053657269616C20636F6DA9
+:1007E0006D616E64733A0A002D2D2D2D2D2D2D2D4A
+:1007F0002D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D29
+:100800002D2D2D2D2D2D2D2D2D2D0A0054582054FC
+:1008100061696C3A20256C750A0054582050726545
+:10082000616D626C653A20256C750A0053796D62C2
+:100830006F6C3A2025630A0053796D626F6C2074E7
+:1008400061626C653A207374616E646172640A005F
+:1008500053796D626F6C207461626C653A20616CD3
+:100860007465726E6174650A0044697265637469C7
+:10087000766974793A2025640A004761696E3A20E6
+:1008800025640A004865696768743A2025640A008F
+:10089000506F7765723A2025640A004175746F2D98
+:1008A00061636B206D657373616765733A204F6692
+:1008B000660A004175746F2D61636B206D657373FB
+:1008C000616765733A204F6E0A0050617468323A6E
+:1008D00020252E36732D25640A0050617468313A44
+:1008E00020252E36732D25640A0044657374696EC5
+:1008F0006174696F6E3A20252E36732D25640A00C7
+:1009000043616C6C7369676E3A20252E36732D2512
+:10091000640A00436F6E66696775726174696F6E11
+:100920003A0A00300A004572726F723A20496E76B8
+:10093000616C696420636F6D6D616E640A0045725D
+:10094000726F723A20496E76616C69642076616CD0
+:10095000756520666F72205458207461696C0A00B6
+:100960005458205461696C2073657420746F20257D
+:100970006C756D730A004572726F723A20496E761B
+:10098000616C69642076616C756520666F72207099
+:100990007265616D626C650A00507265616D626CB2
+:1009A000652073657420746F20256C756D730A0063
+:1009B000310A004D657373616765206175746F2D31
+:1009C00061636B2064697361626C65640A00310A5B
+:1009D000004D657373616765206175746F2D616388
+:1009E0006B20656E61626C65640A00310A005265B5
+:1009F0007472696564206C617374206D65737361D2
+:100A000067650A00310A000A002D25640A004D6559
+:100A1000737361676520726563697069656E743AA6
+:100A200020252E367300310A000A002D25640A00A5
+:100A30004D65737361676520726563697069656E82
+:100A4000743A20252E367300310A0053656C6563B5
+:100A5000746564207374616E646172642073796D6F
+:100A6000626F6C207461626C650A0053656C65632B
+:100A700074656420616C7465726E6174652073794D
+:100A80006D626F6C207461626C650A0053796D62EF
+:100A90006F6C2073657420746F2025630A004469AD
+:100AA0007265637469766974792073657420746FF4
+:100AB0002025646465670A00446972656374697619
+:100AC0006974792073657420746F206F6D6E690A84
+:100AD00000310A00310A004761696E207365742095
+:100AE000746F20256464420A00310A00416E746507
+:100AF0006E6E612068656967687420736574207420
+:100B00006F20256C646D204141540A00310A005069
+:100B10006F7765722073657420746F202564770A7F
+:100B200000310A004C6F6E677469747564652073D8
+:100B3000657420746F20252E39730A00310A004C29
+:100B4000617469747564652073657420746F202501
+:100B50002E38730A0053696C656E74206D6F64657E
+:100B60002064697361626C65640A0053696C656E28
+:100B700074206D6F646520656E61626C65640A0047
+:100B8000566572626F7365206D6F6465206469736A
+:100B900061626C65640A00566572626F7365206DF0
+:100BA0006F646520656E61626C65640A00310A00DD
+:100BB0005072696E7420494E464F206469736162B9
+:100BC0006C65640A00310A005072696E7420494EE7
+:100BD000464F20656E61626C65640A00310A005000
+:100BE00072696E7420444154412064697361626C7F
+:100BF00065640A00310A005072696E7420444154E1
+:100C00004120656E61626C65640A00310A005072B1
+:100C1000696E7420504154482064697361626C6548
+:100C2000640A00310A005072696E742050415448C1
+:100C300020656E61626C65640A00310A0050726959
+:100C40006E74204453542064697361626C65640A55
+:100C500000310A005072696E742044535420656E4E
+:100C600061626C65640A00310A005072696E74201A
+:100C70005352432064697361626C65640A00310AEF
+:100C8000005072696E742053524320656E61626C2D
+:100C900065640A00310A0050617468323A20252EDA
+:100CA00036732D25640A00310A0050617468313AA8
+:100CB00020252E36732D25640A00310A0044657301
+:100CC00074696E6174696F6E3A20252E36732D2516
+:100CD000640A00310A0043616C6C7369676E3A20E4
+:100CE000252E36732D25640A00310A005061746880
+:100CF000323A20252E36732D25640A00310A005021
+:100D0000617468313A20252E36732D25640A00312E
+:100D10000A0044657374696E6174696F6E3A2025C8
+:100D20002E36732D25640A00310A0043616C6C7302
+:100D300069676E3A20252E36732D25640A00310A24
+:100D4000004D6573736167652073656E740A0031C9
+:100D50000A004C6F636174696F6E20757064617412
+:100D6000652073656E740A00310A005061636B651B
+:100D7000742073656E740A000D0A00444154413AB0
+:100D800020005B252E36732D25645D2000504154D4
+:100D9000483A20005B252E36732D25645D200044E3
+:100DA00053543A20005B252E36732D25645D2000B8
+:100DB0005352433A2000310A00436F6E66696775EB
+:100DC000726174696F6E2073617665640A00300A1F
+:100DD000004572726F723A204E6F2073746F7265A5
+:100DE0006420636F6E66696775726174696F6E20E7
+:100DF000746F206C6F6164210A00436F6E666967CF
+:100E000075726174696F6E206C6F616465640A004D
+:100E1000310A00436F6E66696775726174696F6E3F
+:100E200020636C65617265642E2052657374617213
+:100E30007420746F206C6F61642064656661756CEA
+:100E400074732E0A002D2D2D2D2D2D2D2D2D2D2D94
+:100E50002D2D2D2D0A004D6F64656D207265616426
+:100E6000790A0044656661756C7420636F6E66690B
+:100E70006775726174696F6E206C6F61646564215F
+:100E80000A00756E7369676E65642E696F2F6D69F0
+:100E900063726F617072730A004D6963726F4150C3
+:100EA00052532076312E30620A002D2D2D2D2D2DFE
+:100EB0002D2D2D2D2D2D2D2D2D0A000011241FBE81
+:100EC000CFEFD8E0DEBFCDBF11E0A0E0B1E0EAEBAC
+:100ED000FDE402C005900D92A234B107D9F716E0E7
+:100EE000A2E4B1E001C01D92A23CB107E1F70E946B
+:100EF000C5200C94DB260C9400000C942C147894E0
+:100F000088EE93E00E94EC084DE757E068EE73E04E
+:100F100084EC94E00E944A0D86EB94E00E94AC07BA
+:100F200086EB94E09093BF068093BE069093BD0637
+:100F30008093BC0684EC94E00C94C6129091C0009F
+:100F400095FFFCCF8093C60008958091C00087FF75
+:100F5000FCCF8091C6000895CF93DF93CDB7DEB765
+:100F60002E970FB6F894DEBF0FBECDBFDC019EE01A
+:100F7000FD01892F11928A95E9F71092C50087E645
+:100F80008093C400E0ECF0E080818D7F808386E078
+:100F90008093C20088E18093C1009E012F5F3F4F84
+:100FA000F90111929A95E9F783E08C838EE997E035
+:100FB0009A87898785EA97E09C878B878EE0F9017D
+:100FC00001900D928A95E1F72E960FB6F894DEBF48
+:100FD0000FBECDBFDF91CF910895811106C08091E2
+:100FE000C000881F8827881F089580E00895809199
+:100FF000C00087FF03C08091C60008958FEF089559
+:10100000E0911A06F0911B064FB7F894EB58FF4F8A
+:1010100024813581868197814FBF28173907E1F0F8
+:10102000E0911A06F0911B062FB7F894EB58FF4F8A
+:10103000A481B58182819381A817B90719F48081B1
+:10104000918104C0A481B581CD01019695838483EB
+:101050008C912FBF90E008958FEF9FEF08950F932D
+:101060001F93CF93DF93182FC0911A06D0911B06C0
+:10107000FE01E959FF4F8081811124C080E490E096
+:101080009E8F8D8F1C8E1B8E1A8E01E00083299AF5
+:101090002091090130910A0140910B0150910C01FE
+:1010A000A0EBB4E00E944E216056704F8F4F9F4FCF
+:1010B00020E43FE140E050E00E946D213B8B2A8B11
+:1010C000009393020FB7F894209105013091060127
+:1010D0004091070150910801A0EBB4E00E944E211D
+:1010E0006056704F8F4F9F4F20E43FE140E050E04B
+:1010F0000E946D213D8B2C8B0FBFE0911A06F09161
+:101100001B065FB7F89423A134A1878D90A12817FF
+:10111000390739F425A136A181A192A128173907F1
+:1011200061F025A136A183A194A1019741E0281780
+:10113000390709F040E0842F01C081E05FBF80FDE6
+:10114000DCCFE0911A06F0911B064FB7F894A5A1E9
+:10115000B6A11C9325A136A181A192A12817390718
+:1011600019F4878D90A103C085A196A1019696A33D
+:1011700085A34FBFDF91CF911F910F9108951092DA
+:1011800092020895109292021092800089E1809359
+:10119000810081E896E0909387008093860080919B
+:1011A0009202882321F080E480937C0002C0109298
+:1011B0007C003898409880917E00816080937E000A
+:1011C00087E080937B008CEE80937A008AB1886FF1
+:1011D0008AB9219A229A08950F931F93CF93DF9390
+:1011E000CDB7DEB72E970FB6F894DEBF0FBECDBFDA
+:1011F0008C018AECD8011D928A95E9F710931B06A1
+:1012000000931A0680E490E0F801968F858FC8015C
+:1012100080599F4FE859FF4F91838083978386833E
+:1012200095838483C8018C589F4F93838283C80120
+:1012300083589F4FD801AB58BF4F11969C938E9304
+:1012400017969C938E93169715969C938E9314974E
+:10125000C80184549F4F13969C938E931297C80194
+:101260008796D80190969C938E935F9796969C93C1
+:101270008E93959794969C938E939397C8018A59D1
+:101280009F4F92969C938E93919784E090E0A681D5
+:10129000B7811C92468157812281338142175307BF
+:1012A00019F42081318104C0268137812F5F3F4F9F
+:1012B000378326830197009751F70E94C2082EE0DA
+:1012C000FE013196DF01822F1D928A95E9F783E0B6
+:1012D0008C838FE298E09A87898780E098E09C87EA
+:1012E0008B87D80101900D922A95E1F72E960FB6C3
+:1012F000F894DEBF0FBECDBFDF91CF911F910F914C
+:1013000008950F931F93CF93DF938B01E0911A06FB
+:10131000F0911B0625A136A134A323A3EC01080FED
+:10132000191FC017D10721F089910E942F08F9CF0A
+:10133000DF91CF911F910F910895DC0156968C910A
+:1013400056978111E9C058968C91589781119FC08A
+:1013500093962D913C91949795968D919C9196970B
+:101360002817390739F454968D919C915597892BFC
+:1013700009F45CC059968C915997811103C05A9613
+:101380001C925A9781E059968C93599752968D9159
+:101390009C915397009789F593962D913C91949742
+:1013A00095968D919C9196972817390751F45496EC
+:1013B0008D919C915597019755969C938E93549738
+:1013C00021C09396ED91FC91949791968D919C916B
+:1013D0009297E817F90729F45F968D919C91909761
+:1013E00006C09396ED91FC919497CF010196949647
+:1013F0009C938E939397808106C0019753969C93FC
+:101400008E9352978EE757968C93579757968C9159
+:1014100057978B3191F593962D913C919497959692
+:101420008D919C9196972817390741F41092930259
+:10143000A959BF4F1C92299880E008959396ED9189
+:10144000FC91949791968D919C919297E817F9074A
+:1014500029F45F968D919C91909706C09396ED919B
+:10146000FC919497CF01019694969C938E939397B9
+:10147000808157968C93579706C08E57823018F408
+:1014800059961C92599781E058968C935897599683
+:101490002C9159975D968D919C915E972223A9F08E
+:1014A0005A962C915A97253080F05A961C925A974A
+:1014B0008034910519F485E790E002C080E490E063
+:1014C0005E969C938E935D9723C058963C91589757
+:1014D00057962C915797232341F05A968C915A97FF
+:1014E0008F5F5A968C935A970FC05A961C925A97B0
+:1014F0008034910519F485E790E002C080E490E023
+:101500005E969C938E935D97330F58963C935897B5
+:1015100088E056968C9356975D96ED91FC915E9778
+:101520005B968D919C915C97E80FF91F9F0131703C
+:101530005C963C932E935B9756968C915697815070
+:1015400056968C93FF27E038F10530F08FEF90E04E
+:10155000AC014E1B5F0BFA01E859FF4F84912F3FFE
+:10156000310511F008F080950895EF92FF920F93E6
+:101570001F93CF93DF93FC018C0101541F4FD801BF
+:101580004D915C91DC01A354BF4F4D935C93DC0102
+:10159000A859BF4F14968D919C91159712962D9135
+:1015A0003C9113978217930721F42D913C91119749
+:1015B00007C014968D919C9115979C012F5F3F4F0A
+:1015C00015963C932E931497EC0188818602C001F6
+:1015D00011249595879595958795E801998388833A
+:1015E0007F01D3ECED0EF11CE701288139818F01D9
+:1015F0000F531F4FE80139832883840F951F3595BA
+:101600002795820F931FE70199838883AF014B537E
+:101610005F4F21E0181619060CF020E0EA018881DE
+:10162000880F822B888316968D919C911797EC01D9
+:10163000688316962D913C91179712968D919C91E7
+:1016400013972817390721F48D919C91119705C0A4
+:1016500016968D919C911797019617969C938E9351
+:101660001697DA019C91892F869586958927837034
+:10167000DF01AA53BF4F833039F48C91803214F4C8
+:101680008F5F01C081508C938C91885F8C938034E4
+:101690000CF45FC18F738C93DF01A953BF4F8C9102
+:1016A000880F97702BEF290F233010F0933009F437
+:1016B00081608C939C91892F869589278095817074
+:1016C0009685990F892B86878E3709F04EC0DF01EA
+:1016D000AB58BF4F14962D913C9115978D919C91CD
+:1016E00011972817390759F416962D913C911797A1
+:1016F00012968D919C9113972817390781F01696B1
+:101700002D913C91179714968D919C911597019767
+:1017100041E02817390709F040E0842F01C081E03B
+:1017200080FDDCC01696CD91DC9117978EE78883FB
+:1017300016962D913C91179712968D919C91139727
+:101740002817390721F48D919C91119705C01696A1
+:101750008D919C911797019617969C938E9316974F
+:1017600081E0818B2A9A41E0BCC0982F9F779F37F8
+:1017700019F4118A2A98EDC09189992309F4E9C0D6
+:10178000982F9F739E3309F4E4C080FF03C08089C3
+:101790008068808B87858F5F87879089883008F481
+:1017A000A5C0DF01AB58BF4F82E8890F823018F027
+:1017B0009B3109F04BC014962D913C9115978D915A
+:1017C0009C9111972817390759F416962D913C9141
+:1017D000179712968D919C9113972817390781F0CE
+:1017E00016962D913C91179714968D919C91159773
+:1017F000019741E02817390709F040E0842F01C024
+:1018000081E080FD1FC01696CD91DC9117978BE18A
+:10181000888316962D913C91179712968D919C91E5
+:1018200013972817390721F48D919C91119705C0C2
+:1018300016968D919C911797019617969C938E936F
+:10184000169704C0118A2A9840E001C041E014961E
+:101850002D913C9115978D919C91119728173907DF
+:1018600059F416962D913C91179712968D919C9153
+:1018700013972817390781F016962D913C911797E9
+:1018800014968D919C911597019751E0281739076F
+:1018900009F050E0852F01C081E080FD1FC08089E4
+:1018A0001696CD91DC911797888316962D913C91D1
+:1018B000179712968D919C9113972817390721F449
+:1018C0008D919C91119705C016968D919C911797BB
+:1018D000019617969C938E93169703C0118A2A98A7
+:1018E00040E0108A1786442321F033C09695908BF0
+:1018F00030C0DF01A853BF4F8D919C91119781603B
+:1019000011969C938E93EB58FF4F248135818081F3
+:1019100091812817390739F4268137818281938193
+:101920002817390761F026813781848195810197D5
+:1019300041E02817390709F040E0842F01C081E019
+:1019400080FF07C0868197819583848311961C92BE
+:101950001E92DF91CF911F910F91FF90EF9008950C
+:101960001F920F920FB60F9211242F933F934F9314
+:101970005F936F937F938F939F93AF93BF93EF93F7
+:10198000FF9380E286BB6091780070917900769534
+:10199000679576956795605880911A0690911B0619
+:1019A0000E94B50A80919302882349F080911A061B
+:1019B00090911B060E949D09807F886001C080E88D
+:1019C0008BB98091B2049091B304A091B404B0910A
+:1019D000B5040196A11DB11D8093B2049093B30488
+:1019E000A093B404B093B504FF91EF91BF91AF9170
+:1019F0009F918F917F916F915F914F913F912F9127
+:101A00000F900FBE0F901F901895CF92DF92EF921C
+:101A1000FF920F931F93CF93DF931F92CDB7DEB743
+:101A20007C01462F82E8860F9701265B3E4F6901B5
+:101A3000823010F06B3149F4F601608171818BE1E5
+:101A400090E049830E94BC234981D701A05BBE4F2F
+:101A50002C9111965C911197842F90E0FC01E22764
+:101A6000EE0FFF1FE851FF4F25913491052F10E035
+:101A7000202731272D933C93F601608171810F90CF
+:101A8000DF91CF911F910F91FF90EF90DF90CF905A
+:101A90000C94BC2326E531E0DC01F9011D9231975D
+:101AA000E9F7FC01E65BFE4F71836083FC01EE5AAF
+:101AB000FE4F51834083FC01E05BFE4F2FEF3FEF71
+:101AC00031832083FC01E25BFE4F31832083089544
+:101AD0002F923F924F925F926F927F928F929F923E
+:101AE000AF92BF92CF92DF92EF92FF920F931F932C
+:101AF000CF93DF93CDB7DEB7C555D1090FB6F894B4
+:101B0000DEBF0FBECDBF8C01865B9E4F64969FAF3C
+:101B10008EAF649728019BEA491A9EEF590A580133
+:101B2000ACEAAA1AAEEFBA0A7801B4EBEB1ABEEF30
+:101B3000FB0A6496EEADFFAD6497808191810E94AF
+:101B40007E238F3FFFEF9F0709F424C1D2012C9120
+:101B50002111F1C08E37910509F0E1C0F7014081F4
+:101B60005181C801825B9E4F62969FAF8EAF629794
+:101B70004231510508F4C4C0DC018D919C91883B31
+:101B8000904F09F0BDC0D801FE013896CE010E96E7
+:101B90002D912695203209F420E02193E817F907CA
+:101BA000B9F7F801868186958F708E87D8011796D0
+:101BB000FE013196CF0106962D912695203209F42B
+:101BC00020E02193E817F907B9F7F8013D96D8010D
+:101BD0001D968C9186958F708F8329968FAC29974F
+:101BE000912C97E0792E61E070E0808180FF10C039
+:101BF00028969FAE289729968FAE2997818190E0ED
+:101C00002B969FAF8EAF2B97039709F079C057C0E3
+:101C1000B7E0B91568F322242394312C2C0E3D1E15
+:101C200027E0929E200C311C1124CF01019666966C
+:101C30009FAF8EAF669780E090E0292D30E06696EA
+:101C4000AEADBFAD66976D906696BFAFAEAF66970F
+:101C50006694B0E26B1201C0612C6101C80ED91EFE
+:101C6000D6011E966C9201968630910541F7379603
+:101C70009081729ED001739EB00D1124CC24C39428
+:101C8000D12CCC0EDD1EAC0DBD1D892F86958F701D
+:101C900054968C9397FF08C0CB0102C0880F991F00
+:101CA0002A95E2F7882A09C0DB0102C0AA0FBB1FF0
+:101CB0002A95E2F79D0120958222939496CF828106
+:101CC0002C968FAF2C97803FD9F433964250510910
+:101CD000C8018E1B9F0B480F591F60965FAF4EAF18
+:101CE00060972E96FFAFEEAF2E97F801EE5AFE4F9B
+:101CF0000190F081E02D309719F0CE010196099501
+:101D000081E0D5018C938FEF9FEF6296EEADFFAD32
+:101D1000629791838083D7011D921C920ACF8F37DF
+:101D2000910511F4F50134C08B31910521F481E066
+:101D3000D2018C93FECEF5012081222341F1D701FF
+:101D40002D913C912A34B1E03B0700F5A9014F5F8A
+:101D50005F4FF70151834083F801E20FF31F808347
+:101D6000D801A25BBE4F2D913C911197F901E82754
+:101D7000FF27EE0FFF1FE851FF4F85919491232F0E
+:101D80003327822793278D939C9301C01082F20101
+:101D90001082CFCECB5ADF4F0FB6F894DEBF0FBE06
+:101DA000CDBFDF91CF911F910F91FF90EF90DF900A
+:101DB000CF90BF90AF909F908F907F906F905F90EB
+:101DC0004F903F902F9008958F929F92AF92BF9225
+:101DD000CF92DF92EF92FF920F931F93CF93DF93F7
+:101DE0008C014B016A017C0180EBE81A8EEFF80A46
+:101DF0008FEF9FEFF701918380835801F6EBAF1AC5
+:101E0000FEEFBF0AF501608171818EE790E00E94CC
+:101E1000BC23E401C80CD91CCC15DD0529F069915F
+:101E2000C8010E94050DF8CFF7016081C18160955E
+:101E3000C8010E94050D6C2F6095C8010E94050D18
+:101E4000F501608171818EE790E0DF91CF911F9164
+:101E50000F91FF90EF90DF90CF90BF90AF909F9049
+:101E60008F900C94BC232F923F924F925F926F926F
+:101E70007F928F929F92AF92BF92CF92DF92EF921A
+:101E8000FF920F931F93CF93DF93CDB7DEB72997C0
+:101E90000FB6F894DEBF0FBECDBF998788876B0160
+:101EA0004A012C833D835C0180EBA81A8EEFB80AAF
+:101EB0008FEF9FEFF5019183808328843984F6EBBF
+:101EC0002F1AFEEF3F0AF101608171818EE790E0E9
+:101ED0000E94BC237601C12CD12CC40101979B83A5
+:101EE0008A83C814D90409F458C091E09983EA811F
+:101EF000FB81CE16DF0609F01982F7010190002060
+:101F0000E9F7CF0101973C016E187F0897E0691649
+:101F1000710418F026E0622E712C93012E0D3F1DE6
+:101F200027014216530689F0F20181912F0190E0BA
+:101F30002E833F830E946523682F660F88859985CD
+:101F40000E94050D3F812E81ECCFF6E06F167104E3
+:101F500099F0412C512C86E090E0861997093C01BC
+:101F60004614570448F460E4888599850E94050D5D
+:101F70009FEF491A590AF4CF89818066F70166817B
+:101F8000660F682B888599850E94050DFFEFCF1A93
+:101F9000DF0A87E0E80EF11CA4CF63E0888599850D
+:101FA0000E94050D60EF888599850E94050DEC80E3
+:101FB000FD800E0D1F1DE016F10641F0F701619145
+:101FC0007F01888599850E94050DF5CFF501608117
+:101FD00011816095888599850E94050D612F609516
+:101FE000888599850E94050DF101608171818EE7D8
+:101FF00090E029960FB6F894DEBF0FBECDBFDF91FB
+:10200000CF911F910F91FF90EF90DF90CF90BF90F5
+:10201000AF909F908F907F906F905F904F903F9088
+:102020002F900C94BC2390931E0680931D06509312
+:10203000B7044093B6047093200660931F0608957A
+:10204000EF92FF920F931F93CF93DF93EC01609178
+:10205000B6047091B70480EC90E00E94BC236091BC
+:10206000B6047091B70480E090E00E94BC238E011A
+:102070007E0184EBE81A8EEFF80AF70180819181E6
+:102080006091B6047091B70498012C1B3D0B281782
+:10209000390708F5F80181918F01803C59F48BEDE7
+:1020A00090E00E94BC236091B6047091B7048CED5F
+:1020B00090E00EC08B3D59F48BED90E00E94BC2364
+:1020C0006091B6047091B7048DED90E001C090E08E
+:1020D0000E94BC23D2CF80EC90E0DF91CF911F9182
+:1020E0000F91FF90EF900C94BC238F929F92AF9230
+:1020F000BF92CF92DF92EF92FF920F931F93CF93F5
+:10210000DF93EC017B016A01E0911F06F09120064C
+:102110008189811144C00E94372390910001891761
+:1021200088F4A601B701CE01DF91CF911F910F91E5
+:10213000FF90EF90DF90CF90BF90AF909F908F90E7
+:102140000C94E40E8FB7F8948090B2049090B3048E
+:10215000A090B404B090B5048FBF209101013091DC
+:1021600002014091030150910401AAE0B0E00E94F5
+:102170004E214FB7F8940091B2041091B30420910E
+:10218000B4043091B5044FBF081919092A093B0955
+:1021900006171707280739070CF0B6CFEACFE091EA
+:1021A0001F06F09120068189882309F4ADCF809124
+:1021B0001D0690911E060E94680DE0911F06F09189
+:1021C0002006E853FF4F80819181892B41F31182D2
+:1021D0001082DF91CF911F910F91FF90EF90DF90D0
+:1021E000CF90BF90AF909F908F900895282F8091AF
+:1021F00021068823A1F0203C01F580910D01811179
+:1022000011C010922106409122065091230664E9E4
+:1022100072E080911D0690911E060C947510203C72
+:1022200009F079C081E0809321068EEF80930D0143
+:102230001092230610922206089580912206909112
+:1022400023068A3431E0930708F065C030910D0110
+:10225000009731F43E3F21F42F7020930D01089533
+:1022600031111FC02B3D21F481E080931C0608959D
+:1022700030911C06332349F02C3D21F02D3D19F4FB
+:102280002BED01C020EC10921C06AC014F5F5F4F9C
+:102290005093230640932206FC01EC56FD4F208309
+:1022A0000895313071F430E0AAE0B0E00E943821A6
+:1022B0006093090170930A0180930B0190930C01C4
+:1022C0000895343089F43AE0239FC0011124AA27ED
+:1022D00097FDA095BA2F8093050190930601A093D6
+:1022E0000701B09308010895333089F43AE0239F41
+:1022F000C0011124AA2797FDA095BA2F8093010150
+:1023000090930201A0930301B09304010895323029
+:1023100011F42093000108956FEF8EE290E00E9487
+:10232000102680913201882341F083E19EE09F9343
+:102330008F930E94EE230F900F90809132018111B4
+:102340000CC08091E703811108C080E19EE09F935B
+:102350008F930E94EE230F900F900895CF938EE2FB
+:1023600090E00E94F225893609F0E3C046E050E093
+:1023700068E270E08CE291E00E94E22546E050E0E5
+:1023800062E270E086E291E00E94E22546E050E0E1
+:102390006CE170E080E291E00E94E22546E050E0CE
+:1023A00066E170E088E191E00E94E22585E190E03D
+:1023B0000E94F22590E09093E4038093E30384E18C
+:1023C00090E00E94F22590E09093E2038093E10375
+:1023D00083E190E00E94F22590E090931F018093AA
+:1023E0001E0182E190E00E94F22590E09093170197
+:1023F0008093160181E190E00E94F22591E0811125
+:1024000001C090E09093370180E190E00E94F225B6
+:1024100091E0811101C090E0909336018FE090E04F
+:102420000E94F22591E0811101C090E09093350166
+:102430008EE090E00E94F22591E0811101C090E0D1
+:10244000909334018DE090E00E94F22591E081119B
+:1024500001C090E0909333018CE090E00E94F2255F
+:10246000C1E0811101C0C0E0C09332018BE090E077
+:102470000E94F22591E0811101C090E09093E70362
+:102480008AE090E00E94F2258093130189E090E0B9
+:102490000E94F2258093120188E090E00E94F225CC
+:1024A0008093110187E090E00E94F2258093100153
+:1024B00086E090E00E94F2258093150185E090E08F
+:1024C0000E94F2258093140184E090E00E94F2259E
+:1024D00091E0811101C090E09093DE0382E090E0F2
+:1024E0000E94FA25A0E0B0E08093090190930A01D0
+:1024F000A0930B01B0930C0180E090E00E94FA25BC
+:10250000A0E0B0E08093050190930601A09307013D
+:10251000B0930801CC23C1F18091E6038823A1F197
+:102520008AEF9DE09F938F930E94EE230F900F9070
+:102530002BC08091E603882381F08091E70381110D
+:102540000CC080913201882341F081ED9DE09F9382
+:102550008F930E94EE230F900F908091E6038823C3
+:1025600081F08091E70381110CC0809132018111CB
+:1025700008C08EEC9DE09F938F930E94EE230F90F6
+:102580000F9081E08093E503CF91089590931E060C
+:1025900080931D060E94AE1181E08093E603809136
+:1025A00032018823A1F18AEA9EE09F938F930E94D3
+:1025B000EE2389E99EE09F938F930E94EE2382E8A9
+:1025C0009EE09F938F930E94EE230F900F900F90A9
+:1025D0000F900F900F908091E503882341F083E6E0
+:1025E0009EE09F938F930E94EE230F900F9086E5BD
+:1025F0009EE09F938F930E94EE2385E49EE09F933D
+:102600008F930E94EE230F900F900F900F900895DC
+:1026100046E050E068E270E08CE291E00E94002623
+:1026200046E050E062E270E086E291E00E9400261F
+:1026300046E050E06CE170E080E291E00E9400260C
+:1026400046E050E066E170E088E191E00E940026FB
+:102650006091E30385E190E00E9410266091E10320
+:1026600084E190E00E94102660911E0183E190E0D9
+:102670000E9410266091160182E190E00E941026CF
+:102680006091370181E190E00E941026609136014F
+:1026900080E190E00E941026609135018FE090E08B
+:1026A0000E941026609134018EE090E00E94102676
+:1026B000609133018DE090E00E941026609132011C
+:1026C0008CE090E00E9410266091E7038BE090E0A0
+:1026D0000E941026609113018AE090E00E9410266B
+:1026E0006091120189E090E00E9410266091110132
+:1026F00088E090E00E9410266091100187E090E051
+:102700000E9410266091150186E090E00E9410263C
+:102710006091140185E090E00E9410266091DE0334
+:1027200084E090E00E9410266091090170910A01F6
+:1027300082E090E00E9422266091050170910601DE
+:1027400080E090E00E94222669E68EE290E00E94FE
+:10275000102680913201882341F089EB9DE09F9300
+:102760008F930E94EE230F900F9080913201811180
+:102770000CC08091E703811108C086EB9DE09F9318
+:102780008F930E94EE230F900F9008950F931F9345
+:102790009C01CA0146E0E6E2F1E0A2E4B6E0019065
+:1027A0000D924A95E1F74091E1034093480646E0D7
+:1027B000ECE2F1E0A1EAB6E001900D924A95E1F772
+:1027C0004091E3034093A70646E0E0E2F1E0A9E48C
+:1027D000B6E001900D924A95E1F740911E014093B9
+:1027E0004F0646E0E8E1F1E0A1EBB6E001900D9282
+:1027F0004A95E1F7409116014093B70647E0E2E4BD
+:10280000F6E0A4E2B6E001900D924A95E1F747E0C8
+:10281000E1EAF6E0ABE2B6E001900D924A95E1F70D
+:1028200047E0E9E4F6E0A2E3B6E001900D924A95B4
+:10283000E1F747E0E1EBF6E0A9E3B6E001900D92A5
+:102840004A95E1F78B0144E050E064E276E00E94B3
+:10285000330F1F910F9108958F929F92AF92BF9265
+:10286000CF92DF92EF92FF920F931F93CF93DF935C
+:1028700000D000D000D0CDB7DEB76C018091370119
+:102880008823F9F080913301882341F080EB9DE0AB
+:102890009F938F930E94EE230F900F90D601169670
+:1028A0008C911F928F93DF92CF9285EA9DE09F9348
+:1028B0008F930E94EE230F900F900F900F900F9028
+:1028C0000F9080913601882301F180913301882394
+:1028D00041F08FE99DE09F938F930E94EE230F902C
+:1028E0000F90F60185851F928F93C60107969F93DF
+:1028F0008F9384E99DE09F938F930E94EE230F9026
+:102900000F900F900F900F900F90809135018111D3
+:1029100005C080913401811144C036C080913301DB
+:10292000882341F08DE89DE09F938F930E94EE23D2
+:102930000F900F908601025F1F4FE12CF12C460192
+:10294000F6E48F0E911C82E8A82E8DE0B82EF401DB
+:10295000808190E0E816F906E4F6D80116968C918D
+:102960001F928F931F930F93BF92AF920E94EE23FB
+:10297000BFEFEB1AFB0A095F1F4F0F900F900F90EC
+:102980000F900F900F90E3CF88E79DE09F938F9378
+:102990000E94EE230F900F908091DE03811136C0CC
+:1029A0002DC1809133019601235B3F4F790188232C
+:1029B00089F0D90111968C9111978F938C918F93F7
+:1029C0008BE79DE09F938F930E94EE230F900F90D3
+:1029D0000F900F9000E010E05601BBE4AB0EB11C6D
+:1029E000F701808191810817190770F66091BE0682
+:1029F0007091BF06D501ED91FC91E00FF11F808130
+:102A000090E00E94BC230F5F1F4FEACFF601E35B0B
+:102A1000FF4F0190F081E02DEC30F10508F4EEC09D
+:102A2000D601A55BBF4F2D913C917F01E20EF31EB5
+:102A300080E090E0A12CB12CAE014F5F5F4FD70139
+:102A40006E917D016B3769F4DA01B701FB011191D9
+:102A5000BF011D938D01041B150B80179107B0F763
+:102A60005C0101968730910551F7A114B10409F476
+:102A7000C5C081E090E0A1E0F901E80FF91F5081A5
+:102A8000FC01E55DFE4F4081541719F087E090E0AE
+:102A9000A0E00196873091057CF340E050E0F90119
+:102AA000E80FF91F60816D3209F4AC0101968A309C
+:102AB0009105ACF341155105A1F0F901E40FF51FA3
+:102AC00082816091E3037091E403803221F481817B
+:102AD00090E0C09702C090E086978617970709F0AC
+:102AE0008DC0AA2309F48AC07501FEE0EF0EF11C27
+:102AF000C7010E94C2218C0180E090E020E2019693
+:102B0000F801E80FF91F208389309105C1F7B6015C
+:102B100081E090E0E0E0F0E0DB014D91BD01442375
+:102B200031F09801280F391FD9014C933196019645
+:102B30008730910589F7D60116968C91882369F024
+:102B4000E00FF11F9DE291838A3018F4805D82834B
+:102B500004C091E392838A5D83838AE3F8018083D2
+:102B6000828781E6838783E684878BE68587DE011B
+:102B700012963E9680E090E001962D9121938A1561
+:102B80009B05D4F32FB7F8948091B2049091B304CD
+:102B9000A091B404B091B5042FBF2FB7F894409121
+:102BA000B2045091B3046091B4047091B5042FBF86
+:102BB000481B590B6A0B7B0B4C355444610571055E
+:102BC00060F340911D0650911E06B701C8010E9496
+:102BD000C613C80126960FB6F894DEBF0FBECDBF50
+:102BE000DF91CF911F910F91FF90EF90DF90CF90E9
+:102BF000BF90AF909F908F900C945A2226960FB65C
+:102C0000F894DEBF0FBECDBFDF91CF911F910F9122
+:102C1000FF90EF90DF90CF90BF90AF909F908F90FC
+:102C200008956F927F929F92AF92BF92CF92DF9260
+:102C3000EF92FF920F931F93CF93DF931F92CDB725
+:102C4000DEB75C018B016A017B0184E1E80EF11CB7
+:102C5000209113012A3098F4809112018A3078F47F
+:102C6000809111018A3058F480911001893038F434
+:102C70007B01EBE1EE0EF11C9924939401C0912CA1
+:102C8000C70129830E94C2213C018DE3F3018083A7
+:102C900080911501818780911401838B88E0E9E997
+:102CA000F6E0D301119601900D928A95E1F789E043
+:102CB000E8EAF6E0D3011A9601900D928A95E1F7C1
+:102CC0002981911003C0C301449617C080E5F30128
+:102CD000848B88E4858B87E4868B205D278B8091AD
+:102CE0001201805D808F80911101805D818F8091C4
+:102CF0001001805D828FC3014B960115110521F0F3
+:102D0000A801B5010E946D23A601B701C3010E946D
+:102D1000C613C3010F90DF91CF911F910F91FF90C8
+:102D2000EF90DF90CF90BF90AF909F907F906F908B
+:102D30000C945A228F929F92AF92BF92CF92DF92C1
+:102D4000EF92FF920F931F93CF93DF935C016A0181
+:102D50008B016434710510F003E410E078012FE07A
+:102D6000E20EF11CC7010E94C221EC018AE38883B4
+:102D700087E090E020E030E00197009769F0F901EA
+:102D8000E05BF94F40814423B9F32F5F3F4FFE01D1
+:102D9000E20FF31F4083F0CF80910E0190910F015D
+:102DA0008F3F4FEF940779F0FE01E20FF31F4DE2E2
+:102DB00041838A3091054CF42E5F3F4FFE01E20FB4
+:102DC000F31F805D808380E209C091E392832D5FD1
+:102DD0003F4FFE01E20FF31F8A5DF4CF293031052A
+:102DE0003CF42F5F3F4FFE01E20FF31F8083F6CFCD
+:102DF000FE01E20FF31F8AE381830115110581F0C3
+:102E0000A801B501CE010B960E946D23A801B50162
+:102E100086E596E00E946D231093410600934006DC
+:102E20008091DF039091E0030196883E23E09207B2
+:102E30002CF49093E0038093DF0304C01092E0032E
+:102E40001092DF03FE01E00FF11F8BE783870091F3
+:102E5000DF031091E0039AE0892E912CC801B401A0
+:102E60000E9459219C0144E6A42EB12CC801B50151
+:102E70000E945921821B930BB4010E945921AB017E
+:102E8000C801861B970B821B930BB5010E94592129
+:102E9000605D6487405D4587205D2687A601B70198
+:102EA000CE010E94C613CE01DF91CF911F910F91E9
+:102EB000FF90EF90DF90CF90BF90AF909F908F905A
+:102EC0000C945A222091DF033091E0032150310904
+:102ED0003093E0032093DF03609140067091410638
+:102EE000AC0186E596E00C949A1683E199E09F93F5
+:102EF0008F930E94EE238091E4038F938091E303EC
+:102F00008F938CE291E09F938F9380E099E09F9361
+:102F10008F930E94EE238091E2038F938091E103CF
+:102F20008F9386E291E09F938F938AEE98E09F9330
+:102F30008F930E94EE2380911F018F9380911E0139
+:102F40008F9380E291E09F938F938AED98E09F9317
+:102F50008F930E94EE23809117018F938091160129
+:102F60008F9388E191E09F938F938AEC98E09F93F1
+:102F70008F930E94EE238DB79EB74A960FB6F894B2
+:102F80009EBF0FBE8DBF8091DE03882319F083EBB7
+:102F900098E002C08BE998E09F938F930E94EE2304
+:102FA0000F900F90809113018A3061F01F928F93E0
+:102FB00080E998E09F938F930E94EE230F900F90EB
+:102FC0000F900F90809112018A3061F01F928F93C1
+:102FD00084E898E09F938F930E94EE230F900F90C8
+:102FE0000F900F90809111018A3061F01F928F93A2
+:102FF0008AE798E09F938F930E94EE230F900F90A3
+:103000000F900F90809110018A3061F01F928F9382
+:1030100089E698E09F938F930E94EE230F900F9084
+:103020000F900F90809115018C3541F480E598E068
+:103030009F938F930E94EE230F900F908091150124
+:103040008F3241F488E398E09F938F930E94EE23A0
+:103050000F900F90809114011F928F938CE298E053
+:103060009F938F930E94EE2380910C018F93809108
+:103070000B018F9380910A018F93809109018F93A7
+:103080008AE198E09F938F930E94EE23809108013C
+:103090008F93809107018F93809106018F93809188
+:1030A00005018F938CE098E09F938F930E94EE230D
+:1030B0008DB79EB740960FB6F8949EBF0FBE8DBFDA
+:1030C000089588EE97E09F938F930E94EE2386EDFC
+:1030D00097E09F938F930E94EE238BEB97E09F9353
+:1030E0008F930E94EE2382E897E09F938F930E9434
+:1030F000EE2384E697E09F938F930E94EE2387E46C
+:1031000097E09F938F930E94EE2383E297E09F9333
+:103110008F930E94EE2385E097E09F938F930E9408
+:10312000EE2386EE96E09F938F930E94EE238DEC24
+:1031300096E09F938F930E94EE238DEA96E09F93F3
+:103140008F930E94EE2383E996E09F938F930E94D2
+:10315000EE2388E796E09F938F930E94EE2385E409
+:1031600096E09F938F930E94EE2381E196E09F93D8
+:103170008F930E94EE2384EF95E09F938F930E949C
+:10318000EE238DB79EB780960FB6F8949EBF0FBE04
+:103190008DBF81ED95E09F938F930E94EE2380EB8E
+:1031A00095E09F938F930E94EE2388E895E09F938C
+:1031B0008F930E94EE238FE695E09F938F930E945A
+:1031C000EE238AE395E09F938F930E94EE2380E1A4
+:1031D00095E09F938F930E94EE238AEE94E09F9355
+:1031E0008F930E94EE238CEC94E09F938F930E9428
+:1031F000EE2383EA94E09F938F930E94EE2387E867
+:1032000094E09F938F930E94EE238BE694E09F932C
+:103210008F930E94EE238EE494E09F938F930E94FD
+:10322000EE2381E394E09F938F930E94EE2383E14A
+:1032300094E09F938F930E94EE2384EF93E09F93FB
+:103240008F930E94EE2385ED93E09F938F930E94CE
+:10325000EE238DB79EB780960FB6F8949EBF0FBE33
+:103260008DBF82EB93E09F938F930E94EE2386E8BD
+:1032700093E09F938F930E94EE2388E693E09F93C1
+:103280008F930E94EE238AE493E09F938F930E9492
+:10329000EE238BE293E09F938F930E94EE238CE0CA
+:1032A00093E09F938F930E94EE2388EE92E09F938A
+:1032B0008F930E94EE238DB79EB70E960FB6F894AB
+:1032C0009EBF0FBE8DBF0895EF92FF920F931F9385
+:1032D000CF93DF9300D000D0CDB7DEB78C0161155E
+:1032E000710509F447C7FC018081813209F562301C
+:1032F000710508F4FAC661507109C80101960E946F
+:10330000C61380913201882341F08BE69DE09F93A4
+:103310008F930E94EE230F900F90809132018111C4
+:1033200029C78091E703811125C788E69DE0F3C690
+:103330008034E9F461507109C80101960E941116A8
+:1033400080913201882341F082E59DE09F938F9325
+:103350000E94EE230F900F908091320181110AC7D5
+:103360008091E703811106C78FE49DE0D4C68332C4
+:10337000E9F461507109C80101960E949A16809182
+:103380003201882341F081E49DE09F938F930E9456
+:10339000EE230F900F90809132018111EBC6809146
+:1033A000E7038111E7C68EE39DE0B5C6883619F4C0
+:1033B0000E946118DFC6883419F40E947517DAC6B6
+:1033C000833519F40E940813D5C6833419F40E947A
+:1033D0008C11D0C68C3419F40E94AE11CBC6833642
+:1033E00009F052C06430710508F47FC6ECE2F1E0E8
+:1033F00081E090E09C012150310986179707A9F0E0
+:103400008730910581F0D801A80FB91F2C91222394
+:1034100031F02A3021F02D3011F0208301C01082CC
+:1034200001963196E7CF26E030E02630310539F0BD
+:10343000F901E45DFE4F10822F5F3F4FF6CF809180
+:1034400032018823B1F08091E4038F938091E303EC
+:103450008F938CE291E09F938F938BE29DE09F93FB
+:103460008F930E94EE230F900F900F900F900F906C
+:103470000F908091320181117DC68091E703811107
+:1034800079C688E29DE047C6843609F052C06430B0
+:10349000710508F42AC6E6E2F1E081E090E09C01C3
+:1034A0002150310986179707A9F08730910581F0DF
+:1034B000D801A80FB91F2C91222331F02A3021F016
+:1034C0002D3011F0208301C0108201963196E7CF94
+:1034D00026E030E02630310539F0F901EA5DFE4F93
+:1034E00010822F5F3F4FF6CF809132018823B1F0D9
+:1034F0008091E2038F938091E1038F9386E291E0C4
+:103500009F938F9382E19DE09F938F930E94EE2380
+:103510000F900F900F900F900F900F9080913201AD
+:10352000811128C68091E703811124C68FE09DE0B8
+:10353000F2C5813309F052C06230710508F4D5C577
+:10354000E0E2F1E081E090E09C0121503109861732
+:103550009707A9F08730910581F0D801A80FB91F0E
+:103560002C91222331F02A3021F02D3011F02083CC
+:1035700001C0108201963196E7CF26E030E0263078
+:10358000310539F0F901E05EFE4F10822F5F3F4FA9
+:10359000F6CF809132018823B1F080911F018F9383
+:1035A00080911E018F9380E291E09F938F938FEF24
+:1035B0009CE09F938F930E94EE230F900F900F90AB
+:1035C0000F900F900F90809132018111D3C580919F
+:1035D000E7038111CFC58CEF9CE09DC5823309F0D4
+:1035E00052C06230710508F480C5E8E1F1E081E085
+:1035F00090E09C012150310986179707A9F0873088
+:10360000910581F0D801A80FB91F2C91222331F028
+:103610002A3021F02D3011F0208301C01082019654
+:103620003196E7CF26E030E02630310539F0F90158
+:10363000E85EFE4F10822F5F3F4FF6CF8091320140
+:103640008823B1F0809117018F93809116018F9399
+:1036500088E191E09F938F938CEE9CE09F938F93F2
+:103660000E94EE230F900F900F900F900F900F90ED
+:103670008091320181117EC58091E70381117AC565
+:1036800089EE9CE048C5833709F011C163307105AC
+:1036900008F42BC57B01F1E0EF1AF108F8018181F4
+:1036A000833609F03FC0F2E0EF16F10449F0F8016B
+:1036B00083819FEC980F993018F490E0869704C0AE
+:1036C000F801828190E0C0979093E4038093E30334
+:1036D000809132018823B1F08091E4038F9380912F
+:1036E000E3038F938CE291E09F938F9386ED9CE0B0
+:1036F0009F938F930E94EE230F900F900F900F9047
+:103700000F900F908091320181110CC08091E703DE
+:10371000811108C083ED9CE09F938F930E94EE235C
+:103720000F900F90F8018181843609F03FC0F2E0DC
+:10373000EF16F10449F0F80183819FEC980F99305E
+:1037400018F490E0869704C0F801828190E0C09759
+:103750009093E2038093E103809132018823B1F0DA
+:103760008091E2038F938091E1038F9386E291E051
+:103770009F938F938DEB9CE09F938F930E94EE23FA
+:103780000F900F900F900F900F900F90809132013B
+:1037900081110CC08091E703811108C08AEB9CE085
+:1037A0009F938F930E94EE230F900F90F8018181D9
+:1037B0008133F1F583819FEC980F9930C8F5F2E0E1
+:1037C000EF16F10419F090E0869704C0F8018281A9
+:1037D00090E0C09790931F0180931E018091320169
+:1037E0008823B1F080911F018F9380911E018F93E8
+:1037F00080E291E09F938F938AEA9CE09F938F935E
+:103800000E94EE230F900F900F900F900F900F904B
+:103810008091320181110CC08091E703811108C0B1
+:1038200087EA9CE09F938F930E94EE230F900F9066
+:10383000F8018181823309F09DC483819FEC980F48
+:10384000993008F097C4F2E0EF16F10419F090E017
+:10385000869704C0F801828190E0C0979093170189
+:1038600080931601809132018823B1F08091170175
+:103870008F93809116018F9388E191E09F938F93AE
+:1038800087E99CE09F938F930E94EE230F900F9007
+:103890000F900F900F900F908091320181116AC4A8
+:1038A0008091E703811166C484E99CE034C48037C9
+:1038B00009F031C16330710508F417C4F801818142
+:1038C0008337C9F59281809132019133C1F491E03F
+:1038D00090933701882341F081E89CE09F938F9378
+:1038E0000E94EE230F900F9080913201811123C02E
+:1038F0008091E70381111FC08EE79CE016C01092F3
+:103900003701882341F08AE69CE09F938F930E94C1
+:10391000EE230F900F908091320181110CC08091A5
+:10392000E703811108C087E69CE09F938F930E9474
+:10393000EE230F900F90F80181818436C9F59281B2
+:10394000809132019133C1F491E090933601882344
+:1039500041F084E59CE09F938F930E94EE230F90AB
+:103960000F9080913201811123C08091E703811172
+:103970001FC081E59CE016C010923601882341F0FB
+:103980008DE39CE09F938F930E94EE230F900F9006
+:103990008091320181110CC08091E703811108C030
+:1039A0008AE39CE09F938F930E94EE230F900F90E9
+:1039B000F80181818037C9F592818091320191337C
+:1039C000C1F491E090933501882341F086E29CE0B8
+:1039D0009F938F930E94EE230F900F90809132015E
+:1039E000811123C08091E70381111FC083E29CE015
+:1039F00016C010923501882341F08EE09CE09F9321
+:103A00008F930E94EE230F900F90809132018111CD
+:103A10000CC08091E703811108C08BE09CE09F936C
+:103A20008F930E94EE230F900F90F80181818D36C5
+:103A3000C9F59281809132019133C1F491E0909364
+:103A40003401882341F087EF9BE09F938F930E947E
+:103A5000EE230F900F9080913201811123C080914D
+:103A6000E70381111FC084EF9BE016C01092340160
+:103A7000882341F08FED9BE09F938F930E94EE236C
+:103A80000F900F908091320181110CC08091E7035B
+:103A9000811108C08CED9BE09F938F930E94EE23D1
+:103AA0000F900F90F8018181893609F063C39281EC
+:103AB000809132019133C1F491E0909333018823D6
+:103AC00041F088EC9BE09F938F930E94EE230F9030
+:103AD0000F908091320181114DC38091E7038111D4
+:103AE00049C385EC9BE017C310923301882341F052
+:103AF00080EB9BE09F938F930E94EE230F900F909B
+:103B000080913201811136C38091E703811132C364
+:103B10008DEA9BE000C3863779F4F8018181813317
+:103B200031F481E08093320187E99BE0F4C2109286
+:103B3000320180E89BE0EFC2863589F4F80181818B
+:103B4000813341F481E08093E703109232018BE6E8
+:103B50009BE0E1C21092E70385E59BE0DCC28C3676
+:103B600009F040C16330710508F4BFC2F8018181DA
+:103B70008C3609F05BC0615071098281813649F54C
+:103B80006A30710508F4F6C288E03396A9E9B6E018
+:103B900001900D928A95E1F780913201882371F0AE
+:103BA00089E996E09F938F938FE39BE09F938F9398
+:103BB0000E94EE230F900F900F900F908091320192
+:103BC0008111D8C28091E7038111D4C28CE39BE0BC
+:103BD000A2C28F3609F0CEC26B30710508F4CAC29A
+:103BE00089E0F8013396A8EAB6E001900D928A9533
+:103BF000E1F780913201882371F088EA96E09F9383
+:103C00008F9384E29BE09F938F930E94EE230F900B
+:103C10000F900F900F90809132018111ABC2809173
+:103C2000E7038111A7C281E29BE075C2803731F5BD
+:103C3000F801828180538A3008F09CC2809313017E
+:103C400090913201992379F0889FC00111249F93AC
+:103C50008F938FE09BE09F938F930E94EE230F90B2
+:103C60000F900F900F9080913201811183C280914B
+:103C7000E70381117FC28CE09BE04DC28836C1F51D
+:103C8000F801828180538A3008F074C28093120157
+:103C900090913201992309F1A1E0B0E002C0AA0F8E
+:103CA000BB1F8A95E2F728EE33E00E94472128E403
+:103CB00031E040E050E00E948F215F934F933F93AB
+:103CC0002F938CEE9AE09F938F930E94EE230F9098
+:103CD0000F900F900F900F900F90809132018111F3
+:103CE00049C28091E703811145C289EE9AE013C26F
+:103CF000873619F5F801828180538A3008F03AC27C
+:103D00008093110190913201992361F01F928F935A
+:103D100087ED9AE09F938F930E94EE230F900F9070
+:103D20000F900F9080913201811124C28091E7039E
+:103D3000811120C284ED9AE0EEC18436D1F5F801FC
+:103D4000828180538A3008F015C2893009F488E0F6
+:103D5000809310018091320181110CC08091E703A2
+:103D6000811108C081ED9AE09F938F930E94EE230A
+:103D70000F900F9080913201882309F4FBC180914C
+:103D80001001811108C088EB9AE09F938F930E94E5
+:103D9000EE230F900F9080911001882309F4EAC15F
+:103DA000FDE28F9FC00111249F938F938EE99AE0CB
+:103DB00010C0833709F0B6C1F801828180931401E5
+:103DC00090913201992309F4D5C11F928F938CE809
+:103DD0009AE09F938F930E94EE230F900F900F9085
+:103DE0000F90C8C18D3609F01BC16230710508F40F
+:103DF0007CC1CB010197F8012181233609F061C014
+:103E0000019709F4B7C1E0E5F6E0D80112966250D7
+:103E1000710980E090E08617970781F08630910560
+:103E200069F02D91222331F02A3021F02D3011F04C
+:103E3000208301C0108201963196EDCF8630910526
+:103E400031F0FC01E05BF94F10820196F7CF8091D1
+:103E50003201882359F180E596E09F938F9380E3A8
+:103E60009AE09F938F930E94EE2380910E01909190
+:103E70000F010F900F900F900F908F3FFFEF9F0754
+:103E800069F09F938F938BE29AE09F938F930E94A8
+:103E9000EE230F900F900F900F9008C089E29AE0E8
+:103EA0009F938F930E94EE230F900F908091320189
+:103EB000811160C18091E70381115CC186E29AE0C3
+:103EC0002AC1233709F058C08130910509F452C145
+:103ED000F801029721F0838190E0869703C08281E8
+:103EE00090E0C09790930F0180930E0180910E0196
+:103EF00090910F01409730F08FEF9FEF90930F015B
+:103F000080930E0180913201882359F180E596E07B
+:103F10009F938F938EE09AE09F938F930E94EE235E
+:103F200080910E0190910F010F900F900F900F90C4
+:103F30008F3FFFEF9F0769F09F938F9389E09AE08F
+:103F40009F938F930E94EE230F900F900F900F90EE
+:103F500008C087E09AE09F938F930E94EE230F9012
+:103F60000F9080913201811105C18091E703811189
+:103F700001C184E09AE0CFC02237D1F4CA010E9487
+:103F8000621780913201882341F08EEE99E09F9371
+:103F90008F930E94EE230F900F9080913201811138
+:103FA000E9C08091E7038111E5C08BEE99E0B3C0D1
+:103FB000213609F0DFC0F8019281809132019133FE
+:103FC000C1F491E09093DE03882341F081ED99E004
+:103FD0009F938F930E94EE230F900F908091320158
+:103FE0008111C8C08091E7038111C4C08EEC99E0B3
+:103FF00092C01092DE03882341F083EB99E09F93F7
+:104000008F930E94EE230F900F90809132018111C7
+:10401000B1C08091E7038111ADC080EB99E07BC016
+:10402000873761F56230710508F45FC0AB0141501C
+:104030005109B8016F5F7F4FCE0101960E946D2339
+:10404000CE0101960E9447238031F7E29F0798F442
+:10405000AA2797FDA095BA2F8093090190930A0192
+:10406000A0930B01B0930C01BF93AF939F938F93D9
+:1040700089E999E02CC086E799E04DC08735A9F51C
+:104080006230710590F1AB0141505109B8016F5F89
+:104090007F4FCE0101960E946D23CE0101960E94B2
+:1040A0004723803127E29207E8F4AA2797FDA095DD
+:1040B000BA2F8093050190930601A0930701B09356
+:1040C0000801BF93AF939F938F9380E699E09F93EE
+:1040D0008F930E94EE230F900F900F900F900F90F0
+:1040E0000F9048C08EE399E016C08091320188237A
+:1040F00041F086E299E09F938F930E94EE230F9008
+:104100000F9080913201811135C08091E7038111B8
+:1041100031C083E299E09F938F930E94EE230F902A
+:104120000F9028C0843731F5F801928180913201D7
+:10413000913641F49CE590931501882381F08BE63C
+:104140009AE007C09FE290931501882341F08BE429
+:104150009AE09F938F930E94EE230F900F9080918F
+:104160003201811107C08091E703811103C088E407
+:104170009AE0D1CF0F900F900F900F90DF91CF91D9
+:104180001F910F91FF90EF9008950E947F078FB7C6
+:10419000F894C090B204D090B304E090B404F090CE
+:1041A000B5048FBFC1E084EC94E00E94680D80915B
+:1041B000420181112CC00E94ED07882341F10E9429
+:1041C000F707282F30E030934601209345012091D6
+:1041D000430130914401F901E95BFE4FA9014F5FB2
+:1041E0005F4F808350934401409343012934314011
+:1041F00010F0C09342018FB7F894C090B204D090F1
+:10420000B304E090B404F090B5048FBF1BC080915C
+:10421000430190914401892BA9F02FB7F894809124
+:10422000B2049091B304A091B404B091B5042FBF2F
+:104230008C199D09AE09BF094597A105B10514F078
+:10424000C093420180914201882309F4ACCF609170
+:1042500043017091440144EC54E087E491E00E94F2
+:1042600064191092420110924401109243019BCFB5
+:10427000A29FB001B39FC001A39F700D811D1124A7
+:10428000911DB29F700D811D1124911D08950E94F2
+:104290003821B7FF0895821B930B08950E9438219F
+:1042A000A59F900DB49F900DA49F800D911D11248A
+:1042B000089597FB072E16F4009407D077FD09D0D8
+:1042C0000E94AE2107FC05D03EF4909581959F4F4A
+:1042D0000895709561957F4F0895A1E21A2EAA1B4B
+:1042E000BB1BFD010DC0AA1FBB1FEE1FFF1FA217A6
+:1042F000B307E407F50720F0A21BB30BE40BF50BA3
+:10430000661F771F881F991F1A9469F7609570952B
+:10431000809590959B01AC01BD01CF010895052EBC
+:1043200097FB1EF400940E94A62157FD07D00E941F
+:104330006D2107FC03D04EF40C94A62150954095B6
+:10434000309521953F4F4F4F5F4F08959095809541
+:10435000709561957F4F8F4F9F4F0895AA1BBB1B90
+:1043600051E107C0AA1FBB1FA617B70710F0A61B75
+:10437000B70B881F991F5A95A9F780959095BC0196
+:10438000CD010895CF93DF938230910510F482E040
+:1043900090E0E091BA06F091BB0620E030E0A0E0AA
+:1043A000B0E0309739F14081518148175907B8F092
+:1043B0004817590771F482819381109729F0139659
+:1043C0009C938E9312972CC09093BB068093BA0651
+:1043D00027C02115310531F04217530718F0A90104
+:1043E000DB0101C0EF019A01BD01DF010280F38111
+:1043F000E02DD7CF21153105F9F0281B390B2430DA
+:10440000310580F48A819B816115710521F0FB01E2
+:104410009383828304C09093BB068093BA06FE0107
+:10442000329644C0FE01E20FF31F81939193225014
+:104430003109398328833AC02091B8063091B906F2
+:10444000232B41F420913A0130913B013093B9067E
+:104450002093B8062091380130913901211531059A
+:1044600041F42DB73EB740913C0150913D01241BD2
+:10447000350BE091B806F091B906E217F307A0F406
+:104480002E1B3F0B2817390778F0AC014E5F5F4FAA
+:104490002417350748F04E0F5F1F5093B90640931D
+:1044A000B8068193919302C0E0E0F0E0CF01DF9184
+:1044B000CF910895CF93DF93009709F487C0FC0153
+:1044C000329713821282C091BA06D091BB06209710
+:1044D00081F420813181280F391F8091B806909195
+:1044E000B9068217930779F5F093B906E093B806F9
+:1044F0006DC0DE0120E030E0AE17BF0750F4129629
+:104500004D915C9113979D014115510509F1DA0117
+:10451000F3CFB383A28340815181840F951F8A1703
+:104520009B0771F48D919C911197840F951F0296B2
+:104530009183808312968D919C91139793838283AC
+:104540002115310529F4F093BB06E093BA063EC06D
+:10455000D9011396FC93EE9312974D915D91A40FA0
+:10456000B51FEA17FB0779F480819181840F951FAD
+:104570000296D90111969C938E9382819381139612
+:104580009C938E931297E0E0F0E08A819B810097E4
+:1045900019F0FE01EC01F9CFCE0102962881398194
+:1045A000820F931F2091B8063091B906281739075A
+:1045B00069F4309729F41092BB061092BA0602C033
+:1045C00013821282D093B906C093B806DF91CF91BF
+:1045D00008958F929F92AF92BF92CF92DF92EF9207
+:1045E000FF92CF93DF93EC01688179818A819B816F
+:1045F000611571058105910521F464E279ED8BE582
+:1046000097E02DE133EF41E050E00E948F21490116
+:104610005A019B01AC01A7EAB1E40E944E216B0153
+:104620007C01ACEEB4EFA50194010E949F26C60E5A
+:10463000D71EE81EF91EF7FE06C081E0C81AD10891
+:10464000E10880E8F80AC882D982EA82FB82C601C2
+:104650009F77DF91CF91FF90EF90DF90CF90BF9049
+:10466000AF909F908F9008950E94E92208958EE365
+:1046700091E00E94E9220895A0E0B0E080933E011D
+:1046800090933F01A0934001B09341010895FC0134
+:1046900088279927E89421912032E9F3293010F0F6
+:1046A0002E30C8F32B3241F02D3239F4689404C017
+:1046B0000E947623820F911D219120532A30C0F34E
+:1046C0001EF4909581959F4F0895911108958156FC
+:1046D0008A5108F4805285580895FB01DC0102C01C
+:1046E00001900D9241505040D8F708957AE0979F7D
+:1046F000902D879F802D910D11240895CF93DF93E6
+:10470000EC012B8120FF33C026FF0AC02F7B2B83B7
+:104710008E819F8101969F838E838A8190E029C03C
+:1047200022FF0FC0E881F9818081992787FD90954C
+:10473000009719F420622B831AC03196F983E8831D
+:104740000EC0EA85FB85099597FF09C02B8101966C
+:1047500011F480E101C080E2822B8B8308C02E819E
+:104760003F812F5F3F4F3F832E83992702C08FEFFA
+:104770009FEFDF91CF9108950F931F93CF93DF9316
+:10478000182F092FEB018B8181FD03C08FEF9FEF65
+:1047900020C082FF10C04E815F812C813D81421775
+:1047A00053077CF4E881F9819F012F5F3F4F3983E4
+:1047B0002883108306C0E885F985812F0995892B08
+:1047C00029F72E813F812F5F3F4F3F832E83812F1B
+:1047D000902FDF91CF911F910F910895A0E0B0E04D
+:1047E000E4EFF3E20C94B226FE01379661917191E9
+:1047F0000EEB16E0D8018D919C91DC0113962C9163
+:104800001397286013962C93AF010E941024D801AF
+:10481000ED91FC912381277F2383E4E00C94CE2645
+:10482000ACE0B0E0E6E1F4E20C94A4267C016B017C
+:104830008A01FC0117821682838181FFBDC1CE01EE
+:1048400001964C01F7019381F60193FD859193FF49
+:1048500081916F01882309F4ABC1853239F493FD4E
+:10486000859193FF81916F01853229F4B70190E022
+:104870000E94BC23E7CF512C312C20E02032A0F441
+:104880008B3269F030F4803259F0833269F4206160
+:104890002CC08D3239F0803339F4216026C022607B
+:1048A000246023C0286021C027FD27C030ED380FC9
+:1048B0003A3078F426FF06C0FAE05F9E300D1124EE
+:1048C000532E13C08AE0389E300D1124332E2062FF
+:1048D0000CC08E3221F426FD6BC1206406C08C36DC
+:1048E00011F4206802C0883641F4F60193FD8591E9
+:1048F00093FF81916F018111C1CF982F9F7D9554B6
+:10490000933028F40C5F1F4FFFE3F9830DC083360B
+:1049100031F0833771F0833509F05BC022C0F801B4
+:10492000808189830E5F1F4F44244394512C54018E
+:1049300015C03801F2E06F0E711CF801A080B18043
+:1049400026FF03C0652D70E002C06FEF7FEFC50149
+:104950002C870E9433262C0183012C852F77222E51
+:1049600017C03801F2E06F0E711CF801A080B18011
+:1049700026FF03C0652D70E002C06FEF7FEFC50119
+:104980002C870E9428262C012C852068222E83014A
+:1049900023FC1BC0832D90E048165906B0F4B701E4
+:1049A00080E290E00E94BC233A94F4CFF50127FC0A
+:1049B000859127FE81915F01B70190E00E94BC23A1
+:1049C00031103A94F1E04F1A51084114510471F733
+:1049D000E5C0843611F0893639F5F80127FF07C0A4
+:1049E00060817181828193810C5F1F4F08C060815B
+:1049F0007181882777FD8095982F0E5F1F4F2F7646
+:104A0000B22E97FF09C090958095709561957F4F64
+:104A10008F4F9F4F2068B22E2AE030E0A4010E9401
+:104A20003E26A82EA81844C0853729F42F7EB22E22
+:104A30002AE030E025C0F22FF97FBF2E8F36C1F07B
+:104A400018F4883579F0B4C0803719F0883721F030
+:104A5000AFC02F2F2061B22EB4FE0DC08B2D84600D
+:104A6000B82E09C024FF0AC09F2F9660B92E06C039
+:104A700028E030E005C020E130E002C020E132E073
+:104A8000F801B7FE07C060817181828193810C5F5C
+:104A90001F4F06C06081718180E090E00E5F1F4F64
+:104AA000A4010E943E26A82EA818FB2DFF77BF2E3A
+:104AB000B6FE0BC02B2D2E7FA51450F4B4FE0AC0F9
+:104AC000B2FC08C02B2D2E7E05C07A2C2B2D03C0E6
+:104AD0007A2C01C0752C24FF0DC0FE01EA0DF11DDA
+:104AE0008081803311F4297E09C022FF06C07394AF
+:104AF000739404C0822F867809F0739423FD13C049
+:104B000020FF06C05A2C731418F4530C5718732C3A
+:104B1000731468F4B70180E290E02C870E94BC23F4
+:104B200073942C85F5CF731410F4371801C0312C11
+:104B300024FF12C0B70180E390E02C870E94BC23C1
+:104B40002C8522FF17C021FF03C088E590E002C03A
+:104B500088E790E0B7010CC0822F867859F021FDDC
+:104B600002C080E201C08BE227FD8DE2B70190E038
+:104B70000E94BC23A51438F4B70180E390E00E94A2
+:104B8000BC235A94F7CFAA94F401EA0DF11D808159
+:104B9000B70190E00E94BC23A110F5CF332009F4A7
+:104BA00051CEB70180E290E00E94BC233A94F6CF48
+:104BB000F7018681978102C08FEF9FEF2C96E2E18B
+:104BC0000C94C026DC01CB01FC01F999FECF06C094
+:104BD000F2BDE1BDF89A319600B40D9241505040BB
+:104BE000B8F70895F999FECF92BD81BDF89A99273B
+:104BF00080B50895A8E1B0E042E050E00C94E425CF
+:104C0000DC01A40FB51F4150504048F0CB01840F88
+:104C1000951F2E910E94112641505040D0F70895C3
+:104C2000262FF999FECF92BD81BDF89A019700B465
+:104C3000021639F01FBA20BD0FB6F894FA9AF99A05
+:104C40000FBE08950196272F0E9411260C9410265E
+:104C5000FC010590615070400110D8F78095909547
+:104C60008E0F9F1F0895FC0161507040019001104C
+:104C7000D8F7809590958E0F9F1F0895FA01AA2767
+:104C8000283051F1203181F1E8946F936E7F6E5F8F
+:104C90007F4F8F4F9F4FAF4FB1E03ED0B4E03CD03D
+:104CA000670F781F891F9A1FA11D680F791F8A1F20
+:104CB000911DA11D6A0F711D811D911DA11D20D087
+:104CC00009F468943F912AE0269F11243019305D41
+:104CD0003193DEF6CF010895462F4770405D419332
+:104CE000B3E00FD0C9F7F6CF462F4F70405D4A337F
+:104CF00018F0495D31FD4052419302D0A9F7EACF47
+:104D0000B4E0A6959795879577956795BA95C9F775
+:104D100000976105710508959B01AC010A2E069468
+:104D20005795479537952795BA95C9F7620F731F21
+:104D3000841F951FA01D0895B7FF0C944E210E945B
+:104D40004E21821B930B08952F923F924F925F92B8
+:104D50006F927F928F929F92AF92BF92CF92DF928B
+:104D6000EF92FF920F931F93CF93DF93CDB7DEB7F0
+:104D7000CA1BDB0B0FB6F894DEBF0FBECDBF099484
+:104D80002A88398848885F846E847D848C849B84DB
+:104D9000AA84B984C884DF80EE80FD800C811B81E9
+:104DA000AA81B981CE0FD11D0FB6F894DEBF0FBE18
+:0A4DB000CDBFED010895F894FFCF88
+:104DBA003FC80000003200000096000000FEFFFF1E
+:104DCA000A0A0A0A6E2F02005749444532000100B6
+:104DDA0057494445310041505A4D444D4E4F434185
+:104DEA004C4C0101010101010000C2062000010032
+:024DFA000000B7
+:00000001FF
diff --git a/precompiled/microaprs-5v-kiss-latest.hex b/precompiled/microaprs-5v-kiss-latest.hex
new file mode 100644
index 0000000..b11049c
--- /dev/null
+++ b/precompiled/microaprs-5v-kiss-latest.hex
@@ -0,0 +1,362 @@
+:100000000C9474010C9491010C9491010C94910145
+:100010000C9491010C9491010C9491010C94910118
+:100020000C9491010C9491010C9491010C94910108
+:100030000C9491010C9491010C9491010C949101F8
+:100040000C9491010C9491010C9491010C949101E8
+:100050000C9491010C94CB060C9491010C94910199
+:100060000C9491010C949101808183848687898A04
+:100070008C8E8F9192949597989A9B9D9EA0A2A307
+:10008000A5A6A7A9AAACADAFB0B2B3B5B6B7B9BA79
+:10009000BCBDBEC0C1C2C4C5C6C8C9CACBCDCECF07
+:1000A000D0D2D3D4D5D6D7D9DADBDCDDDEDFE0E1C0
+:1000B000E2E3E4E5E6E7E8E9EAEAEBECEDEEEEEFB1
+:1000C000F0F1F1F2F3F3F4F5F5F6F6F7F8F8F9F9E3
+:1000D000FAFAFAFBFBFCFCFCFDFDFDFDFEFEFEFE5C
+:1000E000FEFFFFFFFFFFFFFF0000891112239B327D
+:1000F0002446AD573665BF74488CC19D5AAFD3BEF8
+:100100006CCAE5DB7EE9F7F88110080193331A2207
+:10011000A5562C47B7753E64C99C408DDBBF52AED7
+:10012000EDDA64CBFFF976E802218B3010029913E7
+:100130002667AF763444BD554AADC3BC588ED19FB7
+:100140006EEBE7FA7CC8F5D983310A2091121803C7
+:10015000A7772E66B5543C45CBBD42ACD99E508F97
+:10016000EFFB66EAFDD874C904428D5316619F7097
+:100170002004A9153227BB364CCEC5DF5EEDD7FC77
+:100180006888E1997AABF3BA85520C4397711E6087
+:10019000A1142805B3373A26CDDE44CFDFFD56EC57
+:1001A000E9986089FBBB72AA06638F7214409D5167
+:1001B0002225AB343006B9174EEFC7FE5CCCD5DD37
+:1001C0006AA9E3B8788AF19B87730E6295501C4147
+:1001D000A3352A24B1163807CFFF46EEDDDC54CD17
+:1001E000EBB962A8F99A708B088481951AA793B627
+:1001F0002CC2A5D33EE1B7F04008C919522BDB3A17
+:10020000644EED5F766DFF7C899400859BB712A6E6
+:10021000ADD224C3BFF136E0C1184809D33B5A2AF6
+:10022000E55E6C4FF77D7E6C0AA583B418869197C6
+:100230002EE3A7F23CC0B5D14229CB38500AD91BD6
+:10024000666FEF7E744CFD5D8BB502A499961087A6
+:10025000AFF326E2BDD034C1C3394A28D11A580BB6
+:10026000E77F6E6EF55C7C4D0CC685D71EE597F476
+:100270002880A1913AA3B3B2444ACD5B5669DF7896
+:10028000600CE91D722FFB3E8DD604C79FF516E466
+:10029000A9902081BBB332A2C55A4C4BD7795E6876
+:1002A000E11C680DF33F7A2E0EE787F61CC495D546
+:1002B0002AA1A3B03882B193466BCF7A5448DD5956
+:1002C000622DEB3C700EF91F8FF706E69DD414C526
+:1002D000ABB122A0B9923083C77B4E6AD5585C4936
+:1002E000E33D6A2CF11E780F11241FBECFEFD8E03A
+:1002F000DEBFCDBF11E0A0E0B1E0E6E6F6E102C06E
+:1003000005900D92A231B107D9F716E0A2E1B1E054
+:1003100001C01D92A43EB107E1F70E94F0090C94C0
+:10032000310B0C9400000C948408789480E893E0DE
+:100330000E94070343E951E060E873E08CE594E034
+:100340000E9465078EE494E00E94C5018EE494E06B
+:100350009093E1068093E0069093DF068093DE069B
+:10036000AC0160E873E08CE594E00C947708909120
+:10037000C00095FFFCCF8093C60008958091C00017
+:1003800087FFFCCF8091C6000895CF93DF93CDB750
+:10039000DEB72E970FB6F894DEBF0FBECDBFDC01DF
+:1003A0009EE0FD01892F11928A95E9F71092C50010
+:1003B00087E68093C400E0ECF0E080818D7F80834D
+:1003C00086E08093C20088E18093C1009E012F5F88
+:1003D0003F4FF90111929A95E9F783E08C8387EBFF
+:1003E00091E09A8789878EEB91E09C878B878EE0DE
+:1003F000F90101900D928A95E1F72E960FB6F894C7
+:10040000DEBF0FBECDBFDF91CF910895811106C031
+:100410008091C000881F8827881F089580E0089574
+:100420008091C00087FF03C08091C60008958FEFC0
+:100430000895E091D406F091D5064FB7F894EB58A3
+:10044000FF4F24813581868197814FBF2817390757
+:10045000E1F0E091D406F091D5062FB7F894EB586F
+:10046000FF4FA481B58182819381A817B90719F440
+:100470008081918104C0A481B581CD0101969583CD
+:1004800084838C912FBF90E008958FEF9FEF0895A4
+:100490000F931F93CF93DF93182FC091D406D09161
+:1004A000D506FE01E959FF4F8081811124C080E407
+:1004B00090E09E8F8D8F1C8E1B8E1A8E01E0008324
+:1004C000299A2091090130910A0140910B01509124
+:1004D0000C01A0EBB4E00E940F0A6056704F8F4FE2
+:1004E0009F4F20E43FE140E050E00E941A0A3B8B1E
+:1004F0002A8B009313010FB7F894209105013091D6
+:1005000006014091070150910801A0EBB4E00E9460
+:100510000F0A6056704F8F4F9F4F20E43FE140E03D
+:1005200050E00E941A0A3D8B2C8B0FBFE091D4063D
+:10053000F091D5065FB7F89423A134A1878D90A1DF
+:100540002817390739F425A136A181A192A12817CE
+:10055000390761F025A136A183A194A1019741E05B
+:100560002817390709F040E0842F01C081E05FBF00
+:1005700080FDDCCFE091D406F091D5064FB7F8941A
+:10058000A5A1B6A11C9325A136A181A192A12817EE
+:10059000390719F4878D90A103C085A196A1019612
+:1005A00096A385A34FBFDF91CF911F910F9108951F
+:1005B00081E080931201089581E0809312011092EE
+:1005C000800089E18093810081E896E09093870024
+:1005D0008093860080911201882321F080E480932B
+:1005E0007C0002C010927C003898409880917E0078
+:1005F000816080937E0087E080937B008CEE809307
+:100600007A008AB1886F8AB9219A229A08950F9345
+:100610001F93CF93DF93CDB7DEB72E970FB6F89425
+:10062000DEBF0FBECDBF8C018AECD8011D928A952A
+:10063000E9F71093D5060093D40680E490E0F80122
+:10064000968F858FC80180599F4FE859FF4F91833E
+:1006500080839783868395838483C8018C589F4FBA
+:1006600093838283C80183589F4FD801AB58BF4FF3
+:1006700011969C938E9317969C938E93169715962E
+:100680009C938E931497C80184549F4F13969C9308
+:100690008E931297C8018796D80190969C938E935B
+:1006A0005F9796969C938E93959794969C938E9332
+:1006B0009397C8018A599F4F92969C938E939197D6
+:1006C00084E090E0A681B7811C9246815781228107
+:1006D00033814217530719F42081318104C02681E8
+:1006E00037812F5F3F4F378326830197009751F75C
+:1006F0000E94DC022EE0FE013196DF01822F1D9266
+:100700008A95E9F783E08C8388E492E09A87898769
+:1007100089E192E09C878B87D80101900D922A9500
+:10072000E1F72E960FB6F894DEBF0FBECDBFDF9176
+:10073000CF911F910F9108950F931F93CF93DF9344
+:100740008B01E091D406F091D50625A136A134A302
+:1007500023A3EC01080F191FC017D10721F08991BD
+:100760000E944802F9CFDF91CF911F910F91089518
+:10077000DC0156968C9156978111E9C058968C9160
+:10078000589781119FC093962D913C91949795967F
+:100790008D919C9196972817390739F454968D912D
+:1007A0009C915597892B09F45CC059968C91599767
+:1007B000811103C05A961C925A9781E059968C93E6
+:1007C000599752968D919C915397009789F59396DE
+:1007D0002D913C91949795968D919C919697281781
+:1007E000390751F454968D919C91559701975596E0
+:1007F0009C938E93549721C09396ED91FC9194977E
+:1008000091968D919C919297E817F90729F45F963C
+:100810008D919C91909706C09396ED91FC91949741
+:10082000CF01019694969C938E939397808106C0F6
+:10083000019753969C938E9352978EE757968C937D
+:10084000579757968C9157978B3191F593962D9199
+:100850003C91949795968D919C919697281739077E
+:1008600041F410921301A959BF4F1C92299880E0BE
+:1008700008959396ED91FC91949791968D919C910A
+:100880009297E817F90729F45F968D919C919097BC
+:1008900006C09396ED91FC919497CF0101969496A2
+:1008A0009C938E939397808157968C93579706C00D
+:1008B0008E57823018F459961C92599781E05896B9
+:1008C0008C93589759962C9159975D968D919C9140
+:1008D0005E972223A9F05A962C915A97253080F0E2
+:1008E0005A961C925A978034910519F485E790E046
+:1008F00002C080E490E05E969C938E935D9723C047
+:1009000058963C91589757962C915797232341F02E
+:100910005A968C915A978F5F5A968C935A970FC01C
+:100920005A961C925A978034910519F485E790E005
+:1009300002C080E490E05E969C938E935D97330FA7
+:1009400058963C93589788E056968C9356975D96A8
+:10095000ED91FC915E975B968D919C915C97E80F71
+:10096000F91F9F0131705C963C932E935B975696CE
+:100970008C915697815056968C93FF27E038F1055D
+:1009800030F08FEF90E0AC014E1B5F0BFA01E8599D
+:10099000FF4F84912F3F310511F008F080950895A5
+:1009A000EF92FF920F931F93CF93DF93FC018C0183
+:1009B00001541F4FD8014D915C91DC01A354BF4FEE
+:1009C0004D935C93DC01A859BF4F14968D919C9177
+:1009D000159712962D913C9113978217930721F446
+:1009E0002D913C91119707C014968D919C9115976C
+:1009F0009C012F5F3F4F15963C932E931497EC016B
+:100A000088818602C00111249595879595958795D3
+:100A1000E801998388837F01D3ECED0EF11CE70197
+:100A2000288139818F010F531F4FE80139832883B3
+:100A3000840F951F35952795820F931FE7019983A2
+:100A40008883AF014B535F4F21E0181619060CF055
+:100A500020E0EA018881880F822B888316968D9189
+:100A60009C911797EC01688316962D913C911797EE
+:100A700012968D919C9113972817390721F48D9127
+:100A80009C91119705C016968D919C911797019690
+:100A900017969C938E931697DA019C91892F8695D1
+:100AA000869589278370DF01AA53BF4F833039F4BD
+:100AB0008C91803214F48F5F01C081508C938C91A3
+:100AC000885F8C9380340CF45FC18F738C93DF014B
+:100AD000A953BF4F8C91880F97702BEF290F2330AC
+:100AE00010F0933009F481608C939C91892F869546
+:100AF0008927809581709685990F892B86878E37F7
+:100B000009F04EC0DF01AB58BF4F14962D913C91B8
+:100B100015978D919C9111972817390759F41696BE
+:100B20002D913C91179712968D919C9113972817B0
+:100B3000390781F016962D913C91179714968D9157
+:100B40009C911597019741E02817390709F040E07B
+:100B5000842F01C081E080FDDCC01696CD91DC9130
+:100B600017978EE7888316962D913C9117971296CA
+:100B70008D919C9113972817390721F48D919C91A1
+:100B8000119705C016968D919C911797019617960F
+:100B90009C938E93169781E0818B2A9A41E0BCC08A
+:100BA000982F9F779F3719F4118A2A98EDC0918961
+:100BB000992309F4E9C0982F9F739E3309F4E4C088
+:100BC00080FF03C080898068808B87858F5F8787DF
+:100BD0009089883008F4A5C0DF01AB58BF4F82E888
+:100BE000890F823018F09B3109F04BC014962D917B
+:100BF0003C9115978D919C9111972817390759F4BD
+:100C000016962D913C91179712968D919C91139762
+:100C10002817390781F016962D913C911797149655
+:100C20008D919C911597019741E02817390709F09C
+:100C300040E0842F01C081E080FD1FC01696CD9159
+:100C4000DC9117978BE1888316962D913C9117972D
+:100C500012968D919C9113972817390721F48D9145
+:100C60009C91119705C016968D919C9117970196AE
+:100C700017969C938E93169704C0118A2A9840E089
+:100C800001C041E014962D913C9115978D919C9156
+:100C900011972817390759F416962D913C911797FB
+:100CA00012968D919C9113972817390781F016960B
+:100CB0002D913C91179714968D919C9115970197C2
+:100CC00051E02817390709F050E0852F01C081E075
+:100CD00080FD1FC080891696CD91DC91179788837F
+:100CE00016962D913C91179712968D919C91139782
+:100CF0002817390721F48D919C91119705C01696FC
+:100D00008D919C911797019617969C938E931697A9
+:100D100003C0118A2A9840E0108A1786442321F0E4
+:100D200033C09695908B30C0DF01A853BF4F8D9193
+:100D30009C911197816011969C938E93EB58FF4F75
+:100D400024813581808191812817390739F42681E2
+:100D50003781828193812817390761F02681378195
+:100D600084819581019741E02817390709F040E017
+:100D7000842F01C081E080FF07C086819781958321
+:100D8000848311961C921E92DF91CF911F910F9137
+:100D9000FF90EF9008951F920F920FB60F921124BB
+:100DA0002F933F934F935F936F937F938F939F9373
+:100DB000AF93BF93EF93FF9380E286BB609178007F
+:100DC00070917900769567957695679560588091D2
+:100DD000D4069091D5060E94D004809113018823F7
+:100DE00049F08091D4069091D5060E94B803807F87
+:100DF000886001C080E88BB980914A0490914B04CF
+:100E0000A0914C04B0914D040196A11DB11D809399
+:100E10004A0490934B04A0934C04B0934D04FF916B
+:100E2000EF91BF91AF919F918F917F916F915F9162
+:100E30004F913F912F910F900FBE0F901F901895DB
+:100E4000CF92DF92EF92FF920F931F93CF93DF9396
+:100E50001F92CDB7DEB77C01462F82E8860F97013F
+:100E600024593D4F6901823010F06B3149F4F6018D
+:100E7000608171818BE190E049830E94D80A4981A9
+:100E8000D701AE58BD4F2C9111965C911197842FCC
+:100E900090E0FC01E227EE0FFF1FE851FF4F259184
+:100EA0003491052F10E0202731272D933C93F60134
+:100EB000608171810F90DF91CF911F910F91FF9011
+:100EC000EF90DF90CF900C94D80A28E732E0DC0155
+:100ED000F9011D923197E9F7FC01E459FD4F718347
+:100EE0006083FC01EC58FD4F51834083FC01EE58B8
+:100EF000FD4F2FEF3FEF31832083FC01E059FD4F81
+:100F00003183208308953F924F925F926F927F9238
+:100F10008F929F92AF92BF92CF92DF92EF92FF9209
+:100F20000F931F93CF93DF932C013C0124E9621AA6
+:100F30002DEF720A6C0149E8C41A4DEFD40AEC0196
+:100F4000CA58DD4F8C0102591D4F7C0180E9E81A17
+:100F50008DEFF80A33243394AA24AA94BA2C4201C0
+:100F6000ACE88A1AADEF9A0AF301808191810E9460
+:100F70009A0A8F3FFFEF9F0709F458C0D6012C91C2
+:100F8000211128C08E379105D1F4F801808191811B
+:100F9000429768F0D7018D919C91883B904F39F42E
+:100FA000D401ED91FC91309711F0C201099538827E
+:100FB000F701B182A082D8011D921C92D5CF8F3744
+:100FC000910511F41882D0CF8B31910519F4F601F7
+:100FD0003082CACF2881222331F1D8012D913C9152
+:100FE0002C36B2E03B07F0F4A9014F5F5F4FF801E8
+:100FF00051834083F201E20FF31F8083D7012D91CB
+:101000003C911197F901E827FF27EE0FFF1FE851E8
+:10101000FF4F85919491232F3327822793278D9318
+:101020009C9301C01882F60110829ECFDF91CF9170
+:101030001F910F91FF90EF90DF90CF90BF90AF90F6
+:101040009F908F907F906F905F904F903F9008950A
+:101050008F929F92AF92BF92CF92DF92EF92FF92C8
+:101060000F931F93CF93DF938C014B016A017C0197
+:101070008EE8E81A8DEFF80A8FEF9FEFF701918362
+:1010800080835801F4E9AF1AFDEFBF0AF5016081D2
+:1010900071818EE790E00E94D80AE401C80CD91C47
+:1010A000CC15DD0529F06991C8010E942007F8CF11
+:1010B000F7016081C1816095C8010E9420076C2FF3
+:1010C0006095C8010E942007F501608171818EE75B
+:1010D00090E0DF91CF911F910F91FF90EF90DF9003
+:1010E000CF90BF90AF909F908F900C94D80A909320
+:1010F000D8068093D70650934F0440934E047093C4
+:10110000DA066093D9060895EF92FF920F931F932A
+:10111000CF93DF93EC0160914E0470914F0480EC0B
+:1011200090E00E94D80A60914E0470914F0480E0D4
+:1011300090E00E94D80A8E017E0182E9E81A8DEFC4
+:10114000F80AF7018081918160914E0470914F04FB
+:1011500098012C1B3D0B2817390708F5F8018191E0
+:101160008F01803C59F48BED90E00E94D80A609189
+:101170004E0470914F048CED90E00EC08B3D59F4FD
+:101180008BED90E00E94D80A60914E0470914F045C
+:101190008DED90E001C090E00E94D80AD2CF80ECA3
+:1011A00090E0DF91CF911F910F91FF90EF900C9401
+:1011B000D80A8F929F92AF92BF92CF92DF92EF9216
+:1011C000FF920F931F93CF93DF93EC017B016A0192
+:1011D000E091D906F091DA068189811144C00E941C
+:1011E0008A0A90910001891788F4A601B701CE01FF
+:1011F000DF91CF911F910F91FF90EF90DF90CF90F3
+:10120000BF90AF909F908F900C9428088FB7F89460
+:1012100080904A0490904B04A0904C04B0904D04F0
+:101220008FBF209101013091020140910301509143
+:101230000401AAE0B0E00E940F0A4FB7F8940091B1
+:101240004A0410914B0420914C0430914D044FBF3F
+:10125000081919092A093B0906171707280739072A
+:101260000CF0B6CFEACFE091D906F091DA06818989
+:10127000882309F4ADCF8091D7069091D8060E94BB
+:101280008307E091D906F091DA06E853FF4F808199
+:101290009181892B41F311821082DF91CF911F91AF
+:1012A0000F91FF90EF90DF90CF90BF90AF909F9005
+:1012B0008F900895282F8091DB068823A1F0203C91
+:1012C00001F580910D01811111C01092DB06409152
+:1012D000DC065091DD0664E171E08091D7069091C3
+:1012E000D8060C94D908203C09F079C081E080939D
+:1012F000DB068EEF80930D011092DD061092DC0666
+:1013000008958091DC069091DD068C3632E09307DB
+:1013100008F065C030910D01009731F43E3F21F493
+:101320002F7020930D01089531111FC02B3D21F422
+:1013300081E08093D60608953091D606332349F094
+:101340002C3D21F02D3D19F42BED01C020EC109225
+:10135000D606AC014F5F5F4F5093DD064093DC062D
+:10136000FC01EC5EFE4F20830895313071F430E0D3
+:10137000AAE0B0E00E94000A6093090170930A019C
+:1013800080930B0190930C010895343089F43AE076
+:10139000239FC0011124AA2797FDA095BA2F8093FF
+:1013A000050190930601A0930701B09308010895E9
+:1013B000333089F43AE0239FC0011124AA2797FD16
+:1013C000A095BA2F8093010190930201A09303018D
+:1013D000B09304010895323011F420930001089570
+:1013E0000E9495018CE594E00E94830780E00E94B2
+:1013F00006028823B9F30E9410020E945A09F2CF14
+:10140000A29FB001B39FC001A39F700D811D112445
+:10141000911DB29F700D811D1124911D08950E9490
+:10142000000AA59F900DB49F900DA49F800D911D63
+:1014300011240895A1E21A2EAA1BBB1BFD010DC0A9
+:10144000AA1FBB1FEE1FFF1FA217B307E407F50774
+:1014500020F0A21BB30BE40BF50B661F771F881F50
+:10146000991F1A9469F760957095809590959B01E6
+:10147000AC01BD01CF0108958F929F92AF92BF92B0
+:10148000CF92DF92EF92FF92CF93DF93EC016881CE
+:1014900079818A819B81611571058105910521F40E
+:1014A00064E279ED8BE597E02DE133EF41E050E028
+:1014B0000E94120B49015A019B01AC01A7EAB1E459
+:1014C0000E940F0A6B017C01ACEEB4EFA501940100
+:1014D0000E940D0BC60ED71EE81EF91EF7FE06C0B1
+:1014E00081E0C81AD108E10880E8F80AC882D982E8
+:1014F000EA82FB82C6019F77DF91CF91FF90EF9048
+:10150000DF90CF90BF90AF909F908F9008950E94F2
+:101510003C0A08958EE091E00E943C0A0895A0E004
+:10152000B0E080930E0190930F01A0931001B0934F
+:1015300011010895CF93DF93EC012B8120FF33C07D
+:1015400026FF0AC02F7B2B838E819F8101969F836C
+:101550008E838A8190E029C022FF0FC0E881F98143
+:101560008081992787FD9095009719F420622B833D
+:101570001AC03196F983E8830EC0EA85FB85099588
+:1015800097FF09C02B81019611F480E101C080E230
+:10159000822B8B8308C02E813F812F5F3F4F3F837B
+:1015A0002E83992702C08FEF9FEFDF91CF9108958F
+:1015B0000F931F93CF93DF93182F092FEB018B818C
+:1015C00081FD03C08FEF9FEF20C082FF10C04E81CE
+:1015D0005F812C813D81421753077CF4E881F981BA
+:1015E0009F012F5F3F4F39832883108306C0E88512
+:1015F000F985812F0995892B29F72E813F812F5F4E
+:101600003F4F3F832E83812F902FDF91CF911F91EA
+:101610000F910895B7FF0C940F0A0E940F0A821BC6
+:10162000930B0895052E97FB1EF400940E94290B3E
+:1016300057FD07D00E941A0A07FC03D04EF40C9401
+:10164000290B50954095309521953F4F4F4F5F4F57
+:10165000089590958095709561957F4F8F4F9F4F1E
+:061660000895F894FFCF8D
+:101666003FC80000003200000096000000FE0100A6
+:02167600000072
+:00000001FF
diff --git a/precompiled/microaprs-5v-ss-latest.hex b/precompiled/microaprs-5v-ss-latest.hex
new file mode 100644
index 0000000..0a498fe
--- /dev/null
+++ b/precompiled/microaprs-5v-ss-latest.hex
@@ -0,0 +1,1250 @@
+:100000000C945E070C947B070C947B070C947B0785
+:100010000C947B070C947B070C947B070C947B0758
+:100020000C947B070C947B070C947B070C947B0748
+:100030000C947B070C947B070C947B070C947B0738
+:100040000C947B070C947B070C947B070C947B0728
+:100050000C947B070C94B20C0C947B070C947B07DC
+:100060000C947B070C947B07808183848687898A24
+:100070008C8E8F9192949597989A9B9D9EA0A2A307
+:10008000A5A6A7A9AAACADAFB0B2B3B5B6B7B9BA79
+:10009000BCBDBEC0C1C2C4C5C6C8C9CACBCDCECF07
+:1000A000D0D2D3D4D5D6D7D9DADBDCDDDEDFE0E1C0
+:1000B000E2E3E4E5E6E7E8E9EAEAEBECEDEEEEEFB1
+:1000C000F0F1F1F2F3F3F4F5F5F6F6F7F8F8F9F9E3
+:1000D000FAFAFAFBFBFCFCFCFDFDFDFDFEFEFEFE5C
+:1000E000FEFFFFFFFFFFFFFF0000891112239B327D
+:1000F0002446AD573665BF74488CC19D5AAFD3BEF8
+:100100006CCAE5DB7EE9F7F88110080193331A2207
+:10011000A5562C47B7753E64C99C408DDBBF52AED7
+:10012000EDDA64CBFFF976E802218B3010029913E7
+:100130002667AF763444BD554AADC3BC588ED19FB7
+:100140006EEBE7FA7CC8F5D983310A2091121803C7
+:10015000A7772E66B5543C45CBBD42ACD99E508F97
+:10016000EFFB66EAFDD874C904428D5316619F7097
+:100170002004A9153227BB364CCEC5DF5EEDD7FC77
+:100180006888E1997AABF3BA85520C4397711E6087
+:10019000A1142805B3373A26CDDE44CFDFFD56EC57
+:1001A000E9986089FBBB72AA06638F7214409D5167
+:1001B0002225AB343006B9174EEFC7FE5CCCD5DD37
+:1001C0006AA9E3B8788AF19B87730E6295501C4147
+:1001D000A3352A24B1163807CFFF46EEDDDC54CD17
+:1001E000EBB962A8F99A708B088481951AA793B627
+:1001F0002CC2A5D33EE1B7F04008C919522BDB3A17
+:10020000644EED5F766DFF7C899400859BB712A6E6
+:10021000ADD224C3BFF136E0C1184809D33B5A2AF6
+:10022000E55E6C4FF77D7E6C0AA583B418869197C6
+:100230002EE3A7F23CC0B5D14229CB38500AD91BD6
+:10024000666FEF7E744CFD5D8BB502A499961087A6
+:10025000AFF326E2BDD034C1C3394A28D11A580BB6
+:10026000E77F6E6EF55C7C4D0CC685D71EE597F476
+:100270002880A1913AA3B3B2444ACD5B5669DF7896
+:10028000600CE91D722FFB3E8DD604C79FF516E466
+:10029000A9902081BBB332A2C55A4C4BD7795E6876
+:1002A000E11C680DF33F7A2E0EE787F61CC495D546
+:1002B0002AA1A3B03882B193466BCF7A5448DD5956
+:1002C000622DEB3C700EF91F8FF706E69DD414C526
+:1002D000ABB122A0B9923083C77B4E6AD5585C4936
+:1002E000E33D6A2CF11E780F2D2D2D2D2D2D2D2D5A
+:1002F0002D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2E
+:100300002D2D2D2D2D2D2D2D2D2D0A004820202079
+:100310002020202020205072696E7420636F6E664A
+:10032000696775726174696F6E0A0043202020202E
+:100330002020202020436C65617220636F6E666907
+:100340006775726174696F6E0A004C20202020204E
+:10035000202020204C6F616420636F6E6669677592
+:10036000726174696F6E0A005320202020202020C3
+:1003700020205361766520636F6E666967757261D0
+:1003800074696F6E0A00573C5858583E2020202050
+:10039000536574207472616E736D697373696F6EE7
+:1003A000207461696C2074696D6520696E206D73BD
+:1003B0000A00773C5858583E20202020536574206E
+:1003C000707265616D626C652074696D6520696E1F
+:1003D000206D730A00563C312F303E2020202053E0
+:1003E000696C656E74206D6F6465206F6E2F6F662B
+:1003F000660A0A00763C312F303E202020205665C8
+:1004000072626F7365206D6F6465206F6E2F6F660B
+:10041000660A0070693C312F303E202020507269FE
+:100420006E7420494E464F206F6E2F6F66660A0A23
+:1004300000706D3C312F303E2020205072696E7468
+:100440002044415441206F6E2F6F66660A00707021
+:100450003C312F303E2020205072696E7420504174
+:100460005448206F6E2F6F66660A0070643C312F0F
+:10047000303E2020205072696E7420445354206F07
+:100480006E2F6F66660A0070733C312F303E20205D
+:10049000205072696E7420535243206F6E2F6F6626
+:1004A000660A006D613C312F303E2020204175747A
+:1004B0006F6D61746963206D657373616765204159
+:1004C000434B206F6E2F6F66660A0A006D723C7395
+:1004D0007369643E20205265747279206C61737474
+:1004E000206D6573736167650A006D733C73736992
+:1004F000643E2020536574206D65737361676520C9
+:10050000726563697069656E7420535349440A00CB
+:100510006D633C63616C6C3E2020536574206D6597
+:10052000737361676520726563697069656E7420B5
+:1005300063616C6C7369676E0A006C743C732F6145
+:100540003E20202053656C6563742073796D626F63
+:100550006C207461626C6520287374616E646172D2
+:10056000642F616C7465726E617465290A0A006C8F
+:10057000733C73796D3E20202053656C6563742055
+:1005800073796D626F6C0A006C643C302D393E20CB
+:10059000202053657420616E74656E6E61206469FD
+:1005A00072656374697669747920696E666F0A0092
+:1005B0006C673C302D393E20202053657420616EDD
+:1005C00074656E6E61206761696E20696E666F0A80
+:1005D000006C683C302D393E20202053657420612A
+:1005E0006E74656E6E612068656967687420696EF7
+:1005F000666F0A006C703C302D393E202020536518
+:100600007420545820706F77657220696E666F0A87
+:10061000006C6C6F3C4C4F4E3E2020536574206C38
+:100620006174697475646520284E4D45412D666F6F
+:10063000726D61742C2065672030373230312E376F
+:100640003557290A006C6C613C4C41543E202053C4
+:100650006574206C6174697475646520284E4D451D
+:10066000412D666F726D61742C20656720343930BE
+:10067000332E35304E290A0073323C737369643E61
+:10068000202053657420504154483220535349442C
+:100690000A0A0073313C737369643E202053657409
+:1006A00020504154483120535349440A0073643C5C
+:1006B000737369643E2020536574206465737469A4
+:1006C0006E6174696F6E20535349440A0073633C32
+:1006D000737369643E202053657420796F757220AE
+:1006E000535349440A00323C63616C6C3E20202025
+:1006F0005365742050415448322063616C6C7369B7
+:10070000676E0A0A00313C63616C6C3E2020205306
+:1007100065742050415448312063616C6C73696783
+:100720006E0A00643C63616C6C3E2020205365744B
+:100730002064657374696E6174696F6E2063616CA7
+:100740006C7369676E0A00633C63616C6C3E2020C9
+:100750002053657420796F75722063616C6C7369C6
+:10076000676E0A00233C6D73673E2020202053658E
+:100770006E642041505253206D6573736167650A42
+:100780000A00403C636D743E2020202053656E6457
+:10079000206C6F636174696F6E207570646174653D
+:1007A0002028636D74203D206F7074696F6E616CDA
+:1007B00020636F6D6D656E74290A00213C6461745D
+:1007C000613E20202053656E642072617720706145
+:1007D000636B65740A0053657269616C20636F6DA9
+:1007E0006D616E64733A0A002D2D2D2D2D2D2D2D4A
+:1007F0002D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D29
+:100800002D2D2D2D2D2D2D2D2D2D0A0054582054FC
+:1008100061696C3A20256C750A0054582050726545
+:10082000616D626C653A20256C750A0053796D62C2
+:100830006F6C3A2025630A0053796D626F6C2074E7
+:1008400061626C653A207374616E646172640A005F
+:1008500053796D626F6C207461626C653A20616CD3
+:100860007465726E6174650A0044697265637469C7
+:10087000766974793A2025640A004761696E3A20E6
+:1008800025640A004865696768743A2025640A008F
+:10089000506F7765723A2025640A004175746F2D98
+:1008A00061636B206D657373616765733A204F6692
+:1008B000660A004175746F2D61636B206D657373FB
+:1008C000616765733A204F6E0A0050617468323A6E
+:1008D00020252E36732D25640A0050617468313A44
+:1008E00020252E36732D25640A0044657374696EC5
+:1008F0006174696F6E3A20252E36732D25640A00C7
+:1009000043616C6C7369676E3A20252E36732D2512
+:10091000640A00436F6E66696775726174696F6E11
+:100920003A0A00300A004572726F723A20496E76B8
+:10093000616C696420636F6D6D616E640A0045725D
+:10094000726F723A20496E76616C69642076616CD0
+:10095000756520666F72205458207461696C0A00B6
+:100960005458205461696C2073657420746F20257D
+:100970006C756D730A004572726F723A20496E761B
+:10098000616C69642076616C756520666F72207099
+:100990007265616D626C650A00507265616D626CB2
+:1009A000652073657420746F20256C756D730A0063
+:1009B000310A004D657373616765206175746F2D31
+:1009C00061636B2064697361626C65640A00310A5B
+:1009D000004D657373616765206175746F2D616388
+:1009E0006B20656E61626C65640A00310A005265B5
+:1009F0007472696564206C617374206D65737361D2
+:100A000067650A00310A000A002D25640A004D6559
+:100A1000737361676520726563697069656E743AA6
+:100A200020252E367300310A000A002D25640A00A5
+:100A30004D65737361676520726563697069656E82
+:100A4000743A20252E367300310A0053656C6563B5
+:100A5000746564207374616E646172642073796D6F
+:100A6000626F6C207461626C650A0053656C65632B
+:100A700074656420616C7465726E6174652073794D
+:100A80006D626F6C207461626C650A0053796D62EF
+:100A90006F6C2073657420746F2025630A004469AD
+:100AA0007265637469766974792073657420746FF4
+:100AB0002025646465670A00446972656374697619
+:100AC0006974792073657420746F206F6D6E690A84
+:100AD00000310A00310A004761696E207365742095
+:100AE000746F20256464420A00310A00416E746507
+:100AF0006E6E612068656967687420736574207420
+:100B00006F20256C646D204141540A00310A005069
+:100B10006F7765722073657420746F202564770A7F
+:100B200000310A004C6F6E677469747564652073D8
+:100B3000657420746F20252E39730A00310A004C29
+:100B4000617469747564652073657420746F202501
+:100B50002E38730A0053696C656E74206D6F64657E
+:100B60002064697361626C65640A0053696C656E28
+:100B700074206D6F646520656E61626C65640A0047
+:100B8000566572626F7365206D6F6465206469736A
+:100B900061626C65640A00566572626F7365206DF0
+:100BA0006F646520656E61626C65640A00310A00DD
+:100BB0005072696E7420494E464F206469736162B9
+:100BC0006C65640A00310A005072696E7420494EE7
+:100BD000464F20656E61626C65640A00310A005000
+:100BE00072696E7420444154412064697361626C7F
+:100BF00065640A00310A005072696E7420444154E1
+:100C00004120656E61626C65640A00310A005072B1
+:100C1000696E7420504154482064697361626C6548
+:100C2000640A00310A005072696E742050415448C1
+:100C300020656E61626C65640A00310A0050726959
+:100C40006E74204453542064697361626C65640A55
+:100C500000310A005072696E742044535420656E4E
+:100C600061626C65640A00310A005072696E74201A
+:100C70005352432064697361626C65640A00310AEF
+:100C8000005072696E742053524320656E61626C2D
+:100C900065640A00310A0050617468323A20252EDA
+:100CA00036732D25640A00310A0050617468313AA8
+:100CB00020252E36732D25640A00310A0044657301
+:100CC00074696E6174696F6E3A20252E36732D2516
+:100CD000640A00310A0043616C6C7369676E3A20E4
+:100CE000252E36732D25640A00310A005061746880
+:100CF000323A20252E36732D25640A00310A005021
+:100D0000617468313A20252E36732D25640A00312E
+:100D10000A0044657374696E6174696F6E3A2025C8
+:100D20002E36732D25640A00310A0043616C6C7302
+:100D300069676E3A20252E36732D25640A00310A24
+:100D4000004D6573736167652073656E740A0031C9
+:100D50000A004C6F636174696F6E20757064617412
+:100D6000652073656E740A00310A005061636B651B
+:100D7000742073656E740A000D0A00444154413AB0
+:100D800020005B252E36732D25645D2000504154D4
+:100D9000483A20005B252E36732D25645D200044E3
+:100DA00053543A20005B252E36732D25645D2000B8
+:100DB0005352433A2000310A00436F6E66696775EB
+:100DC000726174696F6E2073617665640A00300A1F
+:100DD000004572726F723A204E6F2073746F7265A5
+:100DE0006420636F6E66696775726174696F6E20E7
+:100DF000746F206C6F6164210A00436F6E666967CF
+:100E000075726174696F6E206C6F616465640A004D
+:100E1000310A00436F6E66696775726174696F6E3F
+:100E200020636C65617265642E2052657374617213
+:100E30007420746F206C6F61642064656661756CEA
+:100E400074732E0A002D2D2D2D2D2D2D2D2D2D2D94
+:100E50002D2D2D2D0A004D6F64656D207265616426
+:100E6000790A0044656661756C7420636F6E66690B
+:100E70006775726174696F6E206C6F61646564215F
+:100E80000A00756E7369676E65642E696F2F6D69F0
+:100E900063726F617072730A004D6963726F4150C3
+:100EA00052532076312E30620A002D2D2D2D2D2DFE
+:100EB0002D2D2D2D2D2D2D2D2D0A000011241FBE81
+:100EC000CFEFD8E0DEBFCDBF11E0A0E0B1E0EEEBA8
+:100ED000FDE402C005900D92A234B107D9F716E0E7
+:100EE000A2E4B1E001C01D92A23CB107E1F70E946B
+:100EF000C7200C94DD260C9400000C942E147894DA
+:100F000088EE93E00E94EE084DE757E068EE73E04C
+:100F100084EC94E00E944C0D86EB94E00E94AC07B8
+:100F200086EB94E09093BF068093BE069093BD0637
+:100F30008093BC0684EC94E00C94C8129091C0009D
+:100F400095FFFCCF8093C60008958091C00087FF75
+:100F5000FCCF8091C6000895CF93DF93CDB7DEB765
+:100F60002E970FB6F894DEBF0FBECDBFDC019EE01A
+:100F7000FD01892F11928A95E9F71092C50087E645
+:100F80008093C400E0ECF0E080818D7F808386E078
+:100F90008093C20088E18093C1009E012F5F3F4F84
+:100FA000F90111929A95E9F783E08C838EE997E035
+:100FB0009A87898785EA97E09C878B878EE0F9017D
+:100FC00001900D928A95E1F72E960FB6F894DEBF48
+:100FD0000FBECDBFDF91CF910895811106C08091E2
+:100FE000C000881F8827881F089580E00895809199
+:100FF000C00087FF03C08091C60008958FEF089559
+:10100000E0911A06F0911B064FB7F894EB58FF4F8A
+:1010100024813581868197814FBF28173907E1F0F8
+:10102000E0911A06F0911B062FB7F894EB58FF4F8A
+:10103000A481B58182819381A817B90719F48081B1
+:10104000918104C0A481B581CD01019695838483EB
+:101050008C912FBF90E008958FEF9FEF08950F932D
+:101060001F93CF93DF93182FC0911A06D0911B06C0
+:10107000FE01E959FF4F8081811124C080E490E096
+:101080009E8F8D8F1C8E1B8E1A8E01E00083299AF5
+:101090002091090130910A0140910B0150910C01FE
+:1010A000A0EBB4E00E9450216056704F8F4F9F4FCD
+:1010B00020E43FE140E050E00E946F213B8B2A8B0F
+:1010C000009393020FB7F894209105013091060127
+:1010D0004091070150910801A0EBB4E00E9450211B
+:1010E0006056704F8F4F9F4F20E43FE140E050E04B
+:1010F0000E946F213D8B2C8B0FBFE0911A06F0915F
+:101100001B065FB7F89423A134A1878D90A12817FF
+:10111000390739F425A136A181A192A128173907F1
+:1011200061F025A136A183A194A1019741E0281780
+:10113000390709F040E0842F01C081E05FBF80FDE6
+:10114000DCCFE0911A06F0911B064FB7F894A5A1E9
+:10115000B6A11C9325A136A181A192A12817390718
+:1011600019F4878D90A103C085A196A1019696A33D
+:1011700085A34FBFDF91CF911F910F91089581E01B
+:1011800080939202089581E08093920210928000F1
+:1011900089E18093810081E896E0909387008093B5
+:1011A000860080919202882321F080E480937C0065
+:1011B00002C010927C003898409880917E00816037
+:1011C00080937E0087E080937B008CEE80937A0092
+:1011D0008AB1886F8AB9219A229A08950F931F9332
+:1011E000CF93DF93CDB7DEB72E970FB6F894DEBF5F
+:1011F0000FBECDBF8C018AECD8011D928A95E9F70C
+:1012000010931B0600931A0680E490E0F801968F75
+:10121000858FC80180599F4FE859FF4F9183808384
+:101220009783868395838483C8018C589F4F9383CB
+:101230008283C80183589F4FD801AB58BF4F119686
+:101240009C938E9317969C938E93169715969C93CA
+:101250008E931497C80184549F4F13969C938E933A
+:101260001297C8018796D80190969C938E935F97AA
+:1012700096969C938E93959794969C938E93939722
+:10128000C8018A599F4F92969C938E93919784E0C0
+:1012900090E0A681B7811C924681578122813381DB
+:1012A0004217530719F42081318104C02681378108
+:1012B0002F5F3F4F378326830197009751F70E9496
+:1012C000C3082EE0FE013196DF01822F1D928A9520
+:1012D000E9F783E08C838FE298E09A87898780E042
+:1012E00098E09C878B87D80101900D922A95E1F7B1
+:1012F0002E960FB6F894DEBF0FBECDBFDF91CF9113
+:101300001F910F9108950F931F93CF93DF938B013C
+:10131000E0911A06F0911B0625A136A134A323A360
+:10132000EC01080F191FC017D10721F089910E9405
+:101330002F08F9CFDF91CF911F910F910895DC0114
+:1013400056968C9156978111E9C058968C91589772
+:1013500081119FC093962D913C91949795968D9174
+:101360009C9196972817390739F454968D919C9142
+:101370005597892B09F45CC059968C915997811126
+:1013800003C05A961C925A9781E059968C935997AC
+:1013900052968D919C915397009789F593962D9134
+:1013A0003C91949795968D919C9196972817390723
+:1013B00051F454968D919C915597019755969C9315
+:1013C0008E93549721C09396ED91FC9194979196AA
+:1013D0008D919C919297E817F90729F45F968D916A
+:1013E0009C91909706C09396ED91FC919497CF01B4
+:1013F000019694969C938E939397808106C0019753
+:1014000053969C938E9352978EE757968C9357974B
+:1014100057968C9157978B3191F593962D913C91DE
+:10142000949795968D919C9196972817390741F43A
+:1014300010929302A959BF4F1C92299880E00895F9
+:101440009396ED91FC91949791968D919C919297A2
+:10145000E817F90729F45F968D919C91909706C043
+:101460009396ED91FC919497CF01019694969C935D
+:101470008E939397808157968C93579706C08E577B
+:10148000823018F459961C92599781E058968C93A3
+:10149000589759962C9159975D968D919C915E978E
+:1014A0002223A9F05A962C915A97253080F05A960B
+:1014B0001C925A978034910519F485E790E002C098
+:1014C00080E490E05E969C938E935D9723C058963F
+:1014D0003C91589757962C915797232341F05A9651
+:1014E0008C915A978F5F5A968C935A970FC05A9641
+:1014F0001C925A978034910519F485E790E002C058
+:1015000080E490E05E969C938E935D97330F58969F
+:101510003C93589788E056968C9356975D96ED913C
+:10152000FC915E975B968D919C915C97E80FF91FFB
+:101530009F0131705C963C932E935B9756968C91ED
+:101540005697815056968C93FF27E038F10530F07E
+:101550008FEF90E0AC014E1B5F0BFA01E859FF4F93
+:1015600084912F3F310511F008F080950895EF9296
+:10157000FF920F931F93CF93DF93FC018C010154D3
+:101580001F4FD8014D915C91DC01A354BF4F4D9387
+:101590005C93DC01A859BF4F14968D919C911597CF
+:1015A00012962D913C9113978217930721F42D9158
+:1015B0003C91119707C014968D919C9115979C01B1
+:1015C0002F5F3F4F15963C932E931497EC01888123
+:1015D0008602C00111249595879595958795E80118
+:1015E000998388837F01D3ECED0EF11CE7012881FC
+:1015F00039818F010F531F4FE80139832883840FEE
+:10160000951F35952795820F931FE701998388834E
+:10161000AF014B535F4F21E0181619060CF020E084
+:10162000EA018881880F822B888316968D919C9180
+:101630001797EC01688316962D913C911797129697
+:101640008D919C9113972817390721F48D919C91C6
+:10165000119705C016968D919C9117970196179634
+:101660009C938E931697DA019C91892F8695869587
+:1016700089278370DF01AA53BF4F833039F48C91DF
+:10168000803214F48F5F01C081508C938C91885FFD
+:101690008C9380340CF45FC18F738C93DF01A9535A
+:1016A000BF4F8C91880F97702BEF290F233010F0CC
+:1016B000933009F481608C939C91892F86958927BA
+:1016C000809581709685990F892B86878E3709F0D2
+:1016D0004EC0DF01AB58BF4F14962D913C9115972A
+:1016E0008D919C9111972817390759F416962D91D1
+:1016F0003C91179712968D919C9113972817390753
+:1017000081F016962D913C91179714968D919C918E
+:101710001597019741E02817390709F040E0842F19
+:1017200001C081E080FDDCC01696CD91DC91179759
+:101730008EE7888316962D913C91179712968D917E
+:101740009C9113972817390721F48D919C9111973B
+:1017500005C016968D919C911797019617969C93AC
+:101760008E93169781E0818B2A9A41E0BCC0982F16
+:101770009F779F3719F4118A2A98EDC09189992390
+:1017800009F4E9C0982F9F739E3309F4E4C080FFE9
+:1017900003C080898068808B87858F5F8787908969
+:1017A000883008F4A5C0DF01AB58BF4F82E8890F2D
+:1017B000823018F09B3109F04BC014962D913C916A
+:1017C00015978D919C9111972817390759F4169602
+:1017D0002D913C91179712968D919C9113972817F4
+:1017E000390781F016962D913C91179714968D919B
+:1017F0009C911597019741E02817390709F040E0BF
+:10180000842F01C081E080FD1FC01696CD91DC9130
+:1018100017978BE1888316962D913C911797129616
+:101820008D919C9113972817390721F48D919C91E4
+:10183000119705C016968D919C9117970196179652
+:101840009C938E93169704C0118A2A9840E001C099
+:1018500041E014962D913C9115978D919C91119793
+:101860002817390759F416962D913C91179712961F
+:101870008D919C9113972817390781F016962D9119
+:101880003C91179714968D919C911597019751E073
+:101890002817390709F050E0852F01C081E080FD4D
+:1018A0001FC080891696CD91DC9117978883169674
+:1018B0002D913C91179712968D919C911397281713
+:1018C000390721F48D919C91119705C016968D9141
+:1018D0009C911797019617969C938E93169703C029
+:1018E000118A2A9840E0108A1786442321F033C0D9
+:1018F0009695908B30C0DF01A853BF4F8D919C917E
+:101900001197816011969C938E93EB58FF4F248121
+:101910003581808191812817390739F426813781F3
+:10192000828193812817390761F02681378184816C
+:101930009581019741E02817390709F040E0842F8D
+:1019400001C081E080FF07C08681978195838483F1
+:1019500011961C921E92DF91CF911F910F91FF90D3
+:10196000EF9008951F920F920FB60F9211242F93AC
+:101970003F934F935F936F937F938F939F93AF9317
+:10198000BF93EF93FF9380E286BB609178007091E4
+:1019900079007695679576956795605880911A06D7
+:1019A00090911B060E94B70A80919302882349F008
+:1019B00080911A0690911B060E949F09807F886083
+:1019C00001C080E88BB98091B2049091B304A091DA
+:1019D000B404B091B5040196A11DB11D8093B20469
+:1019E0009093B304A093B404B093B504FF91EF9126
+:1019F000BF91AF919F918F917F916F915F914F9127
+:101A00003F912F910F900FBE0F901F901895CF927E
+:101A1000DF92EF92FF920F931F93CF93DF931F926A
+:101A2000CDB7DEB77C01462F82E8860F9701265B93
+:101A30003E4F6901823010F06B3149F4F60160814C
+:101A400071818BE190E049830E94BE234981D701D7
+:101A5000A05BBE4F2C9111965C911197842F90E062
+:101A6000FC01E227EE0FFF1FE851FF4F2591349153
+:101A7000052F10E0202731272D933C93F60160813C
+:101A800071810F90DF91CF911F910F91FF90EF9097
+:101A9000DF90CF900C94BE2326E531E0DC01F90104
+:101AA0001D923197E9F7FC01E65BFE4F718360837D
+:101AB000FC01EE5AFE4F51834083FC01E05BFE4F78
+:101AC0002FEF3FEF31832083FC01E25BFE4F318338
+:101AD000208308952F923F924F925F926F927F9250
+:101AE0008F929F92AF92BF92CF92DF92EF92FF922E
+:101AF0000F931F93CF93DF93CDB7DEB7C555D109B1
+:101B00000FB6F894DEBF0FBECDBF8C01865B9E4F33
+:101B100064969FAF8EAF649728019BEA491A9EEFA7
+:101B2000590A5801ACEAAA1AAEEFBA0A7801B4EB26
+:101B3000EB1ABEEFFB0A6496EEADFFAD64978081B1
+:101B400091810E9480238F3FFFEF9F0709F424C1FA
+:101B5000D2012C912111F1C08E37910509F0E1C01D
+:101B6000F70140815181C801825B9E4F62969FAF11
+:101B70008EAF62974231510508F4C4C0DC018D91EB
+:101B80009C91883B904F09F0BDC0D801FE0138966A
+:101B9000CE010E962D912695203209F420E0219356
+:101BA000E817F907B9F7F801868186958F708E8757
+:101BB000D8011796FE013196CF0106962D912695F4
+:101BC000203209F420E02193E817F907B9F7F8016A
+:101BD0003D96D8011D968C9186958F708F8329969E
+:101BE0008FAC2997912C97E0792E61E070E080818D
+:101BF00080FF10C028969FAE289729968FAE299710
+:101C0000818190E02B969FAF8EAF2B97039709F0C1
+:101C100079C057C0B7E0B91568F322242394312C5A
+:101C20002C0E3D1E27E0929E200C311C1124CF016A
+:101C3000019666969FAF8EAF669780E090E0292D63
+:101C400030E06696AEADBFAD66976D906696BFAF5D
+:101C5000AEAF66976694B0E26B1201C0612C610171
+:101C6000C80ED91ED6011E966C920196863091053B
+:101C700041F737969081729ED001739EB00D11246A
+:101C8000CC24C394D12CCC0EDD1EAC0DBD1D892FF0
+:101C900086958F7054968C9397FF08C0CB0102C035
+:101CA000880F991F2A95E2F7882A09C0DB0102C034
+:101CB000AA0FBB1F2A95E2F79D01209582229394DB
+:101CC00096CF82812C968FAF2C97803FD9F4339694
+:101CD00042505109C8018E1B9F0B480F591F609637
+:101CE0005FAF4EAF60972E96FFAFEEAF2E97F80125
+:101CF000EE5AFE4F0190F081E02D309719F0CE01A1
+:101D00000196099581E0D5018C938FEF9FEF629644
+:101D1000EEADFFAD629791838083D7011D921C9237
+:101D20000ACF8F37910511F4F50134C08B3191053D
+:101D300021F481E0D2018C93FECEF5012081222393
+:101D400041F1D7012D913C912A34B1E03B0700F5D8
+:101D5000A9014F5F5F4FF70151834083F801E20F04
+:101D6000F31F8083D801A25BBE4F2D913C91119748
+:101D7000F901E827FF27EE0FFF1FE851FF4F85917C
+:101D80009491232F3327822793278D939C9301C00F
+:101D90001082F2011082CFCECB5ADF4F0FB6F894EB
+:101DA000DEBF0FBECDBFDF91CF911F910F91FF908E
+:101DB000EF90DF90CF90BF90AF909F908F907F90EB
+:101DC0006F905F904F903F902F9008958F929F92C9
+:101DD000AF92BF92CF92DF92EF92FF920F931F9339
+:101DE000CF93DF938C014B016A017C0180EBE81AF1
+:101DF0008EEFF80A8FEF9FEFF701918380835801F0
+:101E0000F6EBAF1AFEEFBF0AF501608171818EE734
+:101E100090E00E94BE23E401C80CD91CCC15DD055E
+:101E200029F06991C8010E94070DF8CFF701608180
+:101E3000C1816095C8010E94070D6C2F6095C80193
+:101E40000E94070DF501608171818EE790E0DF91BE
+:101E5000CF911F910F91FF90EF90DF90CF90BF90A7
+:101E6000AF909F908F900C94BE232F923F924F92F1
+:101E70005F926F927F928F929F92AF92BF92CF921A
+:101E8000DF92EF92FF920F931F93CF93DF93CDB723
+:101E9000DEB729970FB6F894DEBF0FBECDBF998786
+:101EA00088876B014A012C833D835C0180EBA81A73
+:101EB0008EEFB80A8FEF9FEFF5019183808328841E
+:101EC0003984F6EB2F1AFEEF3F0AF1016081718130
+:101ED0008EE790E00E94BE237601C12CD12CC40174
+:101EE00001979B838A83C814D90409F458C091E0F0
+:101EF0009983EA81FB81CE16DF0609F01982F7018A
+:101F000001900020E9F7CF0101973C016E187F088E
+:101F100097E06916710418F026E0622E712C930187
+:101F20002E0D3F1D27014216530689F0F2018191C3
+:101F30002F0190E02E833F830E946723682F660F56
+:101F4000888599850E94070D3F812E81ECCFF6E0B0
+:101F50006F16710499F0412C512C86E090E086199F
+:101F600097093C014614570448F460E48885998534
+:101F70000E94070D9FEF491A590AF4CF89818066A4
+:101F8000F7016681660F682B888599850E94070D89
+:101F9000FFEFCF1ADF0A87E0E80EF11CA4CF63E061
+:101FA000888599850E94070D60EF888599850E9434
+:101FB000070DEC80FD800E0D1F1DE016F10641F0AF
+:101FC000F70161917F01888599850E94070DF5CF02
+:101FD000F501608111816095888599850E94070DC2
+:101FE000612F6095888599850E94070DF1016081B8
+:101FF00071818EE790E029960FB6F894DEBF0FBE90
+:10200000CDBFDF91CF911F910F91FF90EF90DF90A7
+:10201000CF90BF90AF909F908F907F906F905F9088
+:102020004F903F902F900C94BE2390931E06809368
+:102030001D065093B7044093B60470932006609336
+:102040001F060895EF92FF920F931F93CF93DF9394
+:10205000EC016091B6047091B70480EC90E00E94AE
+:10206000BE236091B6047091B70480E090E00E94B6
+:10207000BE238E017E0184EBE81A8EEFF80AF70189
+:10208000808191816091B6047091B70498012C1BF6
+:102090003D0B2817390708F5F80181918F01803C25
+:1020A00059F48BED90E00E94BE236091B6047091CC
+:1020B000B7048CED90E00EC08B3D59F48BED90E0B1
+:1020C0000E94BE236091B6047091B7048DED90E03C
+:1020D00001C090E00E94BE23D2CF80EC90E0DF915F
+:1020E000CF911F910F91FF90EF900C94BE238F9290
+:1020F0009F92AF92BF92CF92DF92EF92FF920F9397
+:102100001F93CF93DF93EC017B016A01E0911F06DF
+:10211000F09120068189811144C00E943923909159
+:102120000001891788F4A601B701CE01DF91CF9194
+:102130001F910F91FF90EF90DF90CF90BF90AF90E5
+:102140009F908F900C94E60E8FB7F8948090B20415
+:102150009090B304A090B404B090B5048FBF2091C8
+:102160000101309102014091030150910401AAE064
+:10217000B0E00E9450214FB7F8940091B204109142
+:10218000B3042091B4043091B5044FBF0819190964
+:102190002A093B0906171707280739070CF0B6CF9D
+:1021A000EACFE0911F06F09120068189882309F487
+:1021B000ADCF80911D0690911E060E946A0DE091A0
+:1021C0001F06F0912006E853FF4F80819181892BF3
+:1021D00041F311821082DF91CF911F910F91FF90F7
+:1021E000EF90DF90CF90BF90AF909F908F90089529
+:1021F000282F809121068823A1F0203C01F58091B1
+:102200000D01811111C010922106409122065091BA
+:10221000230664E972E080911D0690911E060C94DD
+:102220007710203C09F079C081E0809321068EEF81
+:1022300080930D011092230610922206089580913A
+:102240002206909123068A3431E0930708F065C096
+:1022500030910D01009731F43E3F21F42F7020930F
+:102260000D01089531111FC02B3D21F481E08093B1
+:102270001C06089530911C06332349F02C3D21F0B3
+:102280002D3D19F42BED01C020EC10921C06AC0181
+:102290004F5F5F4F5093230640932206FC01EC569C
+:1022A000FD4F20830895313071F430E0AAE0B0E0B2
+:1022B0000E943A216093090170930A0180930B01F7
+:1022C00090930C010895343089F43AE0239FC001C3
+:1022D0001124AA2797FDA095BA2F8093050190930A
+:1022E0000601A0930701B09308010895333089F4E3
+:1022F0003AE0239FC0011124AA2797FDA095BA2F89
+:102300008093010190930201A0930301B093040113
+:102310000895323011F42093000108956FEF8EE29A
+:1023200090E00E94122680913201882341F083E1DF
+:102330009EE09F938F930E94F0230F900F908091C7
+:10234000320181110CC08091E703811108C080E146
+:102350009EE09F938F930E94F0230F900F9008951B
+:10236000CF938EE290E00E94F425893609F0E3C015
+:1023700046E050E068E270E08CE291E00E94E425E3
+:1023800046E050E062E270E086E291E00E94E425DF
+:1023900046E050E06CE170E080E291E00E94E425CC
+:1023A00046E050E066E170E088E191E00E94E425BB
+:1023B00085E190E00E94F42590E09093E4038093FF
+:1023C000E30384E190E00E94F42590E09093E2031F
+:1023D0008093E10383E190E00E94F42590E09093E4
+:1023E0001F0180931E0182E190E00E94F42590E09D
+:1023F000909317018093160181E190E00E94F425EB
+:1024000091E0811101C090E09093370180E190E06C
+:102410000E94F42591E0811101C090E09093360173
+:102420008FE090E00E94F42591E0811101C090E0DE
+:10243000909335018EE090E00E94F42591E08111A7
+:1024400001C090E0909334018DE090E00E94F4256B
+:1024500091E0811101C090E0909333018CE090E015
+:102460000E94F425C1E0811101C0C0E0C093320197
+:102470008BE090E00E94F42591E0811101C090E092
+:102480009093E7038AE090E00E94F4258093130183
+:1024900089E090E00E94F4258093120188E090E0AA
+:1024A0000E94F4258093110187E090E00E94F425BA
+:1024B0008093100186E090E00E94F425809315013E
+:1024C00085E090E00E94F4258093140184E090E080
+:1024D0000E94F42591E0811101C090E09093DE0309
+:1024E00082E090E00E94FC25A0E0B0E0809309012A
+:1024F00090930A01A0930B01B0930C0180E090E04F
+:102500000E94FC25A0E0B0E08093050190930601B5
+:10251000A0930701B0930801CC23C1F18091E60399
+:102520008823A1F18AEF9DE09F938F930E94F0236F
+:102530000F900F902BC08091E603882381F080914B
+:10254000E70381110CC080913201882341F081EDB5
+:102550009DE09F938F930E94F0230F900F908091A6
+:10256000E603882381F08091E70381110CC08091FC
+:102570003201811108C08EEC9DE09F938F930E94E1
+:10258000F0230F900F9081E08093E503CF910895A1
+:1025900090931E0680931D060E94B01181E08093E7
+:1025A000E603809132018823A1F18AEA9EE09F939D
+:1025B0008F930E94F02389E99EE09F938F930E945E
+:1025C000F02382E89EE09F938F930E94F0230F9068
+:1025D0000F900F900F900F900F908091E50388233C
+:1025E00041F083E69EE09F938F930E94F0230F902B
+:1025F0000F9086E59EE09F938F930E94F02385E4E1
+:102600009EE09F938F930E94F0230F900F900F9066
+:102610000F90089546E050E068E270E08CE291E0AF
+:102620000E94022646E050E062E270E086E291E01D
+:102630000E94022646E050E06CE170E080E291E00A
+:102640000E94022646E050E066E170E088E191E0F9
+:102650000E9402266091E30385E190E00E94122629
+:102660006091E10384E190E00E94122660911E01D6
+:1026700083E190E00E9412266091160182E190E0D1
+:102680000E9412266091370181E190E00E9412269B
+:102690006091360180E190E00E9412266091350140
+:1026A0008FE090E00E941226609134018EE090E06D
+:1026B0000E941226609133018DE090E00E94122664
+:1026C000609132018CE090E00E9412266091E70355
+:1026D0008BE090E00E941226609113018AE090E066
+:1026E0000E9412266091120189E090E00E94122659
+:1026F0006091110188E090E00E9412266091100123
+:1027000087E090E00E9412266091150186E090E03B
+:102710000E9412266091140185E090E00E9412262A
+:102720006091DE0384E090E00E941226609109012E
+:1027300070910A0182E090E00E94242660910501D8
+:102740007091060180E090E00E94242669E68EE206
+:1027500090E00E94122680913201882341F089EB9B
+:102760009DE09F938F930E94F0230F900F90809194
+:10277000320181110CC08091E703811108C086EB02
+:102780009DE09F938F930E94F0230F900F900895E8
+:102790000F931F939C01CA0146E0E6E2F1E0A2E438
+:1027A000B6E001900D924A95E1F74091E103409324
+:1027B000480646E0ECE2F1E0A1EAB6E001900D92B5
+:1027C0004A95E1F74091E3034093A70646E0E0E233
+:1027D000F1E0A9E4B6E001900D924A95E1F740914D
+:1027E0001E0140934F0646E0E8E1F1E0A1EBB6E0C0
+:1027F00001900D924A95E1F7409116014093B7067A
+:1028000047E0E2E4F6E0A4E2B6E001900D924A95DA
+:10281000E1F747E0E1EAF6E0ABE2B6E001900D92C5
+:102820004A95E1F747E0E9E4F6E0A2E3B6E001907B
+:102830000D924A95E1F747E0E1EBF6E0A9E3B6E057
+:1028400001900D924A95E1F78B0144E050E064E27B
+:1028500076E00E94350F1F910F9108958F929F92FD
+:10286000AF92BF92CF92DF92EF92FF920F931F939E
+:10287000CF93DF9300D000D000D0CDB7DEB76C018E
+:10288000809137018823F9F080913301882341F04A
+:1028900080EB9DE09F938F930E94F0230F900F9009
+:1028A000D60116968C911F928F93DF92CF9285EA74
+:1028B0009DE09F938F930E94F0230F900F900F90B5
+:1028C0000F900F900F9080913601882301F1809135
+:1028D0003301882341F08FE99DE09F938F930E94FD
+:1028E000F0230F900F90F60185851F928F93C601FC
+:1028F00007969F938F9384E99DE09F938F930E9407
+:10290000F0230F900F900F900F900F900F908091E9
+:102910003501811105C080913401811144C036C058
+:1029200080913301882341F08DE89DE09F938F9340
+:102930000E94F0230F900F908601025F1F4FE12C41
+:10294000F12C4601F6E48F0E911C82E8A82E8DE052
+:10295000B82EF401808190E0E816F906E4F6D8017B
+:1029600016968C911F928F931F930F93BF92AF92E5
+:102970000E94F023BFEFEB1AFB0A095F1F4F0F9075
+:102980000F900F900F900F900F90E3CF88E79DE08E
+:102990009F938F930E94F0230F900F908091DE03FE
+:1029A000811136C02DC1809133019601235B3F4FC9
+:1029B0007901882389F0D90111968C9111978F9311
+:1029C0008C918F938BE79DE09F938F930E94F023D0
+:1029D0000F900F900F900F9000E010E05601BBE4B5
+:1029E000AB0EB11CF701808191810817190770F6B1
+:1029F0006091BE067091BF06D501ED91FC91E00F8C
+:102A0000F11F808190E00E94BE230F5F1F4FEACF2D
+:102A1000F601E35BFF4F0190F081E02DEC30F10512
+:102A200008F4EEC0D601A55BBF4F2D913C917F010C
+:102A3000E20EF31E80E090E0A12CB12CAE014F5FBE
+:102A40005F4FD7016E917D016B3769F4DA01B701F1
+:102A5000FB011191BF011D938D01041B150B801704
+:102A60009107B0F75C0101968730910551F7A114E9
+:102A7000B10409F4C5C081E090E0A1E0F901E80FDC
+:102A8000F91F5081FC01E55DFE4F4081541719F09C
+:102A900087E090E0A0E00196873091057CF340E06C
+:102AA00050E0F901E80FF91F60816D3209F4AC01C3
+:102AB00001968A309105ACF341155105A1F0F90159
+:102AC000E40FF51F82816091E3037091E40380328B
+:102AD00021F4818190E0C09702C090E0869786172C
+:102AE000970709F08DC0AA2309F48AC07501FEE09A
+:102AF000EF0EF11CC7010E94C4218C0180E090E020
+:102B000020E20196F801E80FF91F20838930910532
+:102B1000C1F7B60181E090E0E0E0F0E0DB014D912B
+:102B2000BD01442331F09801280F391FD9014C937E
+:102B3000319601968730910589F7D60116968C91CA
+:102B4000882369F0E00FF11F9DE291838A3018F429
+:102B5000805D828304C091E392838A5D83838AE3EC
+:102B6000F8018083828781E6838783E684878BE60A
+:102B70008587DE0112963E9680E090E001962D91C9
+:102B800021938A159B05D4F32FB7F8948091B20452
+:102B90009091B304A091B404B091B5042FBF2FB7A6
+:102BA000F8944091B2045091B3046091B4047091D0
+:102BB000B5042FBF481B590B6A0B7B0B4C35544493
+:102BC0006105710560F340911D0650911E06B70125
+:102BD000C8010E94C813C80126960FB6F894DEBF3C
+:102BE0000FBECDBFDF91CF911F910F91FF90EF905E
+:102BF000DF90CF90BF90AF909F908F900C945C220D
+:102C000026960FB6F894DEBF0FBECDBFDF91CF91F1
+:102C10001F910F91FF90EF90DF90CF90BF90AF90FA
+:102C20009F908F9008956F927F929F92AF92BF92E4
+:102C3000CF92DF92EF92FF920F931F93CF93DF9388
+:102C40001F92CDB7DEB75C018B016A017B0184E185
+:102C5000E80EF11C209113012A3098F480911201A2
+:102C60008A3078F4809111018A3058F480911001F3
+:102C7000893038F47B01EBE1EE0EF11C992493943A
+:102C800001C0912CC70129830E94C4213C018DE31E
+:102C9000F301808380911501818780911401838BDA
+:102CA00088E0E9E9F6E0D301119601900D928A954A
+:102CB000E1F789E0E8EAF6E0D3011A9601900D9277
+:102CC0008A95E1F72981911003C0C301449617C08A
+:102CD00080E5F301848B88E4858B87E4868B205D17
+:102CE000278B80911201805D808F80911101805D22
+:102CF000818F80911001805D828FC3014B960115F9
+:102D0000110521F0A801B5010E946F23A601B701AA
+:102D1000C3010E94C813C3010F90DF91CF911F918F
+:102D20000F91FF90EF90DF90CF90BF90AF909F906A
+:102D30007F906F900C945C228F929F92AF92BF9283
+:102D4000CF92DF92EF92FF920F931F93CF93DF9377
+:102D50005C016A018B016434710510F003E410E03A
+:102D600078012FE0E20EF11CC7010E94C421EC01A2
+:102D70008AE3888387E090E020E030E001970097C5
+:102D800069F0F901E05BF94F40814423B9F32F5F0B
+:102D90003F4FFE01E20FF31F4083F0CF80910E0101
+:102DA00090910F018F3F4FEF940779F0FE01E20FF2
+:102DB000F31F4DE241838A3091054CF42E5F3F4F63
+:102DC000FE01E20FF31F805D808380E209C091E382
+:102DD00092832D5F3F4FFE01E20FF31F8A5DF4CF18
+:102DE000293031053CF42F5F3F4FFE01E20FF31F06
+:102DF0008083F6CFFE01E20FF31F8AE38183011582
+:102E0000110581F0A801B501CE010B960E946F2338
+:102E1000A801B50186E596E00E946F231093410654
+:102E2000009340068091DF039091E0030196883E75
+:102E300023E092072CF49093E0038093DF0304C017
+:102E40001092E0031092DF03FE01E00FF11F8BE709
+:102E500083870091DF031091E0039AE0892E912C83
+:102E6000C801B4010E945B219C0144E6A42EB12C50
+:102E7000C801B5010E945B21821B930BB4010E9423
+:102E80005B21AB01C801861B970B821B930BB5011D
+:102E90000E945B21605D6487405D4587205D2687D9
+:102EA000A601B701CE010E94C813CE01DF91CF91D8
+:102EB0001F910F91FF90EF90DF90CF90BF90AF9058
+:102EC0009F908F900C945C222091DF033091E0035F
+:102ED000215031093093E0032093DF0360914006D5
+:102EE00070914106AC0186E596E00C949C1683E156
+:102EF00099E09F938F930E94F0238091E4038F9336
+:102F00008091E3038F938CE291E09F938F9380E015
+:102F100099E09F938F930E94F0238091E2038F9317
+:102F20008091E1038F9386E291E09F938F938AEEE5
+:102F300098E09F938F930E94F02380911F018F93BD
+:102F400080911E018F9380E291E09F938F938AED91
+:102F500098E09F938F930E94F023809117018F93A5
+:102F6000809116018F9388E191E09F938F938AEC73
+:102F700098E09F938F930E94F0238DB79EB74A9657
+:102F80000FB6F8949EBF0FBE8DBF8091DE038823DD
+:102F900019F083EB98E002C08BE998E09F938F9340
+:102FA0000E94F0230F900F90809113018A3061F0FE
+:102FB0001F928F9380E998E09F938F930E94F02354
+:102FC0000F900F900F900F90809112018A3061F056
+:102FD0001F928F9384E898E09F938F930E94F02331
+:102FE0000F900F900F900F90809111018A3061F037
+:102FF0001F928F938AE798E09F938F930E94F0230C
+:103000000F900F900F900F90809110018A3061F017
+:103010001F928F9389E698E09F938F930E94F023ED
+:103020000F900F900F900F90809115018C3541F407
+:1030300080E598E09F938F930E94F0230F900F906C
+:10304000809115018F3241F488E398E09F938F932C
+:103050000E94F0230F900F90809114011F928F9384
+:103060008CE298E09F938F930E94F02380910C0153
+:103070008F9380910B018F9380910A018F938091A0
+:1030800009018F938AE198E09F938F930E94F02328
+:10309000809108018F93809107018F9380910601A1
+:1030A0008F93809105018F938CE098E09F938F938D
+:1030B0000E94F0238DB79EB740960FB6F8949EBF3E
+:1030C0000FBE8DBF089588EE97E09F938F930E9467
+:1030D000F02386ED97E09F938F930E94F0238BEB74
+:1030E00097E09F938F930E94F02382E897E09F934D
+:1030F0008F930E94F02384E697E09F938F930E9422
+:10310000F02387E497E09F938F930E94F02383E25C
+:1031100097E09F938F930E94F02385E097E09F9321
+:103120008F930E94F02386EE96E09F938F930E94E8
+:10313000F0238DEC96E09F938F930E94F0238DEA0D
+:1031400096E09F938F930E94F02383E996E09F93EC
+:103150008F930E94F02388E796E09F938F930E94BD
+:10316000F02385E496E09F938F930E94F02381E102
+:1031700096E09F938F930E94F02384EF95E09F93B6
+:103180008F930E94F0238DB79EB780960FB6F89468
+:103190009EBF0FBE8DBF81ED95E09F938F930E94E0
+:1031A000F02380EB95E09F938F930E94F02388E8B3
+:1031B00095E09F938F930E94F0238FE695E09F9375
+:1031C0008F930E94F0238AE395E09F938F930E9450
+:1031D000F02380E195E09F938F930E94F0238AEE85
+:1031E00094E09F938F930E94F0238CEC94E09F9344
+:1031F0008F930E94F02383EA94E09F938F930E9421
+:10320000F02387E894E09F938F930E94F0238BE64E
+:1032100094E09F938F930E94F0238EE494E09F9319
+:103220008F930E94F02381E394E09F938F930E94F9
+:10323000F02383E194E09F938F930E94F02384EF27
+:1032400093E09F938F930E94F02385ED93E09F93EB
+:103250008F930E94F0238DB79EB780960FB6F89497
+:103260009EBF0FBE8DBF82EB93E09F938F930E9412
+:10327000F02386E893E09F938F930E94F02388E6E3
+:1032800093E09F938F930E94F0238AE493E09F93AF
+:103290008F930E94F0238BE293E09F938F930E9481
+:1032A000F0238CE093E09F938F930E94F02388EEAD
+:1032B00092E09F938F930E94F0238DB79EB70E9656
+:1032C0000FB6F8949EBF0FBE8DBF0895EF92FF9288
+:1032D0000F931F93CF93DF9300D000D0CDB7DEB70D
+:1032E0008C016115710509F447C7FC0180818132A9
+:1032F00009F56230710508F4FAC661507109C80118
+:1033000001960E94C81380913201882341F08BE618
+:103310009DE09F938F930E94F0230F900F908091D8
+:103320003201811129C78091E703811125C788E601
+:103330009DE0F3C68034E9F461507109C80101963B
+:103340000E94131680913201882341F082E59DE0AE
+:103350009F938F930E94F0230F900F9080913201E2
+:1033600081110AC78091E703811106C78FE49DE0B0
+:10337000D4C68332E9F461507109C80101960E94F4
+:103380009C1680913201882341F081E49DE09F9357
+:103390008F930E94F0230F900F9080913201811142
+:1033A000EBC68091E7038111E7C68EE39DE0B5C6C9
+:1033B000883619F40E946318DFC6883419F40E9415
+:1033C0007717DAC6833519F40E940A13D5C68334F9
+:1033D00019F40E948E11D0C68C3419F40E94B011D9
+:1033E000CBC6833609F052C06430710508F47FC63D
+:1033F000ECE2F1E081E090E09C0121503109861778
+:103400009707A9F08730910581F0D801A80FB91F5F
+:103410002C91222331F02A3021F02D3011F020831D
+:1034200001C0108201963196E7CF26E030E02630C9
+:10343000310539F0F901E45DFE4F10822F5F3F4FF7
+:10344000F6CF809132018823B1F08091E4038F930D
+:103450008091E3038F938CE291E09F938F938BE2B3
+:103460009DE09F938F930E94F0230F900F900F90F9
+:103470000F900F900F908091320181117DC6809145
+:10348000E703811179C688E29DE047C6843609F0DA
+:1034900052C06430710508F42AC6E6E2F1E081E02A
+:1034A00090E09C012150310986179707A9F08730D9
+:1034B000910581F0D801A80FB91F2C91222331F07A
+:1034C0002A3021F02D3011F0208301C010820196A6
+:1034D0003196E7CF26E030E02630310539F0F901AA
+:1034E000EA5DFE4F10822F5F3F4FF6CF8091320191
+:1034F0008823B1F08091E2038F938091E1038F9351
+:1035000086E291E09F938F9382E19DE09F938F935A
+:103510000E94F0230F900F900F900F900F900F903C
+:1035200080913201811128C68091E703811124C660
+:103530008FE09DE0F2C5813309F052C06230710521
+:1035400008F4D5C5E0E2F1E081E090E09C01215073
+:10355000310986179707A9F08730910581F0D801C6
+:10356000A80FB91F2C91222331F02A3021F02D30E1
+:1035700011F0208301C0108201963196E7CF26E03A
+:1035800030E02630310539F0F901E05EFE4F10825F
+:103590002F5F3F4FF6CF809132018823B1F08091A9
+:1035A0001F018F9380911E018F9380E291E09F9382
+:1035B0008F938FEF9CE09F938F930E94F0230F9047
+:1035C0000F900F900F900F900F908091320181110A
+:1035D000D3C58091E7038111CFC58CEF9CE09DC5D9
+:1035E000823309F052C06230710508F480C5E8E109
+:1035F000F1E081E090E09C012150310986179707A6
+:10360000A9F08730910581F0D801A80FB91F2C913E
+:10361000222331F02A3021F02D3011F0208301C017
+:10362000108201963196E7CF26E030E02630310552
+:1036300039F0F901E85EFE4F10822F5F3F4FF6CF61
+:10364000809132018823B1F0809117018F9380918E
+:1036500016018F9388E191E09F938F938CEE9CE00D
+:103660009F938F930E94F0230F900F900F900F90D5
+:103670000F900F908091320181117EC58091E703F8
+:1036800081117AC589EE9CE048C5833709F011C1E4
+:103690006330710508F42BC57B01F1E0EF1AF108E6
+:1036A000F8018181833609F03FC0F2E0EF16F104A2
+:1036B00049F0F80183819FEC980F993018F490E05D
+:1036C000869704C0F801828190E0C0979093E4034C
+:1036D0008093E303809132018823B1F08091E40369
+:1036E0008F938091E3038F938CE291E09F938F936C
+:1036F00086ED9CE09F938F930E94F0230F900F9094
+:103700000F900F900F900F908091320181110CC09B
+:103710008091E703811108C083ED9CE09F938F9314
+:103720000E94F0230F900F90F8018181843609F0F8
+:103730003FC0F2E0EF16F10449F0F80183819FECFD
+:10374000980F993018F490E0869704C0F8018281B0
+:1037500090E0C0979093E2038093E103809132015F
+:103760008823B1F08091E2038F938091E1038F93DE
+:1037700086E291E09F938F938DEB9CE09F938F93D4
+:103780000E94F0230F900F900F900F900F900F90CA
+:103790008091320181110CC08091E703811108C032
+:1037A0008AEB9CE09F938F930E94F0230F900F90E1
+:1037B000F80181818133F1F583819FEC980F993075
+:1037C000C8F5F2E0EF16F10419F090E0869704C016
+:1037D000F801828190E0C09790931F0180931E01B1
+:1037E000809132018823B1F080911F018F938091E5
+:1037F0001E018F9380E291E09F938F938AEA9CE071
+:103800009F938F930E94F0230F900F900F900F9033
+:103810000F900F908091320181110CC08091E703CD
+:10382000811108C087EA9CE09F938F930E94F02348
+:103830000F900F90F8018181823309F09DC483813C
+:103840009FEC980F993008F097C4F2E0EF16F1045E
+:1038500019F090E0869704C0F801828190E0C0974B
+:103860009093170180931601809132018823B1F063
+:10387000809117018F93809116018F9388E191E0D9
+:103880009F938F9387E99CE09F938F930E94F023EF
+:103890000F900F900F900F900F900F90809132012A
+:1038A00081116AC48091E703811166C484E99CE0B8
+:1038B00034C4803709F031C16330710508F417C48E
+:1038C000F80181818337C9F592818091320191336A
+:1038D000C1F491E090933701882341F081E89CE0A6
+:1038E0009F938F930E94F0230F900F90809132014D
+:1038F000811123C08091E70381111FC08EE79CE0F6
+:1039000016C010923701882341F08AE69CE09F930D
+:103910008F930E94F0230F900F90809132018111BC
+:103920000CC08091E703811108C087E69CE09F935B
+:103930008F930E94F0230F900F90F80181818436BD
+:10394000C9F59281809132019133C1F491E0909355
+:103950003601882341F084E59CE09F938F930E9479
+:10396000F0230F900F9080913201811123C080913C
+:10397000E70381111FC081E59CE016C0109236015B
+:10398000882341F08DE39CE09F938F930E94F02366
+:103990000F900F908091320181110CC08091E7034C
+:1039A000811108C08AE39CE09F938F930E94F023CB
+:1039B0000F900F90F80181818037C9F59281809135
+:1039C00032019133C1F491E090933501882341F0A5
+:1039D00086E29CE09F938F930E94F0230F900F90BC
+:1039E00080913201811123C08091E70381111FC0B2
+:1039F00083E29CE016C010923501882341F08EE0EE
+:103A00009CE09F938F930E94F0230F900F908091E2
+:103A1000320181110CC08091E703811108C08BE055
+:103A20009CE09F938F930E94F0230F900F90F801DA
+:103A300081818D36C9F59281809132019133C1F433
+:103A400091E090933401882341F087EF9BE09F93AE
+:103A50008F930E94F0230F900F908091320181117B
+:103A600023C08091E70381111FC084EF9BE016C043
+:103A700010923401882341F08FED9BE09F938F9348
+:103A80000E94F0230F900F908091320181110CC0A1
+:103A90008091E703811108C08CED9BE09F938F9389
+:103AA0000E94F0230F900F90F8018181893609F070
+:103AB00063C39281809132019133C1F491E090937C
+:103AC0003301882341F088EC9BE09F938F930E9401
+:103AD000F0230F900F908091320181114DC380919E
+:103AE000E703811149C385EC9BE017C310923301B2
+:103AF000882341F080EB9BE09F938F930E94F023FB
+:103B00000F900F9080913201811136C38091E703AD
+:103B1000811132C38DEA9BE000C3863779F4F80146
+:103B20008181813331F481E08093320187E99BE028
+:103B3000F4C21092320180E89BE0EFC2863589F42E
+:103B4000F8018181813341F481E08093E703109291
+:103B500032018BE69BE0E1C21092E70385E59BE032
+:103B6000DCC28C3609F040C16330710508F4BFC275
+:103B7000F80181818C3609F05BC061507109828146
+:103B8000813649F56A30710508F4F6C288E033964B
+:103B9000A9E9B6E001900D928A95E1F78091320192
+:103BA000882371F089E996E09F938F938FE39BE0E0
+:103BB0009F938F930E94F0230F900F900F900F9080
+:103BC000809132018111D8C28091E7038111D4C262
+:103BD0008CE39BE0A2C28F3609F0CEC26B30710538
+:103BE00008F4CAC289E0F8013396A8EAB6E0019069
+:103BF0000D928A95E1F780913201882371F088EA6D
+:103C000096E09F938F9384E29BE09F938F930E9413
+:103C1000F0230F900F900F900F908091320181113F
+:103C2000ABC28091E7038111A7C281E29BE075C21C
+:103C3000803731F5F801828180538A3008F09CC2C8
+:103C40008093130190913201992379F0889FC001EC
+:103C500011249F938F938FE09BE09F938F930E94FB
+:103C6000F0230F900F900F900F90809132018111EF
+:103C700083C28091E70381117FC28CE09BE04DC23B
+:103C80008836C1F5F801828180538A3008F074C209
+:103C90008093120190913201992309F1A1E0B0E0E3
+:103CA00002C0AA0FBB1F8A95E2F728EE33E00E94FC
+:103CB000492128E431E040E050E00E9491215F93E7
+:103CC0004F933F932F938CEE9AE09F938F930E9494
+:103CD000F0230F900F900F900F900F900F90809106
+:103CE0003201811149C28091E703811145C289EEF9
+:103CF0009AE013C2873619F5F801828180538A3021
+:103D000008F03AC28093110190913201992361F039
+:103D10001F928F9387ED9AE09F938F930E94F023D9
+:103D20000F900F900F900F9080913201811124C25B
+:103D30008091E703811120C284ED9AE0EEC18436C0
+:103D4000D1F5F801828180538A3008F015C289309C
+:103D500009F488E0809310018091320181110CC038
+:103D60008091E703811108C081ED9AE09F938F93C2
+:103D70000E94F0230F900F9080913201882309F464
+:103D8000FBC180911001811108C088EB9AE09F93DC
+:103D90008F930E94F0230F900F9080911001882341
+:103DA00009F4EAC1FDE28F9FC00111249F938F9314
+:103DB0008EE99AE010C0833709F0B6C1F80182811C
+:103DC0008093140190913201992309F4D5C11F9277
+:103DD0008F938CE89AE09F938F930E94F0230F902B
+:103DE0000F900F900F90C8C18D3609F01BC1623043
+:103DF000710508F47CC1CB010197F80121812336BC
+:103E000009F061C0019709F4B7C1E0E5F6E0D80117
+:103E100012966250710980E090E08617970781F052
+:103E20008630910569F02D91222331F02A3021F05E
+:103E30002D3011F0208301C0108201963196EDCF14
+:103E40008630910531F0FC01E05BF94F108201965C
+:103E5000F7CF80913201882359F180E596E09F9356
+:103E60008F9380E39AE09F938F930E94F023809139
+:103E70000E0190910F010F900F900F900F908F3FB8
+:103E8000FFEF9F0769F09F938F938BE29AE09F93D8
+:103E90008F930E94F0230F900F900F900F9008C007
+:103EA00089E29AE09F938F930E94F0230F900F90E6
+:103EB00080913201811160C18091E70381115CC161
+:103EC00086E29AE02AC1233709F058C08130910573
+:103ED00009F452C1F801029721F0838190E086979E
+:103EE00003C0828190E0C09790930F0180930E01F0
+:103EF00080910E0190910F01409730F08FEF9FEF6E
+:103F000090930F0180930E0180913201882359F123
+:103F100080E596E09F938F938EE09AE09F938F9336
+:103F20000E94F02380910E0190910F010F900F904D
+:103F30000F900F908F3FFFEF9F0769F09F938F9334
+:103F400089E09AE09F938F930E94F0230F900F9047
+:103F50000F900F9008C087E09AE09F938F930E9484
+:103F6000F0230F900F9080913201811105C1809153
+:103F7000E703811101C184E09AE0CFC02237D1F478
+:103F8000CA010E94641780913201882341F08EEEAD
+:103F900099E09F938F930E94F0230F900F90809150
+:103FA00032018111E9C08091E7038111E5C08BEEF8
+:103FB00099E0B3C0213609F0DFC0F8019281809109
+:103FC00032019133C1F491E09093DE03882341F0F4
+:103FD00081ED99E09F938F930E94F0230F900F90B3
+:103FE000809132018111C8C08091E7038111C4C062
+:103FF0008EEC99E092C01092DE03882341F083EBAF
+:1040000099E09F938F930E94F0230F900F908091DF
+:1040100032018111B1C08091E7038111ADC080EB05
+:1040200099E07BC0873761F56230710508F45FC0A5
+:10403000AB0141505109B8016F5F7F4FCE0101962E
+:104040000E946F23CE0101960E9449238031F7E23E
+:104050009F0798F4AA2797FDA095BA2F809309018E
+:1040600090930A01A0930B01B0930C01BF93AF93FF
+:104070009F938F9389E999E02CC086E799E04DC022
+:104080008735A9F56230710590F1AB0141505109B6
+:10409000B8016F5F7F4FCE0101960E946F23CE0162
+:1040A00001960E944923803127E29207E8F4AA276B
+:1040B00097FDA095BA2F8093050190930601A093D8
+:1040C0000701B0930801BF93AF939F938F9380E64E
+:1040D00099E09F938F930E94F0230F900F900F9081
+:1040E0000F900F900F9048C08EE399E016C080911A
+:1040F0003201882341F086E299E09F938F930E94DA
+:10410000F0230F900F9080913201811135C0809182
+:10411000E703811131C083E299E09F938F930E945E
+:10412000F0230F900F9028C0843731F5F801928169
+:1041300080913201913641F49CE5909315018823DA
+:1041400081F08BE69AE007C09FE2909315018823E7
+:1041500041F08BE49AE09F938F930E94F0230F909D
+:104160000F9080913201811107C08091E703811186
+:1041700003C088E49AE0D1CF0F900F900F900F907A
+:10418000DF91CF911F910F91FF90EF9008950E94C2
+:104190007F078FB7F894C090B204D090B304E0903A
+:1041A000B404F090B5048FBFC1E084EC94E00E94A9
+:1041B0006A0D8091420181112CC00E94ED07882375
+:1041C00041F10E94F707282F30E0309346012093F9
+:1041D00045012091430130914401F901E95BFE4F13
+:1041E000A9014F5F5F4F8083509344014093430187
+:1041F0002934314010F0C09342018FB7F894C09039
+:10420000B204D090B304E090B404F090B5048FBF32
+:104210001BC08091430190914401892BA9F02FB7D5
+:10422000F8948091B2049091B304A091B404B09139
+:10423000B5042FBF8C199D09AE09BF094597A1058B
+:10424000B10514F0C093420180914201882309F422
+:10425000ACCF609143017091440144EC54E087E499
+:1042600091E00E946619109242011092440110924E
+:1042700043019BCFA29FB001B39FC001A39F700DCC
+:10428000811D1124911DB29F700D811D1124911D5E
+:1042900008950E943A21B7FF0895821B930B089559
+:1042A0000E943A21A59F900DB49F900DA49F800D70
+:1042B000911D1124089597FB072E16F4009407D042
+:1042C00077FD09D00E94B02107FC05D03EF49095FF
+:1042D00081959F4F0895709561957F4F0895A1E254
+:1042E0001A2EAA1BBB1BFD010DC0AA1FBB1FEE1F70
+:1042F000FF1FA217B307E407F50720F0A21BB30BBB
+:10430000E40BF50B661F771F881F991F1A9469F736
+:1043100060957095809590959B01AC01BD01CF0192
+:104320000895052E97FB1EF400940E94A82157FDC6
+:1043300007D00E946F2107FC03D04EF40C94A821F3
+:1043400050954095309521953F4F4F4F5F4F0895C1
+:1043500090958095709561957F4F8F4F9F4F0895F1
+:10436000AA1BBB1B51E107C0AA1FBB1FA617B7079B
+:1043700010F0A61BB70B881F991F5A95A9F78095B7
+:104380009095BC01CD010895CF93DF9382309105C4
+:1043900010F482E090E0E091BA06F091BB0620E0D4
+:1043A00030E0A0E0B0E0309739F14081518148170A
+:1043B0005907B8F04817590771F482819381109713
+:1043C00029F013969C938E9312972CC09093BB0662
+:1043D0008093BA0627C02115310531F042175307E3
+:1043E00018F0A901DB0101C0EF019A01BD01DF0155
+:1043F0000280F381E02DD7CF21153105F9F0281B7C
+:10440000390B2430310580F48A819B816115710557
+:1044100021F0FB019383828304C09093BB068093B9
+:10442000BA06FE01329644C0FE01E20FF31F8193EB
+:10443000919322503109398328833AC02091B806DC
+:104440003091B906232B41F420913A0130913B0180
+:104450003093B9062093B806209138013091390184
+:104460002115310541F42DB73EB740913C015091E3
+:104470003D01241B350BE091B806F091B906E21717
+:10448000F307A0F42E1B3F0B2817390778F0AC0177
+:104490004E5F5F4F2417350748F04E0F5F1F509354
+:1044A000B9064093B8068193919302C0E0E0F0E032
+:1044B000CF01DF91CF910895CF93DF93009709F457
+:1044C00087C0FC01329713821282C091BA06D09144
+:1044D000BB06209781F420813181280F391F8091FC
+:1044E000B8069091B9068217930779F5F093B9064B
+:1044F000E093B8066DC0DE0120E030E0AE17BF07E4
+:1045000050F412964D915C9113979D014115510500
+:1045100009F1DA01F3CFB383A28340815181840F83
+:10452000951F8A179B0771F48D919C911197840FA9
+:10453000951F02969183808312968D919C9113977B
+:10454000938382832115310529F4F093BB06E09310
+:10455000BA063EC0D9011396FC93EE9312974D9183
+:104560005D91A40FB51FEA17FB0779F48081918153
+:10457000840F951F0296D90111969C938E93828188
+:10458000938113969C938E931297E0E0F0E08A81DA
+:104590009B81009719F0FE01EC01F9CFCE01029644
+:1045A00028813981820F931F2091B8063091B90676
+:1045B0002817390769F4309729F41092BB06109236
+:1045C000BA0602C013821282D093B906C093B8060D
+:1045D000DF91CF9108958F929F92AF92BF92CF9229
+:1045E000DF92EF92FF92CF93DF93EC0168817981A4
+:1045F0008A819B81611571058105910521F464E231
+:1046000079ED8BE597E02DE133EF41E050E00E943A
+:10461000912149015A019B01AC01A7EAB1E40E9432
+:1046200050216B017C01ACEEB4EFA50194010E9416
+:10463000A126C60ED71EE81EF91EF7FE06C081E0B1
+:10464000C81AD108E10880E8F80AC882D982EA824B
+:10465000FB82C6019F77DF91CF91FF90EF90DF90B3
+:10466000CF90BF90AF909F908F9008950E94EB22C3
+:1046700008958EE391E00E94EB220895A0E0B0E05F
+:1046800080933E0190933F01A0934001B09341017C
+:104690000895FC0188279927E89421912032E9F3B5
+:1046A000293010F02E30C8F32B3241F02D3239F47E
+:1046B000689404C00E947823820F911D2191205399
+:1046C0002A30C0F31EF4909581959F4F0895911163
+:1046D000089581568A5108F4805285580895FB0147
+:1046E000DC0102C001900D9241505040D8F708956E
+:1046F0007AE0979F902D879F802D910D112408952A
+:10470000CF93DF93EC012B8120FF33C026FF0AC03B
+:104710002F7B2B838E819F8101969F838E838A813D
+:1047200090E029C022FF0FC0E881F981808199279C
+:1047300087FD9095009719F420622B831AC031965B
+:10474000F983E8830EC0EA85FB85099597FF09C0C8
+:104750002B81019611F480E101C080E2822B8B83D2
+:1047600008C02E813F812F5F3F4F3F832E839927C3
+:1047700002C08FEF9FEFDF91CF9108950F931F93AA
+:10478000CF93DF93182F092FEB018B8181FD03C09D
+:104790008FEF9FEF20C082FF10C04E815F812C8180
+:1047A0003D81421753077CF4E881F9819F012F5F17
+:1047B0003F4F39832883108306C0E885F985812F10
+:1047C0000995892B29F72E813F812F5F3F4F3F832A
+:1047D0002E83812F902FDF91CF911F910F910895FC
+:1047E000A0E0B0E0E6EFF3E20C94B426FE013796C9
+:1047F000619171910EEB16E0D8018D919C91DC01D5
+:1048000013962C911397286013962C93AF010E9456
+:104810001224D801ED91FC912381277F2383E4E0CA
+:104820000C94D026ACE0B0E0E8E1F4E20C94A626CB
+:104830007C016B018A01FC0117821682838181FF52
+:10484000BDC1CE0101964C01F7019381F60193FDA4
+:10485000859193FF81916F01882309F4ABC1853263
+:1048600039F493FD859193FF81916F01853229F48D
+:10487000B70190E00E94BE23E7CF512C312C20E0FD
+:104880002032A0F48B3269F030F4803259F0833258
+:1048900069F420612CC08D3239F0803339F4216005
+:1048A00026C02260246023C0286021C027FD27C0C5
+:1048B00030ED380F3A3078F426FF06C0FAE05F9EFC
+:1048C000300D1124532E13C08AE0389E300D112470
+:1048D000332E20620CC08E3221F426FD6BC1206481
+:1048E00006C08C3611F4206802C0883641F4F60107
+:1048F00093FD859193FF81916F018111C1CF982F15
+:104900009F7D9554933028F40C5F1F4FFFE3F9838C
+:104910000DC0833631F0833771F0833509F05BC009
+:1049200022C0F801808189830E5F1F4F4424439485
+:10493000512C540115C03801F2E06F0E711CF801C2
+:10494000A080B18026FF03C0652D70E002C06FEF2C
+:104950007FEFC5012C870E9435262C0183012C8511
+:104960002F77222E17C03801F2E06F0E711CF8016C
+:10497000A080B18026FF03C0652D70E002C06FEFFC
+:104980007FEFC5012C870E942A262C012C852068E8
+:10499000222E830123FC1BC0832D90E0481659066C
+:1049A000B0F4B70180E290E00E94BE233A94F4CFC5
+:1049B000F50127FC859127FE81915F01B70190E009
+:1049C0000E94BE2331103A94F1E04F1A510841146D
+:1049D000510471F7E5C0843611F0893639F5F801D4
+:1049E00027FF07C060817181828193810C5F1F4F17
+:1049F00008C060817181882777FD8095982F0E5FB0
+:104A00001F4F2F76B22E97FF09C090958095709515
+:104A100061957F4F8F4F9F4F2068B22E2AE030E084
+:104A2000A4010E944026A82EA81844C0853729F466
+:104A30002F7EB22E2AE030E025C0F22FF97FBF2E64
+:104A40008F36C1F018F4883579F0B4C0803719F08A
+:104A5000883721F0AFC02F2F2061B22EB4FE0DC0D9
+:104A60008B2D8460B82E09C024FF0AC09F2F96604A
+:104A7000B92E06C028E030E005C020E130E002C0D9
+:104A800020E132E0F801B7FE07C0608171818281C8
+:104A900093810C5F1F4F06C06081718180E090E0C0
+:104AA0000E5F1F4FA4010E944026A82EA818FB2DC0
+:104AB000FF77BF2EB6FE0BC02B2D2E7FA51450F412
+:104AC000B4FE0AC0B2FC08C02B2D2E7E05C07A2C85
+:104AD0002B2D03C07A2C01C0752C24FF0DC0FE01C4
+:104AE000EA0DF11D8081803311F4297E09C022FF77
+:104AF00006C07394739404C0822F867809F073946F
+:104B000023FD13C020FF06C05A2C731418F4530C55
+:104B10005718732C731468F4B70180E290E02C8767
+:104B20000E94BE2373942C85F5CF731410F43718AC
+:104B300001C0312C24FF12C0B70180E390E02C8724
+:104B40000E94BE232C8522FF17C021FF03C088E5E9
+:104B500090E002C088E790E0B7010CC0822F867811
+:104B600059F021FD02C080E201C08BE227FD8DE2F9
+:104B7000B70190E00E94BE23A51438F4B70180E38A
+:104B800090E00E94BE235A94F7CFAA94F401EA0D54
+:104B9000F11D8081B70190E00E94BE23A110F5CFE6
+:104BA000332009F451CEB70180E290E00E94BE2389
+:104BB0003A94F6CFF7018681978102C08FEF9FEF7D
+:104BC0002C96E2E10C94C226DC01CB01FC01F999A0
+:104BD000FECF06C0F2BDE1BDF89A319600B40D9249
+:104BE00041505040B8F70895F999FECF92BD81BD6C
+:104BF000F89A992780B50895A8E1B0E042E050E026
+:104C00000C94E625DC01A40FB51F4150504048F03C
+:104C1000CB01840F951F2E910E94132641505040C6
+:104C2000D0F70895262FF999FECF92BD81BDF89A4D
+:104C3000019700B4021639F01FBA20BD0FB6F894E0
+:104C4000FA9AF99A0FBE08950196272F0E9413260B
+:104C50000C941226FC010590615070400110D8F7A9
+:104C6000809590958E0F9F1F0895FC0161507040B4
+:104C700001900110D8F7809590958E0F9F1F089591
+:104C8000FA01AA27283051F1203181F1E8946F937D
+:104C90006E7F6E5F7F4F8F4F9F4FAF4FB1E03ED023
+:104CA000B4E03CD0670F781F891F9A1FA11D680FC1
+:104CB000791F8A1F911DA11D6A0F711D811D911DF4
+:104CC000A11D20D009F468943F912AE0269F112469
+:104CD0003019305D3193DEF6CF010895462F4770CD
+:104CE000405D4193B3E00FD0C9F7F6CF462F4F7028
+:104CF000405D4A3318F0495D31FD4052419302D086
+:104D0000A9F7EACFB4E0A69597958795779567952B
+:104D1000BA95C9F700976105710508959B01AC012B
+:104D20000A2E06945795479537952795BA95C9F752
+:104D3000620F731F841F951FA01D0895B7FF0C9469
+:104D400050210E945021821B930B08952F923F9275
+:104D50004F925F926F927F928F929F92AF92BF928B
+:104D6000CF92DF92EF92FF920F931F93CF93DF9337
+:104D7000CDB7DEB7CA1BDB0B0FB6F894DEBF0FBE94
+:104D8000CDBF09942A88398848885F846E847D84E1
+:104D90008C849B84AA84B984C884DF80EE80FD80E3
+:104DA0000C811B81AA81B981CE0FD11D0FB6F89459
+:0E4DB000DEBF0FBECDBFED010895F894FFCF1A
+:104DBE003FC80000003200000096000000FEFFFF1A
+:104DCE000A0A0A0A6E2F02005749444532000100B2
+:104DDE0057494445310041505A4D444D4E4F434181
+:104DEE004C4C0101010101010000C206200001002E
+:024DFE000000B3
+:00000001FF
diff --git a/protocol/AX25.c b/protocol/AX25.c
new file mode 100644
index 0000000..d488ea6
--- /dev/null
+++ b/protocol/AX25.c
@@ -0,0 +1,163 @@
+// Based on work by Francesco Sacchi
+
+#include
+#include
+#include "AX25.h"
+#include "protocol/HDLC.h"
+#include "util/CRC-CCIT.h"
+#include "../hardware/AFSK.h"
+
+#define countof(a) sizeof(a)/sizeof(a[0])
+#define MIN(a,b) ({ typeof(a) _a = (a); typeof(b) _b = (b); ((typeof(_a))((_a < _b) ? _a : _b)); })
+#define DECODE_CALL(buf, addr) for (unsigned i = 0; i < sizeof((addr)); i++) { char c = (*(buf)++ >> 1); (addr)[i] = (c == ' ') ? '\x0' : c; }
+#define AX25_SET_REPEATED(msg, idx, val) do { if (val) { (msg)->rpt_flags |= _BV(idx); } else { (msg)->rpt_flags &= ~_BV(idx) ; } } while(0)
+
+void ax25_init(AX25Ctx *ctx, FILE *channel, ax25_callback_t hook) {
+ memset(ctx, 0, sizeof(*ctx));
+ ctx->ch = channel;
+ ctx->hook = hook;
+ ctx->crc_in = ctx->crc_out = CRC_CCIT_INIT_VAL;
+}
+
+static void ax25_decode(AX25Ctx *ctx) {
+ #if SERIAL_PROTOCOL == PROTOCOL_KISS
+ if (ctx->hook) ctx->hook(ctx);
+ #endif
+
+ #if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
+ AX25Msg msg;
+ uint8_t *buf = ctx->buf;
+
+ DECODE_CALL(buf, msg.dst.call);
+ msg.dst.ssid = (*buf++ >> 1) & 0x0F;
+
+ DECODE_CALL(buf, msg.src.call);
+ msg.src.ssid = (*buf >> 1) & 0x0F;
+
+ for (msg.rpt_count = 0; !(*buf++ & 0x01) && (msg.rpt_count < countof(msg.rpt_list)); msg.rpt_count++) {
+ DECODE_CALL(buf, msg.rpt_list[msg.rpt_count].call);
+ msg.rpt_list[msg.rpt_count].ssid = (*buf >> 1) & 0x0F;
+ AX25_SET_REPEATED(&msg, msg.rpt_count, (*buf & 0x80));
+ }
+
+ msg.ctrl = *buf++;
+ if (msg.ctrl != AX25_CTRL_UI) { return; }
+
+ msg.pid = *buf++;
+ if (msg.pid != AX25_PID_NOLAYER3) { return; }
+
+ msg.len = ctx->frame_len - 2 - (buf - ctx->buf);
+ msg.info = buf;
+
+ if (ctx->hook) ctx->hook(&msg);
+
+ #endif
+}
+
+void ax25_poll(AX25Ctx *ctx) {
+ int c;
+
+ while ((c = fgetc(ctx->ch)) != EOF) {
+ if (!ctx->escape && c == HDLC_FLAG) {
+ if (ctx->frame_len >= AX25_MIN_FRAME_LEN) {
+ if (ctx->crc_in == AX25_CRC_CORRECT) {
+ #if OPEN_SQUELCH == true
+ LED_RX_ON();
+ #endif
+ ax25_decode(ctx);
+ }
+ }
+ ctx->sync = true;
+ ctx->crc_in = CRC_CCIT_INIT_VAL;
+ ctx->frame_len = 0;
+ continue;
+ }
+
+ if (!ctx->escape && c == HDLC_RESET) {
+ ctx->sync = false;
+ continue;
+ }
+
+ if (!ctx->escape && c == AX25_ESC) {
+ ctx->escape = true;
+ continue;
+ }
+
+ if (ctx->sync) {
+ if (ctx->frame_len < AX25_MAX_FRAME_LEN) {
+ ctx->buf[ctx->frame_len++] = c;
+ ctx->crc_in = update_crc_ccit(c, ctx->crc_in);
+ } else {
+ ctx->sync = false;
+ }
+ }
+ ctx->escape = false;
+ }
+}
+
+static void ax25_putchar(AX25Ctx *ctx, uint8_t c)
+{
+ if (c == HDLC_FLAG || c == HDLC_RESET || c == AX25_ESC) fputc(AX25_ESC, ctx->ch);
+ ctx->crc_out = update_crc_ccit(c, ctx->crc_out);
+ fputc(c, ctx->ch);
+}
+
+void ax25_sendRaw(AX25Ctx *ctx, void *_buf, size_t len) {
+ ctx->crc_out = CRC_CCIT_INIT_VAL;
+ fputc(HDLC_FLAG, ctx->ch);
+ const uint8_t *buf = (const uint8_t *)_buf;
+ while (len--) ax25_putchar(ctx, *buf++);
+
+ uint8_t crcl = (ctx->crc_out & 0xff) ^ 0xff;
+ uint8_t crch = (ctx->crc_out >> 8) ^ 0xff;
+ ax25_putchar(ctx, crcl);
+ ax25_putchar(ctx, crch);
+
+ fputc(HDLC_FLAG, ctx->ch);
+}
+
+#if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
+ static void ax25_sendCall(AX25Ctx *ctx, const AX25Call *addr, bool last){
+ unsigned len = MIN(sizeof(addr->call), strlen(addr->call));
+
+ for (unsigned i = 0; i < len; i++) {
+ uint8_t c = addr->call[i];
+ c = toupper(c);
+ ax25_putchar(ctx, c << 1);
+ }
+
+ if (len < sizeof(addr->call)) {
+ for (unsigned i = 0; i < sizeof(addr->call) - len; i++) {
+ ax25_putchar(ctx, ' ' << 1);
+ }
+ }
+
+ uint8_t ssid = 0x60 | (addr->ssid << 1) | (last ? 0x01 : 0);
+ ax25_putchar(ctx, ssid);
+ }
+
+ void ax25_sendVia(AX25Ctx *ctx, const AX25Call *path, size_t path_len, const void *_buf, size_t len) {
+ const uint8_t *buf = (const uint8_t *)_buf;
+
+ ctx->crc_out = CRC_CCIT_INIT_VAL;
+ fputc(HDLC_FLAG, ctx->ch);
+
+ for (size_t i = 0; i < path_len; i++) {
+ ax25_sendCall(ctx, &path[i], (i == path_len - 1));
+ }
+
+ ax25_putchar(ctx, AX25_CTRL_UI);
+ ax25_putchar(ctx, AX25_PID_NOLAYER3);
+
+ while (len--) {
+ ax25_putchar(ctx, *buf++);
+ }
+
+ uint8_t crcl = (ctx->crc_out & 0xff) ^ 0xff;
+ uint8_t crch = (ctx->crc_out >> 8) ^ 0xff;
+ ax25_putchar(ctx, crcl);
+ ax25_putchar(ctx, crch);
+
+ fputc(HDLC_FLAG, ctx->ch);
+ }
+#endif
\ No newline at end of file
diff --git a/protocol/AX25.h b/protocol/AX25.h
new file mode 100644
index 0000000..0314bdb
--- /dev/null
+++ b/protocol/AX25.h
@@ -0,0 +1,73 @@
+#ifndef PROTOCOL_AX25_H
+#define PROTOCOL_AX25_H
+
+#include
+#include
+#include "device.h"
+
+#define AX25_MIN_FRAME_LEN 18
+#ifndef CUSTOM_FRAME_SIZE
+ #define AX25_MAX_FRAME_LEN 620
+#else
+ #define AX25_MAX_FRAME_LEN CUSTOM_FRAME_SIZE
+#endif
+
+#define AX25_CRC_CORRECT 0xF0B8
+
+#define AX25_CTRL_UI 0x03
+#define AX25_PID_NOLAYER3 0xF0
+
+struct AX25Ctx; // Forward declarations
+struct AX25Msg;
+
+#if SERIAL_PROTOCOL == PROTOCOL_KISS
+ typedef void (*ax25_callback_t)(struct AX25Ctx *ctx);
+#endif
+
+#if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
+ typedef void (*ax25_callback_t)(struct AX25Msg *msg);
+#endif
+
+typedef struct AX25Ctx {
+ uint8_t buf[AX25_MAX_FRAME_LEN];
+ FILE *ch;
+ size_t frame_len;
+ uint16_t crc_in;
+ uint16_t crc_out;
+ ax25_callback_t hook;
+ bool sync;
+ bool escape;
+} AX25Ctx;
+
+#if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
+ #define AX25_CALL(str, id) {.call = (str), .ssid = (id) }
+ #define AX25_MAX_RPT 8
+ #define AX25_REPEATED(msg, n) ((msg)->rpt_flags & BV(n))
+
+ typedef struct AX25Call {
+ char call[6];
+ uint8_t ssid;
+ } AX25Call;
+
+ typedef struct AX25Msg {
+ AX25Call src;
+ AX25Call dst;
+ AX25Call rpt_list[AX25_MAX_RPT];
+ uint8_t rpt_count;
+ uint8_t rpt_flags;
+ uint16_t ctrl;
+ uint8_t pid;
+ const uint8_t *info;
+ size_t len;
+ } AX25Msg;
+
+ void ax25_sendVia(AX25Ctx *ctx, const AX25Call *path, size_t path_len, const void *_buf, size_t len);
+ #define ax25_send(ctx, dst, src, buf, len) ax25_sendVia(ctx, ({static AX25Call __path[]={dst, src}; __path;}), 2, buf, len)
+
+#endif
+
+void ax25_poll(AX25Ctx *ctx);
+void ax25_sendRaw(AX25Ctx *ctx, void *_buf, size_t len);
+void ax25_init(AX25Ctx *ctx, FILE *channel, ax25_callback_t hook);
+
+#endif
\ No newline at end of file
diff --git a/protocol/HDLC.h b/protocol/HDLC.h
new file mode 100644
index 0000000..3ee0808
--- /dev/null
+++ b/protocol/HDLC.h
@@ -0,0 +1,8 @@
+#ifndef PROTOCOL_HDLC_H
+#define PROTOCOL_HDLC_H
+
+#define HDLC_FLAG 0x7E
+#define HDLC_RESET 0x7F
+#define AX25_ESC 0x1B
+
+#endif
\ No newline at end of file
diff --git a/protocol/KISS.c b/protocol/KISS.c
new file mode 100644
index 0000000..8ea100d
--- /dev/null
+++ b/protocol/KISS.c
@@ -0,0 +1,120 @@
+#include
+#include
+
+#include "device.h"
+#include "KISS.h"
+
+static uint8_t serialBuffer[AX25_MAX_FRAME_LEN]; // Buffer for holding incoming serial data
+AX25Ctx *ax25ctx;
+Afsk *channel;
+Serial *serial;
+size_t frame_len;
+bool IN_FRAME;
+bool ESCAPE;
+
+uint8_t command = CMD_UNKNOWN;
+unsigned long custom_preamble = CONFIG_AFSK_PREAMBLE_LEN;
+unsigned long custom_tail = CONFIG_AFSK_TRAILER_LEN;
+
+unsigned long slotTime = 200;
+uint8_t p = 63;
+
+void kiss_init(AX25Ctx *ax25, Afsk *afsk, Serial *ser) {
+ ax25ctx = ax25;
+ serial = ser;
+ channel = afsk;
+}
+
+void kiss_messageCallback(AX25Ctx *ctx) {
+ fputc(FEND, &serial->uart0);
+ fputc(0x00, &serial->uart0);
+ for (unsigned i = 0; i < ctx->frame_len; i++) {
+ uint8_t b = ctx->buf[i];
+ if (b == FEND) {
+ fputc(FESC, &serial->uart0);
+ fputc(TFEND, &serial->uart0);
+ } else if (b == FESC) {
+ fputc(FESC, &serial->uart0);
+ fputc(TFESC, &serial->uart0);
+ } else {
+ fputc(b, &serial->uart0);
+ }
+ }
+ fputc(FEND, &serial->uart0);
+}
+
+void kiss_csma(AX25Ctx *ctx, uint8_t *buf, size_t len) {
+ bool sent = false;
+ while (!sent) {
+ //puts("Waiting in CSMA");
+ if(!channel->hdlc.receiving) {
+ uint8_t tp = rand() & 0xFF;
+ if (tp < p) {
+ ax25_sendRaw(ctx, buf, len);
+ sent = true;
+ } else {
+ ticks_t start = timer_clock();
+ long slot_ticks = ms_to_ticks(slotTime);
+ while (timer_clock() - start < slot_ticks) {
+ cpu_relax();
+ }
+ }
+ } else {
+ while (!sent && channel->hdlc.receiving) {
+ // Continously poll the modem for data
+ // while waiting, so we don't overrun
+ // receive buffers
+ ax25_poll(ax25ctx);
+
+ if (channel->status != 0) {
+ // If an overflow or other error
+ // occurs, we'll back off and drop
+ // this packet silently.
+ channel->status = 0;
+ sent = true;
+ }
+ }
+ }
+
+ }
+
+}
+
+void kiss_serialCallback(uint8_t sbyte) {
+ if (IN_FRAME && sbyte == FEND && command == CMD_DATA) {
+ IN_FRAME = false;
+ kiss_csma(ax25ctx, serialBuffer, frame_len);
+ } else if (sbyte == FEND) {
+ IN_FRAME = true;
+ command = CMD_UNKNOWN;
+ frame_len = 0;
+ } else if (IN_FRAME && frame_len < AX25_MAX_FRAME_LEN) {
+ // Have a look at the command byte first
+ if (frame_len == 0 && command == CMD_UNKNOWN) {
+ // MicroModem supports only one HDLC port, so we
+ // strip off the port nibble of the command byte
+ sbyte = sbyte & 0x0F;
+ command = sbyte;
+ } else if (command == CMD_DATA) {
+ if (sbyte == FESC) {
+ ESCAPE = true;
+ } else {
+ if (ESCAPE) {
+ if (sbyte == TFEND) sbyte = FEND;
+ if (sbyte == TFESC) sbyte = FESC;
+ ESCAPE = false;
+ }
+ serialBuffer[frame_len++] = sbyte;
+ }
+ } else if (command == CMD_TXDELAY) {
+ custom_preamble = sbyte * 10UL;
+ } else if (command == CMD_TXTAIL) {
+ custom_tail = sbyte * 10;
+ } else if (command == CMD_SLOTTIME) {
+ slotTime = sbyte * 10;
+ } else if (command == CMD_P) {
+ p = sbyte;
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/protocol/KISS.h b/protocol/KISS.h
new file mode 100644
index 0000000..f39a11b
--- /dev/null
+++ b/protocol/KISS.h
@@ -0,0 +1,29 @@
+#ifndef _PROTOCOL_KISS
+#define _PROTOCOL_KISS 0x02
+
+#include "../hardware/AFSK.h"
+#include "../hardware/Serial.h"
+#include "../util/time.h"
+#include "AX25.h"
+
+#define FEND 0xC0
+#define FESC 0xDB
+#define TFEND 0xDC
+#define TFESC 0xDD
+
+#define CMD_UNKNOWN 0xFE
+#define CMD_DATA 0x00
+#define CMD_TXDELAY 0x01
+#define CMD_P 0x02
+#define CMD_SLOTTIME 0x03
+#define CMD_TXTAIL 0x04
+#define CMD_FULLDUPLEX 0x05
+#define CMD_SETHARDWARE 0x06
+#define CMD_RETURN 0xFF
+
+void kiss_init(AX25Ctx *ax25, Afsk *afsk, Serial *ser);
+void kiss_csma(AX25Ctx *ctx, uint8_t *buf, size_t len);
+void kiss_messageCallback(AX25Ctx *ctx);
+void kiss_serialCallback(uint8_t sbyte);
+
+#endif
\ No newline at end of file
diff --git a/protocol/SimpleSerial.c b/protocol/SimpleSerial.c
new file mode 100644
index 0000000..24cce27
--- /dev/null
+++ b/protocol/SimpleSerial.c
@@ -0,0 +1,857 @@
+#include "device.h"
+
+#if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL
+
+#define ENABLE_HELP true
+
+#include
+#include
+#include
+#include
+#include "hardware/Serial.h"
+#include "SimpleSerial.h"
+#include "util/time.h"
+
+#define countof(a) sizeof(a)/sizeof(a[0])
+
+bool PRINT_SRC = true;
+bool PRINT_DST = true;
+bool PRINT_PATH = true;
+bool PRINT_DATA = true;
+bool PRINT_INFO = true;
+bool VERBOSE = true;
+bool SILENT = false;
+bool SS_INIT = false;
+bool SS_DEFAULT_CONF = false;
+
+AX25Call src;
+AX25Call dst;
+AX25Call path1;
+AX25Call path2;
+
+char CALL[6] = DEFAULT_CALLSIGN;
+int CALL_SSID = 0;
+char DST[6] = DEFAULT_DESTINATION_CALL;
+int DST_SSID = 0;
+char PATH1[6] = "WIDE1";
+int PATH1_SSID = 1;
+char PATH2[6] = "WIDE2";
+int PATH2_SSID = 2;
+
+AX25Call path[4];
+AX25Ctx *ax25ctx;
+
+#define NV_MAGIC_BYTE 0x69
+uint8_t EEMEM nvMagicByte;
+uint8_t EEMEM nvCALL[6];
+uint8_t EEMEM nvDST[6];
+uint8_t EEMEM nvPATH1[6];
+uint8_t EEMEM nvPATH2[6];
+uint8_t EEMEM nvCALL_SSID;
+uint8_t EEMEM nvDST_SSID;
+uint8_t EEMEM nvPATH1_SSID;
+uint8_t EEMEM nvPATH2_SSID;
+bool EEMEM nvPRINT_SRC;
+bool EEMEM nvPRINT_DST;
+bool EEMEM nvPRINT_PATH;
+bool EEMEM nvPRINT_DATA;
+bool EEMEM nvPRINT_INFO;
+bool EEMEM nvVERBOSE;
+bool EEMEM nvSILENT;
+uint8_t EEMEM nvPOWER;
+uint8_t EEMEM nvHEIGHT;
+uint8_t EEMEM nvGAIN;
+uint8_t EEMEM nvDIRECTIVITY;
+uint8_t EEMEM nvSYMBOL_TABLE;
+uint8_t EEMEM nvSYMBOL;
+uint8_t EEMEM nvAUTOACK;
+int EEMEM nvPREAMBLE;
+int EEMEM nvTAIL;
+
+// Location packet assembly fields
+char latitude[8];
+char longtitude[9];
+char symbolTable = '/';
+char symbol = 'n';
+
+uint8_t power = 10;
+uint8_t height = 10;
+uint8_t gain = 10;
+uint8_t directivity = 10;
+/////////////////////////
+
+// Message packet assembly fields
+char message_recip[6];
+int message_recip_ssid = -1;
+
+int message_seq = 0;
+char lastMessage[67];
+size_t lastMessageLen;
+bool message_autoAck = false;
+/////////////////////////
+
+extern unsigned long custom_preamble;
+extern unsigned long custom_tail;
+
+void ss_init(AX25Ctx *ax25) {
+ ax25ctx = ax25;
+ ss_loadSettings();
+ SS_INIT = true;
+ if (VERBOSE) {
+ printf_P(PSTR("---------------\n"));
+ printf_P(PSTR("MicroAPRS v1.0b\n"));
+ printf_P(PSTR("unsigned.io/microaprs\n"));
+ if (SS_DEFAULT_CONF) printf_P(PSTR("Default configuration loaded!\n"));
+ printf_P(PSTR("Modem ready\n"));
+ printf_P(PSTR("---------------\n"));
+ }
+}
+
+void ss_clearSettings(void) {
+ eeprom_update_byte((void*)&nvMagicByte, 0xFF);
+ if (VERBOSE) printf_P(PSTR("Configuration cleared. Restart to load defaults.\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+}
+
+void ss_loadSettings(void) {
+ uint8_t verification = eeprom_read_byte((void*)&nvMagicByte);
+ if (verification == NV_MAGIC_BYTE) {
+ eeprom_read_block((void*)CALL, (void*)nvCALL, 6);
+ eeprom_read_block((void*)DST, (void*)nvDST, 6);
+ eeprom_read_block((void*)PATH1, (void*)nvPATH1, 6);
+ eeprom_read_block((void*)PATH2, (void*)nvPATH2, 6);
+
+ CALL_SSID = eeprom_read_byte((void*)&nvCALL_SSID);
+ DST_SSID = eeprom_read_byte((void*)&nvDST_SSID);
+ PATH1_SSID = eeprom_read_byte((void*)&nvPATH1_SSID);
+ PATH2_SSID = eeprom_read_byte((void*)&nvPATH2_SSID);
+
+ PRINT_SRC = eeprom_read_byte((void*)&nvPRINT_SRC);
+ PRINT_DST = eeprom_read_byte((void*)&nvPRINT_DST);
+ PRINT_PATH = eeprom_read_byte((void*)&nvPRINT_PATH);
+ PRINT_DATA = eeprom_read_byte((void*)&nvPRINT_DATA);
+ PRINT_INFO = eeprom_read_byte((void*)&nvPRINT_INFO);
+ VERBOSE = eeprom_read_byte((void*)&nvVERBOSE);
+ SILENT = eeprom_read_byte((void*)&nvSILENT);
+
+ power = eeprom_read_byte((void*)&nvPOWER);
+ height = eeprom_read_byte((void*)&nvHEIGHT);
+ gain = eeprom_read_byte((void*)&nvGAIN);
+ directivity = eeprom_read_byte((void*)&nvDIRECTIVITY);
+ symbolTable = eeprom_read_byte((void*)&nvSYMBOL_TABLE);
+ symbol = eeprom_read_byte((void*)&nvSYMBOL);
+ message_autoAck = eeprom_read_byte((void*)&nvAUTOACK);
+
+ custom_preamble = eeprom_read_word((void*)&nvPREAMBLE);
+ custom_tail = eeprom_read_word((void*)&nvTAIL);
+
+ if (VERBOSE && SS_INIT) printf_P(PSTR("Configuration loaded\n"));
+ } else {
+ if (SS_INIT && !SILENT && VERBOSE) printf_P(PSTR("Error: No stored configuration to load!\n"));
+ if (SS_INIT && !SILENT && !VERBOSE) printf_P(PSTR("0\n"));
+ SS_DEFAULT_CONF = true;
+ }
+}
+
+void ss_saveSettings(void) {
+ eeprom_update_block((void*)CALL, (void*)nvCALL, 6);
+ eeprom_update_block((void*)DST, (void*)nvDST, 6);
+ eeprom_update_block((void*)PATH1, (void*)nvPATH1, 6);
+ eeprom_update_block((void*)PATH2, (void*)nvPATH2, 6);
+
+ eeprom_update_byte((void*)&nvCALL_SSID, CALL_SSID);
+ eeprom_update_byte((void*)&nvDST_SSID, DST_SSID);
+ eeprom_update_byte((void*)&nvPATH1_SSID, PATH1_SSID);
+ eeprom_update_byte((void*)&nvPATH2_SSID, PATH2_SSID);
+
+ eeprom_update_byte((void*)&nvPRINT_SRC, PRINT_SRC);
+ eeprom_update_byte((void*)&nvPRINT_DST, PRINT_DST);
+ eeprom_update_byte((void*)&nvPRINT_PATH, PRINT_PATH);
+ eeprom_update_byte((void*)&nvPRINT_DATA, PRINT_DATA);
+ eeprom_update_byte((void*)&nvPRINT_INFO, PRINT_INFO);
+ eeprom_update_byte((void*)&nvVERBOSE, VERBOSE);
+ eeprom_update_byte((void*)&nvSILENT, SILENT);
+
+ eeprom_update_byte((void*)&nvPOWER, power);
+ eeprom_update_byte((void*)&nvHEIGHT, height);
+ eeprom_update_byte((void*)&nvGAIN, gain);
+ eeprom_update_byte((void*)&nvDIRECTIVITY, directivity);
+ eeprom_update_byte((void*)&nvSYMBOL_TABLE, symbolTable);
+ eeprom_update_byte((void*)&nvSYMBOL, symbol);
+ eeprom_update_byte((void*)&nvAUTOACK, message_autoAck);
+
+ eeprom_update_word((void*)&nvPREAMBLE, custom_preamble);
+ eeprom_update_word((void*)&nvTAIL, custom_tail);
+
+ eeprom_update_byte((void*)&nvMagicByte, NV_MAGIC_BYTE);
+
+ if (VERBOSE) printf_P(PSTR("Configuration saved\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+}
+
+void ss_messageCallback(struct AX25Msg *msg) {
+ if (PRINT_SRC) {
+ if (PRINT_INFO) printf_P(PSTR("SRC: "));
+ printf_P(PSTR("[%.6s-%d] "), msg->src.call, msg->src.ssid);
+ }
+ if (PRINT_DST) {
+ if (PRINT_INFO) printf_P(PSTR("DST: "));
+ printf_P(PSTR("[%.6s-%d] "), msg->dst.call, msg->dst.ssid);
+ }
+
+ if (PRINT_PATH) {
+ if (PRINT_INFO) printf_P(PSTR("PATH: "));
+ for (int i = 0; i < msg->rpt_count; i++)
+ printf_P(PSTR("[%.6s-%d] "), msg->rpt_list[i].call, msg->rpt_list[i].ssid);
+ }
+
+ if (PRINT_DATA) {
+ if (PRINT_INFO) printf_P(PSTR("DATA: "), msg->len);
+ for (int i = 0; i < msg->len; i++) {
+ putchar(msg->info[i]);
+ }
+ }
+ printf_P(PSTR("\r\n"));
+
+ if (message_autoAck && msg->len > 11) {
+ char mseq[6];
+ bool shouldAck = true;
+ int msl = 0;
+ int loc = msg->len - 1;
+ size_t i = 0;
+
+ while (i<7 && i < msg->len) {
+ if (msg->info[loc-i] == '{') {
+ size_t p;
+ for (p = 0; p <= i; p++) {
+ mseq[p] = msg->info[loc-i+p];
+ msl = i;
+ }
+ }
+ i++;
+ }
+
+ if (msl != 0) {
+ int pos = 1;
+ int ssidPos = 0;
+ while (pos < 7) {
+ if (msg->info[pos] != CALL[pos-1]) {
+ shouldAck = false;
+ pos = 7;
+ }
+ pos++;
+ }
+ while (pos < 10) {
+ if (msg->info[pos] == '-') ssidPos = pos;
+ pos++;
+ }
+ if (ssidPos != 0) {
+ if (msg->info[ssidPos+2] == ' ') {
+ if (msg->info[ssidPos+1]-48 != CALL_SSID) {
+ shouldAck = false;
+ }
+ } else {
+ int assid = 10+(msg->info[ssidPos+2]-48);
+ if (assid != CALL_SSID) {
+ shouldAck = false;
+ }
+ }
+ }
+
+ if (msl != 0 && shouldAck) {
+ int ii = 0;
+ char *ack = malloc(14+msl);
+
+ for (ii = 0; ii < 9; ii++) {
+ ack[1+ii] = ' ';
+ }
+ int calllen = 0;
+ for (ii = 0; ii < 6; ii++) {
+ if (msg->src.call[ii] != 0) {
+ ack[1+ii] = msg->src.call[ii];
+ calllen++;
+ }
+ }
+
+ if (msg->src.ssid != 0) {
+ ack[1+calllen] = '-';
+ if (msg->src.ssid < 10) {
+ ack[2+calllen] = msg->src.ssid+48;
+ } else {
+ ack[2+calllen] = 49;
+ ack[3+calllen] = msg->src.ssid-10+48;
+ }
+ }
+
+ ack[0] = ':';
+ ack[10] = ':';
+ ack[11] = 'a';
+ ack[12] = 'c';
+ ack[13] = 'k';
+
+ for (ii = 0; ii < msl; ii++) {
+ ack[14+ii] = mseq[ii+1];
+ }
+
+ delay_ms(1750);
+ ss_sendPkt(ack, 14+msl, ax25ctx);
+
+ free(ack);
+ }
+ }
+ }
+}
+
+void ss_serialCallback(void *_buffer, size_t length, AX25Ctx *ctx) {
+ uint8_t *buffer = (uint8_t *)_buffer;
+ if (length > 0) {
+ // ! as first char to send packet
+ if (buffer[0] == '!' && length > 1) {
+ buffer++; length--;
+ ss_sendPkt(buffer, length, ctx);
+ if (VERBOSE) printf_P(PSTR("Packet sent\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else if (buffer[0] == '@') {
+ buffer++; length--;
+ ss_sendLoc(buffer, length, ctx);
+ if (VERBOSE) printf_P(PSTR("Location update sent\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else if (buffer[0] == '#') {
+ buffer++; length--;
+ ss_sendMsg(buffer, length, ctx);
+ if (VERBOSE) printf_P(PSTR("Message sent\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+ #if ENABLE_HELP
+ else if (buffer[0] == 'h') {
+ ss_printHelp();
+ }
+ #endif
+ else if (buffer[0] == 'H') {
+ ss_printSettings();
+ } else if (buffer[0] == 'S') {
+ ss_saveSettings();
+ } else if (buffer[0] == 'C') {
+ ss_clearSettings();
+ } else if (buffer[0] == 'L') {
+ ss_loadSettings();
+ } else if (buffer[0] == 'c' && length > 3) {
+ buffer++; length--;
+ int count = 0;
+ while (length-- && count < 6) {
+ char c = buffer[count];
+ if (c != 0 && c != 10 && c != 13) {
+ CALL[count] = c;
+ } else {
+ CALL[count] = 0x00;
+ }
+ count++;
+ }
+ while (count < 6) {
+ CALL[count] = 0x00;
+ count++;
+ }
+ if (VERBOSE) printf_P(PSTR("Callsign: %.6s-%d\n"), CALL, CALL_SSID);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+
+ } else if (buffer[0] == 'd' && length > 3) {
+ buffer++; length--;
+ int count = 0;
+ while (length-- && count < 6) {
+ char c = buffer[count];
+ if (c != 0 && c != 10 && c != 13) {
+ DST[count] = c;
+ } else {
+ DST[count] = 0;
+ }
+ count++;
+ }
+ while (count < 6) {
+ DST[count] = 0x00;
+ count++;
+ }
+ if (VERBOSE) printf_P(PSTR("Destination: %.6s-%d\n"), DST, DST_SSID);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+
+
+ } else if (buffer[0] == '1' && length > 1) {
+ buffer++; length--;
+ int count = 0;
+ while (length-- && count < 6) {
+ char c = buffer[count];
+ if (c != 0 && c != 10 && c != 13) {
+ PATH1[count] = c;
+ } else {
+ PATH1[count] = 0;
+ }
+ count++;
+ }
+ while (count < 6) {
+ PATH1[count] = 0x00;
+ count++;
+ }
+ if (VERBOSE) printf_P(PSTR("Path1: %.6s-%d\n"), PATH1, PATH1_SSID);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+
+
+ } else if (buffer[0] == '2' && length > 1) {
+ buffer++; length--;
+ int count = 0;
+ while (length-- && count < 6) {
+ char c = buffer[count];
+ if (c != 0 && c != 10 && c != 13) {
+ PATH2[count] = c;
+ } else {
+ PATH2[count] = 0;
+ }
+ count++;
+ }
+ while (count < 6) {
+ PATH2[count] = 0x00;
+ count++;
+ }
+ if (VERBOSE) printf_P(PSTR("Path2: %.6s-%d\n"), PATH2, PATH2_SSID);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+
+
+ } else if (buffer[0] == 's' && length > 2) {
+ buffer++; length--;
+ if (buffer[0] == 'c') {
+ if (length > 2 && buffer[2] > 48 && buffer[2] < 58) {
+ CALL_SSID = 10+buffer[2]-48;
+ } else {
+ CALL_SSID = buffer[1]-48;
+ }
+ if (VERBOSE) printf_P(PSTR("Callsign: %.6s-%d\n"), CALL, CALL_SSID);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+ if (buffer[0] == 'd') {
+ if (length > 2 && buffer[2] > 48 && buffer[2] < 58) {
+ DST_SSID = 10+buffer[2]-48;
+ } else {
+ DST_SSID = buffer[1]-48;
+ }
+ if (VERBOSE) printf_P(PSTR("Destination: %.6s-%d\n"), DST, DST_SSID);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+ if (buffer[0] == '1' && buffer[2] > 48 && buffer[2] < 58) {
+ if (length > 2) {
+ PATH1_SSID = 10+buffer[2]-48;
+ } else {
+ PATH1_SSID = buffer[1]-48;
+ }
+ if (VERBOSE) printf_P(PSTR("Path1: %.6s-%d\n"), PATH1, PATH1_SSID);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+ if (buffer[0] == '2' && buffer[2] > 48 && buffer[2] < 58) {
+ if (length > 2) {
+ PATH2_SSID = 10+buffer[2]-48;
+ } else {
+ PATH2_SSID = buffer[1]-48;
+ }
+ if (VERBOSE) printf_P(PSTR("Path2: %.6s-%d\n"), PATH2, PATH2_SSID);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+
+ } else if (buffer[0] == 'p' && length > 2) {
+ buffer++; length--;
+ if (buffer[0] == 's') {
+ if (buffer[1] == 49) {
+ PRINT_SRC = true;
+ if (VERBOSE) printf_P(PSTR("Print SRC enabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else {
+ PRINT_SRC = false;
+ if (VERBOSE) printf_P(PSTR("Print SRC disabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+ }
+ if (buffer[0] == 'd') {
+ if (buffer[1] == 49) {
+ PRINT_DST = true;
+ if (VERBOSE) printf_P(PSTR("Print DST enabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else {
+ PRINT_DST = false;
+ if (VERBOSE) printf_P(PSTR("Print DST disabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+ }
+ if (buffer[0] == 'p') {
+ if (buffer[1] == 49) {
+ PRINT_PATH = true;
+ if (VERBOSE) printf_P(PSTR("Print PATH enabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else {
+ PRINT_PATH = false;
+ if (VERBOSE) printf_P(PSTR("Print PATH disabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+ }
+ if (buffer[0] == 'm') {
+ if (buffer[1] == 49) {
+ PRINT_DATA = true;
+ if (VERBOSE) printf_P(PSTR("Print DATA enabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else {
+ PRINT_DATA = false;
+ if (VERBOSE) printf_P(PSTR("Print DATA disabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+ }
+ if (buffer[0] == 'i') {
+ if (buffer[1] == 49) {
+ PRINT_INFO = true;
+ if (VERBOSE) printf_P(PSTR("Print INFO enabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else {
+ PRINT_INFO = false;
+ if (VERBOSE) printf_P(PSTR("Print INFO disabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+ }
+ } else if (buffer[0] == 'v') {
+ if (buffer[1] == 49) {
+ VERBOSE = true;
+ printf_P(PSTR("Verbose mode enabled\n"));
+ } else {
+ VERBOSE = false;
+ printf_P(PSTR("Verbose mode disabled\n"));
+ }
+ } else if (buffer[0] == 'V') {
+ if (buffer[1] == 49) {
+ SILENT = true;
+ VERBOSE = false;
+ printf_P(PSTR("Silent mode enabled\n"));
+ } else {
+ SILENT = false;
+ printf_P(PSTR("Silent mode disabled\n"));
+ }
+ } else if (buffer[0] == 'l' && length > 2) {
+ buffer++; length--;
+ if (buffer[0] == 'l' && buffer[1] == 'a' && length >= 10) {
+ buffer += 2;
+ memcpy(latitude, (void *)buffer, 8);
+ if (VERBOSE) printf_P(PSTR("Latitude set to %.8s\n"), latitude);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else if (buffer[0] == 'l' && buffer[1] == 'o' && length >= 11) {
+ buffer += 2;
+ memcpy(longtitude, (void *)buffer, 9);
+ if (VERBOSE) printf_P(PSTR("Longtitude set to %.9s\n"), longtitude);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else if (buffer[0] == 'p' && length >= 2 && buffer[1] >= 48 && buffer[1] <= 57) {
+ power = buffer[1] - 48;
+ if (VERBOSE) printf_P(PSTR("Power set to %dw\n"), power*power);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else if (buffer[0] == 'h' && length >= 2 && buffer[1] >= 48 && buffer[1] <= 57) {
+ height = buffer[1] - 48;
+ if (VERBOSE) printf_P(PSTR("Antenna height set to %ldm AAT\n"), (long)(_BV(height)*1000L)/328L);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else if (buffer[0] == 'g' && length >= 2 && buffer[1] >= 48 && buffer[1] <= 57) {
+ gain = buffer[1] - 48;
+ if (VERBOSE) printf_P(PSTR("Gain set to %ddB\n"), gain);
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else if (buffer[0] == 'd' && length >= 2 && buffer[1] >= 48 && buffer[1] <= 57) {
+ directivity = buffer[1] - 48;
+ if (directivity == 9) directivity = 8;
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ if (VERBOSE) {
+ if (directivity == 0) printf_P(PSTR("Directivity set to omni\n"));
+ if (directivity != 0) printf_P(PSTR("Directivity set to %ddeg\n"), directivity*45);
+ }
+ } else if (buffer[0] == 's' && length >= 2) {
+ symbol = buffer[1];
+ if (VERBOSE) printf_P(PSTR("Symbol set to %c\n"), symbol);
+ } else if (buffer[0] == 't' && length >= 2) {
+ if (buffer[1] == 'a') {
+ symbolTable = '\\';
+ if (VERBOSE) printf_P(PSTR("Selected alternate symbol table\n"));
+ } else {
+ symbolTable = '/';
+ if (VERBOSE) printf_P(PSTR("Selected standard symbol table\n"));
+ }
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+
+ } else if (buffer[0] == 'm' && length > 1) {
+ buffer++; length--;
+ if (buffer[0] == 'c' && length > 1) {
+ buffer++; length--;
+ int count = 0;
+ while (length-- && count < 6) {
+ char c = buffer[count];
+ if (c != 0 && c != 10 && c != 13) {
+ message_recip[count] = c;
+ } else {
+ message_recip[count] = 0x00;
+ }
+ count++;
+ }
+ while (count < 6) {
+ message_recip[count] = 0x00;
+ count++;
+ }
+ if (VERBOSE) {
+ printf_P(PSTR("Message recipient: %.6s"), message_recip);
+ if (message_recip_ssid != -1) {
+ printf_P(PSTR("-%d\n"), message_recip_ssid);
+ } else {
+ printf_P(PSTR("\n"));
+ }
+ }
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else if (buffer[0] == 's' && length > 1) {
+ if (length > 2) {
+ message_recip_ssid = 10+buffer[2]-48;
+ } else {
+ message_recip_ssid = buffer[1]-48;
+ }
+ if (message_recip_ssid < 0 || message_recip_ssid > 15) message_recip_ssid = -1;
+ if (VERBOSE) {
+ printf_P(PSTR("Message recipient: %.6s"), message_recip);
+ if (message_recip_ssid != -1) {
+ printf_P(PSTR("-%d\n"), message_recip_ssid);
+ } else {
+ printf_P(PSTR("\n"));
+ }
+ }
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else if (buffer[0] == 'r') {
+ ss_msgRetry(ctx);
+ if (VERBOSE) printf_P(PSTR("Retried last message\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else if (buffer[0] == 'a') {
+ if (buffer[1] == 49) {
+ message_autoAck = true;
+ if (VERBOSE) printf_P(PSTR("Message auto-ack enabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ } else {
+ message_autoAck = false;
+ if (VERBOSE) printf_P(PSTR("Message auto-ack disabled\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("1\n"));
+ }
+ }
+
+ } else if (buffer[0] == 'w' && length >= 2) {
+ char str[4]; buffer++;
+ memcpy(str, buffer, length-1);
+ int preamble = atoi(str);
+ if (preamble >= 0 && preamble <= 9999) {
+ custom_preamble = preamble;
+ printf_P(PSTR("Preamble set to %lums\n"), custom_preamble);
+ } else {
+ printf_P(PSTR("Error: Invalid value for preamble\n"));
+ }
+ } else if (buffer[0] == 'W' && length >= 2) {
+ char str[4]; buffer++;
+ memcpy(str, buffer, length-1);
+ int tail = atoi(str);
+ if (tail >= 0 && tail <= 9999) {
+ custom_tail = tail;
+ printf_P(PSTR("TX Tail set to %lums\n"), custom_tail);
+ } else {
+ printf_P(PSTR("Error: Invalid value for TX tail\n"));
+ }
+ } else {
+ if (VERBOSE) printf_P(PSTR("Error: Invalid command\n"));
+ if (!VERBOSE && !SILENT) printf_P(PSTR("0\n"));
+ }
+
+ }
+
+}
+
+void ss_sendPkt(void *_buffer, size_t length, AX25Ctx *ax25) {
+
+ uint8_t *buffer = (uint8_t *)_buffer;
+
+ memcpy(dst.call, DST, 6);
+ dst.ssid = DST_SSID;
+
+ memcpy(src.call, CALL, 6);
+ src.ssid = CALL_SSID;
+
+ memcpy(path1.call, PATH1, 6);
+ path1.ssid = PATH1_SSID;
+
+ memcpy(path2.call, PATH2, 6);
+ path2.ssid = PATH2_SSID;
+
+ path[0] = dst;
+ path[1] = src;
+ path[2] = path1;
+ path[3] = path2;
+
+ ax25_sendVia(ax25, path, countof(path), buffer, length);
+}
+
+void ss_sendLoc(void *_buffer, size_t length, AX25Ctx *ax25) {
+ size_t payloadLength = 20+length;
+ bool usePHG = false;
+ if (power < 10 && height < 10 && gain < 10 && directivity < 9) {
+ usePHG = true;
+ payloadLength += 7;
+ }
+ uint8_t *packet = malloc(payloadLength);
+ uint8_t *ptr = packet;
+ packet[0] = '=';
+ packet[9] = symbolTable;
+ packet[19] = symbol;
+ ptr++;
+ memcpy(ptr, latitude, 8);
+ ptr += 9;
+ memcpy(ptr, longtitude, 9);
+ ptr += 10;
+ if (usePHG) {
+ packet[20] = 'P';
+ packet[21] = 'H';
+ packet[22] = 'G';
+ packet[23] = power+48;
+ packet[24] = height+48;
+ packet[25] = gain+48;
+ packet[26] = directivity+48;
+ ptr+=7;
+ }
+ if (length > 0) {
+ uint8_t *buffer = (uint8_t *)_buffer;
+ memcpy(ptr, buffer, length);
+ }
+
+ //printf_P(PSTR("Assembled packet:\n%.*s\n", payloadLength, packet);
+ ss_sendPkt(packet, payloadLength, ax25);
+ free(packet);
+}
+
+void ss_sendMsg(void *_buffer, size_t length, AX25Ctx *ax25) {
+ if (length > 67) length = 67;
+ size_t payloadLength = 11+length+4;
+
+ uint8_t *packet = malloc(payloadLength);
+ uint8_t *ptr = packet;
+ packet[0] = ':';
+ int callSize = 6;
+ int count = 0;
+ while (callSize--) {
+ if (message_recip[count] != 0) {
+ packet[1+count] = message_recip[count];
+ count++;
+ }
+ }
+ if (message_recip_ssid != -1) {
+ packet[1+count] = '-'; count++;
+ if (message_recip_ssid < 10) {
+ packet[1+count] = message_recip_ssid+48; count++;
+ } else {
+ packet[1+count] = 49; count++;
+ packet[1+count] = message_recip_ssid-10+48; count++;
+ }
+ }
+ while (count < 9) {
+ packet[1+count] = ' '; count++;
+ }
+ packet[1+count] = ':';
+ ptr += 11;
+ if (length > 0) {
+ uint8_t *buffer = (uint8_t *)_buffer;
+ memcpy(ptr, buffer, length);
+ memcpy(lastMessage, buffer, length);
+ lastMessageLen = length;
+ }
+
+ message_seq++;
+ if (message_seq > 999) message_seq = 0;
+
+ packet[11+length] = '{';
+ int n = message_seq % 10;
+ int d = ((message_seq % 100) - n)/10;
+ int h = (message_seq - d - n) / 100;
+
+ packet[12+length] = h+48;
+ packet[13+length] = d+48;
+ packet[14+length] = n+48;
+
+ //printf_P(PSTR("Assembled packet:\n%.*s\n", payloadLength, packet);
+ ss_sendPkt(packet, payloadLength, ax25);
+
+ free(packet);
+}
+
+void ss_msgRetry(AX25Ctx *ax25) {
+ message_seq--;
+ ss_sendMsg(lastMessage, lastMessageLen, ax25);
+}
+
+void ss_printSettings(void) {
+ printf_P(PSTR("Configuration:\n"));
+ printf_P(PSTR("Callsign: %.6s-%d\n"), CALL, CALL_SSID);
+ printf_P(PSTR("Destination: %.6s-%d\n"), DST, DST_SSID);
+ printf_P(PSTR("Path1: %.6s-%d\n"), PATH1, PATH1_SSID);
+ printf_P(PSTR("Path2: %.6s-%d\n"), PATH2, PATH2_SSID);
+ if (message_autoAck) {
+ printf_P(PSTR("Auto-ack messages: On\n"));
+ } else {
+ printf_P(PSTR("Auto-ack messages: Off\n"));
+ }
+ if (power != 10) printf_P(PSTR("Power: %d\n"), power);
+ if (height != 10) printf_P(PSTR("Height: %d\n"), height);
+ if (gain != 10) printf_P(PSTR("Gain: %d\n"), gain);
+ if (directivity != 10) printf_P(PSTR("Directivity: %d\n"), directivity);
+ if (symbolTable == '\\') printf_P(PSTR("Symbol table: alternate\n"));
+ if (symbolTable == '/') printf_P(PSTR("Symbol table: standard\n"));
+ printf_P(PSTR("Symbol: %c\n"), symbol);
+ printf_P(PSTR("TX Preamble: %lu\n"), custom_preamble);
+ printf_P(PSTR("TX Tail: %lu\n"), custom_tail);
+}
+
+#if ENABLE_HELP
+ void ss_printHelp(void) {
+ printf_P(PSTR("----------------------------------\n"));
+ printf_P(PSTR("Serial commands:\n"));
+ printf_P(PSTR("! Send raw packet\n"));
+ printf_P(PSTR("@ Send location update (cmt = optional comment)\n"));
+ printf_P(PSTR("# Send APRS message\n\n"));
+
+ printf_P(PSTR("c Set your callsign\n"));
+ printf_P(PSTR("d Set destination callsign\n"));
+ printf_P(PSTR("1 Set PATH1 callsign\n"));
+ printf_P(PSTR("2 Set PATH2 callsign\n\n"));
+
+ printf_P(PSTR("sc Set your SSID\n"));
+ printf_P(PSTR("sd Set destination SSID\n"));
+ printf_P(PSTR("s1 Set PATH1 SSID\n"));
+ printf_P(PSTR("s2 Set PATH2 SSID\n\n"));
+
+ printf_P(PSTR("lla Set latitude (NMEA-format, eg 4903.50N)\n"));
+ printf_P(PSTR("llo Set latitude (NMEA-format, eg 07201.75W)\n"));
+ printf_P(PSTR("lp<0-9> Set TX power info\n"));
+ printf_P(PSTR("lh<0-9> Set antenna height info\n"));
+ printf_P(PSTR("lg<0-9> Set antenna gain info\n"));
+ printf_P(PSTR("ld<0-9> Set antenna directivity info\n"));
+ printf_P(PSTR("ls Select symbol\n"));
+ printf_P(PSTR("lt Select symbol table (standard/alternate)\n\n"));
+
+ printf_P(PSTR("mc Set message recipient callsign\n"));
+ printf_P(PSTR("ms Set message recipient SSID\n"));
+ printf_P(PSTR("mr Retry last message\n"));
+ printf_P(PSTR("ma<1/0> Automatic message ACK on/off\n\n"));
+
+ printf_P(PSTR("ps<1/0> Print SRC on/off\n"));
+ printf_P(PSTR("pd<1/0> Print DST on/off\n"));
+ printf_P(PSTR("pp<1/0> Print PATH on/off\n"));
+ printf_P(PSTR("pm<1/0> Print DATA on/off\n"));
+ printf_P(PSTR("pi<1/0> Print INFO on/off\n\n"));
+ printf_P(PSTR("v<1/0> Verbose mode on/off\n"));
+ printf_P(PSTR("V<1/0> Silent mode on/off\n\n"));
+
+ printf_P(PSTR("w Set preamble time in ms\n"));
+ printf_P(PSTR("W Set transmission tail time in ms\n"));
+
+ printf_P(PSTR("S Save configuration\n"));
+ printf_P(PSTR("L Load configuration\n"));
+ printf_P(PSTR("C Clear configuration\n"));
+ printf_P(PSTR("H Print configuration\n"));
+ printf_P(PSTR("----------------------------------\n"));
+ }
+#endif
+
+#endif
\ No newline at end of file
diff --git a/protocol/SimpleSerial.h b/protocol/SimpleSerial.h
new file mode 100644
index 0000000..d71546d
--- /dev/null
+++ b/protocol/SimpleSerial.h
@@ -0,0 +1,25 @@
+#ifndef _PROTOCOL_SIMPLE_SERIAL
+#define _PROTOCOL_SIMPLE_SERIAL 0x01
+#include "AX25.h"
+
+#define DEFAULT_CALLSIGN "NOCALL"
+#define DEFAULT_DESTINATION_CALL "APZMDM"
+
+void ss_init(AX25Ctx *ax25);
+
+void ss_messageCallback(struct AX25Msg *msg);
+void ss_serialCallback(void *_buffer, size_t length, AX25Ctx *ctx);
+
+void ss_sendPkt(void *_buffer, size_t length, AX25Ctx *ax25);
+void ss_sendLoc(void *_buffer, size_t length, AX25Ctx *ax25);
+void ss_sendMsg(void *_buffer, size_t length, AX25Ctx *ax25);
+void ss_msgRetry(AX25Ctx *ax25);
+
+void ss_clearSettings(void);
+void ss_loadSettings(void);
+void ss_saveSettings(void);
+void ss_printSettings(void);
+
+void ss_printHelp(void);
+
+#endif
\ No newline at end of file
diff --git a/util/CRC-CCIT.c b/util/CRC-CCIT.c
new file mode 100644
index 0000000..df468b2
--- /dev/null
+++ b/util/CRC-CCIT.c
@@ -0,0 +1,36 @@
+#include "CRC-CCIT.h"
+
+const uint16_t crc_ccit_table[256] PROGMEM = {
+ 0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf,
+ 0x8c48, 0x9dc1, 0xaf5a, 0xbed3, 0xca6c, 0xdbe5, 0xe97e, 0xf8f7,
+ 0x1081, 0x0108, 0x3393, 0x221a, 0x56a5, 0x472c, 0x75b7, 0x643e,
+ 0x9cc9, 0x8d40, 0xbfdb, 0xae52, 0xdaed, 0xcb64, 0xf9ff, 0xe876,
+ 0x2102, 0x308b, 0x0210, 0x1399, 0x6726, 0x76af, 0x4434, 0x55bd,
+ 0xad4a, 0xbcc3, 0x8e58, 0x9fd1, 0xeb6e, 0xfae7, 0xc87c, 0xd9f5,
+ 0x3183, 0x200a, 0x1291, 0x0318, 0x77a7, 0x662e, 0x54b5, 0x453c,
+ 0xbdcb, 0xac42, 0x9ed9, 0x8f50, 0xfbef, 0xea66, 0xd8fd, 0xc974,
+ 0x4204, 0x538d, 0x6116, 0x709f, 0x0420, 0x15a9, 0x2732, 0x36bb,
+ 0xce4c, 0xdfc5, 0xed5e, 0xfcd7, 0x8868, 0x99e1, 0xab7a, 0xbaf3,
+ 0x5285, 0x430c, 0x7197, 0x601e, 0x14a1, 0x0528, 0x37b3, 0x263a,
+ 0xdecd, 0xcf44, 0xfddf, 0xec56, 0x98e9, 0x8960, 0xbbfb, 0xaa72,
+ 0x6306, 0x728f, 0x4014, 0x519d, 0x2522, 0x34ab, 0x0630, 0x17b9,
+ 0xef4e, 0xfec7, 0xcc5c, 0xddd5, 0xa96a, 0xb8e3, 0x8a78, 0x9bf1,
+ 0x7387, 0x620e, 0x5095, 0x411c, 0x35a3, 0x242a, 0x16b1, 0x0738,
+ 0xffcf, 0xee46, 0xdcdd, 0xcd54, 0xb9eb, 0xa862, 0x9af9, 0x8b70,
+ 0x8408, 0x9581, 0xa71a, 0xb693, 0xc22c, 0xd3a5, 0xe13e, 0xf0b7,
+ 0x0840, 0x19c9, 0x2b52, 0x3adb, 0x4e64, 0x5fed, 0x6d76, 0x7cff,
+ 0x9489, 0x8500, 0xb79b, 0xa612, 0xd2ad, 0xc324, 0xf1bf, 0xe036,
+ 0x18c1, 0x0948, 0x3bd3, 0x2a5a, 0x5ee5, 0x4f6c, 0x7df7, 0x6c7e,
+ 0xa50a, 0xb483, 0x8618, 0x9791, 0xe32e, 0xf2a7, 0xc03c, 0xd1b5,
+ 0x2942, 0x38cb, 0x0a50, 0x1bd9, 0x6f66, 0x7eef, 0x4c74, 0x5dfd,
+ 0xb58b, 0xa402, 0x9699, 0x8710, 0xf3af, 0xe226, 0xd0bd, 0xc134,
+ 0x39c3, 0x284a, 0x1ad1, 0x0b58, 0x7fe7, 0x6e6e, 0x5cf5, 0x4d7c,
+ 0xc60c, 0xd785, 0xe51e, 0xf497, 0x8028, 0x91a1, 0xa33a, 0xb2b3,
+ 0x4a44, 0x5bcd, 0x6956, 0x78df, 0x0c60, 0x1de9, 0x2f72, 0x3efb,
+ 0xd68d, 0xc704, 0xf59f, 0xe416, 0x90a9, 0x8120, 0xb3bb, 0xa232,
+ 0x5ac5, 0x4b4c, 0x79d7, 0x685e, 0x1ce1, 0x0d68, 0x3ff3, 0x2e7a,
+ 0xe70e, 0xf687, 0xc41c, 0xd595, 0xa12a, 0xb0a3, 0x8238, 0x93b1,
+ 0x6b46, 0x7acf, 0x4854, 0x59dd, 0x2d62, 0x3ceb, 0x0e70, 0x1ff9,
+ 0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330,
+ 0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0x0f78,
+};
\ No newline at end of file
diff --git a/util/CRC-CCIT.h b/util/CRC-CCIT.h
new file mode 100644
index 0000000..a354ba7
--- /dev/null
+++ b/util/CRC-CCIT.h
@@ -0,0 +1,18 @@
+// CRC-CCIT Implementation based on work by Francesco Sacchi
+
+#ifndef CRC_CCIT_H
+#define CRC_CCIT_H
+
+#include
+#include
+
+#define CRC_CCIT_INIT_VAL ((uint16_t)0xFFFF)
+
+extern const uint16_t crc_ccit_table[256];
+
+inline uint16_t update_crc_ccit(uint8_t c, uint16_t prev_crc) {
+ return (prev_crc >> 8) ^ pgm_read_word(&crc_ccit_table[(prev_crc ^ c) & 0xff]);
+}
+
+
+#endif
\ No newline at end of file
diff --git a/util/FIFO.h b/util/FIFO.h
new file mode 100644
index 0000000..b9850a1
--- /dev/null
+++ b/util/FIFO.h
@@ -0,0 +1,85 @@
+#ifndef UTIL_FIFO_H
+#define UTIL_FIFO_H
+
+#include
+#include
+
+typedef struct FIFOBuffer
+{
+ unsigned char *begin;
+ unsigned char *end;
+ unsigned char * volatile head;
+ unsigned char * volatile tail;
+} FIFOBuffer;
+
+inline bool fifo_isempty(const FIFOBuffer *f) {
+ return f->head == f->tail;
+}
+
+inline bool fifo_isfull(const FIFOBuffer *f) {
+ return ((f->head == f->begin) && (f->tail == f->end)) || (f->tail == f->head - 1);
+}
+
+inline void fifo_push(FIFOBuffer *f, unsigned char c) {
+ *(f->tail) = c;
+
+ if (f->tail == f->end) {
+ f->tail = f->begin;
+ } else {
+ f->tail++;
+ }
+}
+
+inline unsigned char fifo_pop(FIFOBuffer *f) {
+ if(f->head == f->end) {
+ f->head = f->begin;
+ return *(f->end);
+ } else {
+ return *(f->head++);
+ }
+}
+
+inline void fifo_flush(FIFOBuffer *f) {
+ f->head = f->tail;
+}
+
+inline bool fifo_isempty_locked(const FIFOBuffer *f) {
+ bool result;
+ ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
+ result = fifo_isempty(f);
+ }
+ return result;
+}
+
+inline bool fifo_isfull_locked(const FIFOBuffer *f) {
+ bool result;
+ ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
+ result = fifo_isfull(f);
+ }
+ return result;
+}
+
+inline void fifo_push_locked(FIFOBuffer *f, unsigned char c) {
+ ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
+ fifo_push(f, c);
+ }
+}
+
+inline unsigned char fifo_pop_locked(FIFOBuffer *f) {
+ unsigned char c;
+ ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
+ c = fifo_pop(f);
+ }
+ return c;
+}
+
+inline void fifo_init(FIFOBuffer *f, unsigned char *buffer, size_t size) {
+ f->head = f->tail = f->begin = buffer;
+ f->end = buffer + size -1;
+}
+
+inline size_t fifo_len(FIFOBuffer *f) {
+ return f->end - f->begin;
+}
+
+#endif
\ No newline at end of file
diff --git a/util/constants.h b/util/constants.h
new file mode 100644
index 0000000..6a16a68
--- /dev/null
+++ b/util/constants.h
@@ -0,0 +1,9 @@
+#define PROTOCOL_KISS 0x01
+#define PROTOCOL_SIMPLE_SERIAL 0x02
+
+#define m328p 0x01
+#define m1284p 0x02
+#define m644p 0x03
+
+#define REF_3V3 0x01
+#define REF_5V 0x02
\ No newline at end of file
diff --git a/util/time.h b/util/time.h
new file mode 100644
index 0000000..eb79970
--- /dev/null
+++ b/util/time.h
@@ -0,0 +1,43 @@
+#ifndef UTIL_TIME_H
+#define UTIL_TIME_H
+
+#include
+#include "device.h"
+
+#define DIV_ROUND(dividend, divisor) (((dividend) + (divisor) / 2) / (divisor))
+#define CLOCK_TICKS_PER_SEC CONFIG_AFSK_DAC_SAMPLERATE
+
+typedef int32_t ticks_t;
+typedef int32_t mtime_t;
+
+volatile ticks_t _clock;
+
+inline ticks_t timer_clock(void) {
+ ticks_t result;
+
+ ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
+ result = _clock;
+ }
+
+ return result;
+}
+
+
+inline ticks_t ms_to_ticks(mtime_t ms) {
+ return ms * DIV_ROUND(CLOCK_TICKS_PER_SEC, 1000);
+}
+
+inline void cpu_relax(void) {
+ // Do nothing!
+}
+
+inline void delay_ms(unsigned long ms) {
+ ticks_t start = timer_clock();
+ unsigned long n_ticks = ms_to_ticks(ms);
+ while (timer_clock() - start < n_ticks) {
+ cpu_relax();
+ }
+}
+
+
+#endif
\ No newline at end of file