Wakeup Light with touch user interface, anti-aliased Font, SD card access and RTC usage on STM32F746NG-DISCO board
Dependencies: BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG TS_DISCO_F746NG FATFileSystem TinyJpgDec_interwork mbed-src
Sound.cpp@12:a89096944f20, 2016-01-31 (annotated)
- Committer:
- the_sz
- Date:
- Sun Jan 31 01:02:36 2016 +0000
- Revision:
- 12:a89096944f20
date adjust added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
the_sz | 12:a89096944f20 | 1 | #include "WakeupLight.h" |
the_sz | 12:a89096944f20 | 2 | |
the_sz | 12:a89096944f20 | 3 | void BSP_AUDIO_OUT_TransferComplete_CallBack() |
the_sz | 12:a89096944f20 | 4 | { |
the_sz | 12:a89096944f20 | 5 | BSP_AUDIO_OUT_Stop(CODEC_PDWN_SW); |
the_sz | 12:a89096944f20 | 6 | } |
the_sz | 12:a89096944f20 | 7 | |
the_sz | 12:a89096944f20 | 8 | void BSP_AUDIO_OUT_HalfTransfer_CallBack() |
the_sz | 12:a89096944f20 | 9 | { |
the_sz | 12:a89096944f20 | 10 | } |
the_sz | 12:a89096944f20 | 11 | |
the_sz | 12:a89096944f20 | 12 | void Sound_Init(void) |
the_sz | 12:a89096944f20 | 13 | { |
the_sz | 12:a89096944f20 | 14 | // OUTPUT_DEVICE_SPEAKER OUTPUT_DEVICE_BOTH |
the_sz | 12:a89096944f20 | 15 | uint8_t result=BSP_AUDIO_OUT_Init(OUTPUT_DEVICE_HEADPHONE,100,22050); |
the_sz | 12:a89096944f20 | 16 | DPrintf("Sound_Init: ID: 0x%04X, Result: %u.\r\n",wm8994_ReadID(AUDIO_I2C_ADDRESS),result); |
the_sz | 12:a89096944f20 | 17 | |
the_sz | 12:a89096944f20 | 18 | //Sound_Play(); |
the_sz | 12:a89096944f20 | 19 | } |
the_sz | 12:a89096944f20 | 20 | |
the_sz | 12:a89096944f20 | 21 | void Sound_Play(void) |
the_sz | 12:a89096944f20 | 22 | { |
the_sz | 12:a89096944f20 | 23 | //BSP_AUDIO_OUT_Play((uint16_t *)bArray,sizeof(bArray)); |
the_sz | 12:a89096944f20 | 24 | } |