我想在GPIO中断中调用使能EMDA3进行数据传输的API,然后debug时候报错:
这是为什么呢?应该怎么解决呢?
user6503527:
上个图出错了,重新传一下报错的图片:
,
Nancy Wang:
建议看一下sys/bios手册,看报错与GateMutex有关,可以去看一下GateMutex的使用限制。
www.ti.com/…/spruex3v.pdf
GateMutex uses a binary Semaphore as the locking mechanism. Each GateMutex instance has its own
unique Semaphore. Because this gate can potentially block, it should not be used a Swi or Hwi thread,
and should only be used by Task threads.
另外为什么要在GPIO中断中调用使能EMDA3呢?
,
user6503527:
嗯,在GPIO中断中使能EDMA3传输是想,用一个GPIO中断事件完成EDMA3的读操作和写操作,如果把EDMA3配置成GPIO事件触发的话,需要两个个独立的事件才能完成读操作和写操作!