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: X_NUCLEO_CCA02M1 ST_Events-old mbed
Fork of HelloWorld_CCA02M1 by
Revision 17:97dffa2e68f7, committed 2017-07-14
- 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
--- /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
--- 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
--- 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
--- /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
