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
Sound.cpp
- Committer:
- the_sz
- Date:
- 2016-01-31
- Revision:
- 12:a89096944f20
File content as of revision 12:a89096944f20:
#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));
}