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 0:325fcc4dca89, committed 2015-05-18
- Comitter:
- kenjiArai
- Date:
- Mon May 18 10:02:51 2015 +0000
- Child:
- 1:67ac582483f9
- Commit message:
- Show "System Clock" in your PC terminal.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon May 18 10:02:51 2015 +0000
@@ -0,0 +1,49 @@
+/*
+ * mbed Application program
+ * Check "System clock" frequency
+ *
+ * Copyright (c) 2015 Kenji Arai / JH1PJL
+ * http://www.page.sannet.ne.jp/kenjia/index.html
+ * http://mbed.org/users/kenjiArai/
+ * Created: may 18th, 2015
+ * Revised: may 18th, 2015
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
+ * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+
+int main() {
+ printf("\r\n Your mbed SysClock is %u Hz.\r\n", SystemCoreClock);
+ while(true) {
+ myled = !myled;
+ wait(1.0);
+ }
+}
+
+/* measured by JH1PJL on May 18th, 2015
+
+ Check old revision
+ Case L152
+ before and rev.81 20140319 -> 16000000Hz
+ rev.82 and after 20140407 -> 24000000Hz
+ Case F401
+ all rev.(?) -> 84000000Hz
+ Case F411
+ befoe and rev.97 20150414 -> 100000000Hz
+ rev.98& 99 (as of 20150518) -> 96000000Hz
+ Case LPC1768
+ rev.99 -> 96000000Hz
+ Case GR-PEACH
+ error "SystemCoreClock" is undefined
+ Case LPC1114FN28
+ rev.99 -> 48000000Hz
+
+ */
+
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon May 18 10:02:51 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/dbbf35b96557 \ No newline at end of file