zeldaNotes.txt 879 B

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