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: BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG TS_DISCO_F746NG FATFileSystem TinyJpgDec_interwork mbed-src
Diff: Sound.cpp
- Revision:
- 12:a89096944f20
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Sound.cpp Sun Jan 31 01:02:36 2016 +0000
@@ -0,0 +1,24 @@
+#include "WakeupLight.h"
+
+void BSP_AUDIO_OUT_TransferComplete_CallBack()
+{
+ BSP_AUDIO_OUT_Stop(CODEC_PDWN_SW);
+}
+
+void BSP_AUDIO_OUT_HalfTransfer_CallBack()
+{
+}
+
+void Sound_Init(void)
+{
+ // OUTPUT_DEVICE_SPEAKER OUTPUT_DEVICE_BOTH
+ uint8_t result=BSP_AUDIO_OUT_Init(OUTPUT_DEVICE_HEADPHONE,100,22050);
+ DPrintf("Sound_Init: ID: 0x%04X, Result: %u.\r\n",wm8994_ReadID(AUDIO_I2C_ADDRESS),result);
+
+ //Sound_Play();
+}
+
+void Sound_Play(void)
+{
+ //BSP_AUDIO_OUT_Play((uint16_t *)bArray,sizeof(bArray));
+}