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 7:e86c645231ff, committed 2017-01-27
- Comitter:
- shorie
- Date:
- Fri Jan 27 02:00:26 2017 +0000
- Parent:
- 6:486b1cb03e61
- Child:
- 8:d8d1776e865b
- 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 01:53:43 2017 +0000
+++ b/main.cpp Fri Jan 27 02:00:26 2017 +0000
@@ -38,37 +38,12 @@
SignalProcessing * process;
-
/************************* Unzen Dependent Function Prototype *****************/
// for system usage. Do not care.
void initialize_system(void);
- /*========================= project dependent Signal Processing. ============*/
- // customer signal processing initialization call back.
-void init_callback(
- unsigned int block_size // block size [sample]
- )
-{
- // place initialization code here
- process = new SignalProcessing( block_size );
-}
-
- // customer signal processing call back.
-void process_callback(
- float rx_left_buffer[], // array of the left input samples
- float rx_right_buffer[], // array of the right input samples
- float tx_left_buffer[], // place to write the left output samples
- float tx_right_buffer[], // place to write the left output samples
- unsigned int block_size // block size [sample]
- )
-{
- // place signal processing code here
- process->run( rx_left_buffer, rx_right_buffer, tx_left_buffer, tx_right_buffer, block_size );
-}
-
-
-
+/*========================= Main program. ====================================*/
int main()
{
// start audio. Do not touch
@@ -83,7 +58,32 @@
wait(0.05);
ukifune::tick();
}
-}
+} // End of main
+
+
+/*========================= project dependent Signal Processing. ============*/
+ // customer signal processing initialization call back.
+void init_callback(
+ unsigned int block_size // block size [sample]
+ )
+{
+ // place initialization code here
+ process = new SignalProcessing( block_size );
+} // end of init_callback
+
+
+ // customer signal processing call back.
+void process_callback(
+ float rx_left_buffer[], // array of the left input samples
+ float rx_right_buffer[], // array of the right input samples
+ float tx_left_buffer[], // place to write the left output samples
+ float tx_right_buffer[], // place to write the left output samples
+ unsigned int block_size // block size [sample]
+ )
+{
+ // place signal processing code here
+ process->run( rx_left_buffer, rx_right_buffer, tx_left_buffer, tx_right_buffer, block_size );
+} // End of process_callback
/************************* Unzen Dependent Function implementation ************/
