mirror of
https://github.com/rvtr/twl_wrapsdk.git
synced 2025-10-31 06:11:10 -04:00
bug fix
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@83 4ee2a332-4b2b-5046-8439-1ba90f034370
This commit is contained in:
parent
c86ca86027
commit
0789a26744
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
#include <twl/os.h>
|
#include <twl/os.h>
|
||||||
#include <twl/misc.h>
|
#include <twl/misc.h>
|
||||||
#include <twl/cdc.h>
|
|
||||||
#include <twl/snd/ARM7/i2s.h>
|
#include <twl/snd/ARM7/i2s.h>
|
||||||
#include <nitro/hw/ARM7/ioreg_SND.h>
|
#include <nitro/hw/ARM7/ioreg_SND.h>
|
||||||
#include <nitro/spi/common/pm_common.h>
|
#include <nitro/spi/common/pm_common.h>
|
||||||
|
|||||||
@ -71,6 +71,10 @@ void SND_I2SEnable(void)
|
|||||||
|
|
||||||
if (isTwl)
|
if (isTwl)
|
||||||
{
|
{
|
||||||
|
if ((reg_CFG_CLK & REG_CFG_CLK_SND_MASK) == 0)
|
||||||
|
{
|
||||||
|
CDC_Init();
|
||||||
|
}
|
||||||
reg_SND_I2SCNT |= REG_SND_I2SCNT_E_MASK;
|
reg_SND_I2SCNT |= REG_SND_I2SCNT_E_MASK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user