Hi all,
I have a question about the text of program
/* This function programs a Hi or Lo Accumulator channel. */
void program_accumulator(Uint16 pdsp, Qmss_AccCmd *cmd)
{
Uint16 idx;
Uint32 *tmplist;
Uint32 *reg;
if (pdsp == 1)
reg = (Uint32 *)(PDSP1_CMD_REGION + 4*4); //point to last word
else
reg = (Uint32 *)(PDSP2_CMD_REGION + 4*4); //point to last word
tmplist = ((uint32_t *) cmd) + 4; //write first word last
for (idx = 0; idx < 5; idx ++)
{
*reg-- = *tmplist--;
}
/* wait for the command byte to clear. */
reg++;
do
{
result = (*reg & 0x0000ff00) >> 8;
} while (result != 0);
}
what is it?
It is SPRUGR9F—March 2013 KeyStone Architecture Multicore Navigator User Guide, page 145, Appendix A—Example Code Utility Functions
Best regards,
Oleg