Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:b0e6c82af2ef, committed 2013-09-28
- Comitter:
- liamg
- Date:
- Sat Sep 28 06:44:57 2013 +0000
- Parent:
- 0:b5fb7b3adfe2
- Commit message:
- Version 2 with updated commentary
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b5fb7b3adfe2 -r b0e6c82af2ef main.cpp
--- a/main.cpp Sat Sep 28 04:32:20 2013 +0000
+++ b/main.cpp Sat Sep 28 06:44:57 2013 +0000
@@ -70,14 +70,14 @@
while(1)
{
- while (targetFrq<0x28F5C28F) // 20MHz
+ while (targetFrq<0x28F5C28F) // up to 20MHz
{
- writeSPI(reverseBits(targetFrq),0);
+ writeSPI(reverseBits(targetFrq),0); // Don't use phase so set to zero.
targetFrq=targetFrq+increment;
//wait_ms(100);
}
- while (targetFrq>0x147AE148) // 10MHz
+ while (targetFrq>0x147AE148) // down to 10MHz
{
writeSPI(reverseBits(targetFrq),0);
targetFrq=targetFrq-increment;