| 1 |
DSP startup sequence: |
| 2 |
|
| 3 |
DspBoot called with (JASystem::TAudioThread::syncDSP()) as a parameter. |
| 4 |
DSP lib initialized |
| 5 |
A Dsp task is created: |
| 6 |
init callback = DspHandShake() |
| 7 |
req callback = JASystem::TAudioThread::syncDSP() |
| 8 |
Task is pushed as first task and executed |
| 9 |
|
| 10 |
DSP send DSP_INIT command (0xDCD10003) |
| 11 |
__DSPHandler receive the command |
| 12 |
|
| 13 |
task's init callback (DspHandShake) is called |
| 14 |
1 mail is read from dsp (and discarded) |
| 15 |
DSP flag is set as running |
| 16 |
|
| 17 |
AIRegisterDMACallback(JASystem::TAudioThread::syncAudio((void)) |
| 18 |
AIStartDMA() to initialize dma in AI module |
| 19 |
|
| 20 |
----------------------------------- |
| 21 |
|
| 22 |
DSP run sequence: |
| 23 |
|
| 24 |
__DSPHandler receive command DSP_RESUME |
| 25 |
callback JASystem::TAudioThread::syncDSP called and pull 1 mail |
| 26 |
A message is send by OSSendMessage(1) |
| 27 |
|
| 28 |
JASystem::TAudioThread::audioproc receive OSMessage: |
| 29 |
0=update dac |
| 30 |
1=update dsp |
| 31 |
2=nop ? |
| 32 |
3=exit thread |
| 33 |
|
| 34 |
dsp is updated |