Re: DSK5510
- From: Paul Russell <prussell@xxxxxxxxx>
- Date: Mon, 29 Sep 2008 16:22:13 +0100
ewong1@xxxxxxxxxx wrote:
Hello eveyone,
I need help. The function provided by Spectrum Digital
"DSK5510_mset" works.
But, the following function doesn't work
void DSK5510_mset (uint32 m_addr, uint16 m_value)
{
*((uint16 *)m_addr ) = m_value;
}
Is there something else mising in this function?
What can I add to this function to make it work like
the one provided by Spectrum Digital?
It would be more helpful if you gave a little more information than just "it doesn't work" - not everyone in comp.dsp is telepathic.
At a guess you're running into compiler optimisation issues when trying to write repeated values to a register, in which case you probably need to do something like this:
void DSK5510_mset (uint32 m_addr, uint16 m_value)
{
*((volatile uint16 *)m_addr) = m_value;
}
Paul
.
- Follow-Ups:
- Re: DSK5510
- From: ewong1
- Re: DSK5510
- References:
- DSK5510
- From: ewong1
- DSK5510
- Prev by Date: Re: Cirrus (Crystal Semi) CS42436 codec noise problem
- Next by Date: Re: Solution's Manual Required
- Previous by thread: DSK5510
- Next by thread: Re: DSK5510
- Index(es):
Relevant Pages
|