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.
Dependencies: amakusa mbed-dsp mbed shimabara ukifune unzen_nucleo_f746
Fork of skeleton_unzen_nucleo_f746 by
Revision 8:d8d1776e865b, committed 2017-01-27
- Comitter:
- shorie
- Date:
- Fri Jan 27 02:08:53 2017 +0000
- Parent:
- 7:e86c645231ff
- Child:
- 9:7f521a0b397c
- Commit message:
- Refactored
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Jan 27 02:00:26 2017 +0000
+++ b/main.cpp Fri Jan 27 02:08:53 2017 +0000
@@ -17,25 +17,19 @@
#include "unzen.h" // audio framework include file
#include "umb_adau1361a.h" // audio codec contoler include file
#include "amakusa.h" // audio signal processing class library.
-#include "ukifune.h" // UI board support routines
-
-
-/*========================= project dependent include. =======================*/
-#include "signal_processing.h"
+#include "ukifune.h" // UI board support routines
+#include "signal_processing.h" // Implementaion of user signal processing.
/************************* Unzen Dependent Global Variables *******************/
// I2C is essential to talk with ADAU1361
-I2C i2c(D14, D15);
+static I2C i2c(D14, D15);
// create an audio codec contoler
-shimabara::UMB_ADAU1361A codec(FS, i2c, CODEC_I2C_ADDR );
+static shimabara::UMB_ADAU1361A codec(FS, i2c, CODEC_I2C_ADDR );
// create an audio framework by singlton pattern
-unzen::Framework audio;
-
-
-/*========================= project dependent Global Variable. ===============*/
+static unzen::Framework audio;
// create a pointer to the signal processing object.
-SignalProcessing * process;
+static SignalProcessing * process;
/************************* Unzen Dependent Function Prototype *****************/
@@ -61,7 +55,7 @@
} // End of main
-/*========================= project dependent Signal Processing. ============*/
+/************************* Unzen Dependent Callbacks **************************/
// customer signal processing initialization call back.
void init_callback(
unsigned int block_size // block size [sample]
