1: int32_t AG903_SSPMgrDisableDmaMode(
AG903_SSPMgrHandle* handle)
2: {
3: int32_t retval =
AG903_ENONE;
4: int32_t result;
5: _Bool idle;
6: uint8_t ch;
7:
8: result = SSPMgr_CheckHandle(handle, &ch);
9:
if(
AG903_ENONE != result) {
10:
return -
AG903_EINVAL;
11: }
12: idle = SSPMgr_CheckIdle(ch);
13:
if(
true != idle) {
14:
return -
AG903_EBUSY;
15: }
16:
17: SspChStat[ch].dma = 0;
18:
19:
return retval;
20: }