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.
Diff: FreqConv.cpp
- Revision:
- 1:d8449dbcde02
- Parent:
- 0:f69d3c64978d
- Child:
- 2:b83deff26f1f
--- a/FreqConv.cpp Mon Jul 28 07:30:22 2014 +0000
+++ b/FreqConv.cpp Tue Jul 29 04:57:34 2014 +0000
@@ -1,6 +1,6 @@
//--------------------------------------------------------------
// Frequency converter for Open Campus
-// Copyright (c) 2014 MIKAMI, Naoki, 2014/06/23
+// Copyright (c) 2014 MIKAMI, Naoki, 2014/07/28
//--------------------------------------------------------------
#include "mbed.h"
@@ -23,11 +23,9 @@
void TimerIsr()
{
-// float yI, yQ, cosx, sinx;
-
float xn = adc_.Read(); // input
float yn = myFrqConv_.Execute(xn);
- dac_.Write(yn); // output
+ dac_.Write(yn); // output
}
int main()