for dissembly

Dependencies:   X_NUCLEO_CCA02M1 ST_Events-old mbed

Fork of HelloWorld_CCA02M1 by ST

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Fri Jul 14 16:37:55 2017 +0000
Parent:
16:8f0723e0df78
Commit message:
Simple test application for the STMicroelectronics X-NUCLEO-CCA02M1MEMS Microphones Expansion Board, built against mbed classic.

Changed in this revision

events.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 8f0723e0df78 -r 97dffa2e68f7 events.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/events.lib	Fri Jul 14 16:37:55 2017 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/ST/code/ST_Events/#dba7bd0f39f3
diff -r 8f0723e0df78 -r 97dffa2e68f7 main.cpp
--- a/main.cpp	Wed Jul 12 13:57:40 2017 +0000
+++ b/main.cpp	Fri Jul 14 16:37:55 2017 +0000
@@ -41,7 +41,6 @@
 
 /* mbed specific header files. */
 #include "mbed.h"
-#include "rtos.h"
 
 
 #if DEVICE_I2S
@@ -63,9 +62,6 @@
     2       /* Default number of channels. */
 };
 
-/* Thread to manage I2S peripherals. */
-static rtos::Thread i2s_bh_daemon;
-
 
 /* Functions -----------------------------------------------------------------*/
 
@@ -86,10 +82,6 @@
         exit(EXIT_FAILURE);
     }
 
-    /* Starting a thread to manage I2S peripherals. */
-    Callback<void()> i2s_bh_task(&I2S::i2s_bh_queue, &events::EventQueue::dispatch_forever);
-    i2s_bh_daemon.start(i2s_bh_task);
-
     /* Enabling transmission via USB. */
     microphones->enable_usb();
 
@@ -102,6 +94,9 @@
     /* Printing to the console. */
     printf("--> Recording...\r\n");
     microphones->record();
+
+    /* Dispatching forever the I2S queue. */
+    I2S::i2s_bh_queue.dispatch_forever();
 }
 
 #else // DEVICE_I2S
diff -r 8f0723e0df78 -r 97dffa2e68f7 mbed-os.lib
--- a/mbed-os.lib	Wed Jul 12 13:57:40 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://github.com/ARMmbed/mbed-os/#42be5c01a7f91292d5e27124ad9584236025f6ab
diff -r 8f0723e0df78 -r 97dffa2e68f7 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jul 14 16:37:55 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/4eea097334d6
\ No newline at end of file