mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
7 files changed
+1677
-5
No files matched your search
@@ -91,15 +91,15 @@ static void SAI_TxEDMACallback(edma_handle_t *handle, void *userData, bool done,
|
||||
sai_edma_handle_t *saiHandle = privHandle->handle;
|
||||
|
||||
/* If finished a blcok, call the callback function */
|
||||
memset(&saiHandle->saiQueue[saiHandle->queueDriver], 0, sizeof(sai_transfer_t));
|
||||
saiHandle->queueDriver = (saiHandle->queueDriver + 1) % SAI_XFER_QUEUE_SIZE;
|
||||
saiHandle->saiQueue[saiHandle->queueDriver].dataSize = 0;
|
||||
if (saiHandle->callback)
|
||||
{
|
||||
(saiHandle->callback)(privHandle->base, saiHandle, kStatus_SAI_TxIdle, saiHandle->userData);
|
||||
}
|
||||
saiHandle->queueDriver = (saiHandle->queueDriver + 1) % SAI_XFER_QUEUE_SIZE;
|
||||
|
||||
/* If all data finished, just stop the transfer */
|
||||
if (saiHandle->saiQueue[saiHandle->queueDriver].data == NULL)
|
||||
if (saiHandle->saiQueue[saiHandle->queueDriver].dataSize == 0)
|
||||
{
|
||||
/* Disable DMA enable bit */
|
||||
SAI_TxEnableDMA(privHandle->base, kSAI_FIFORequestDMAEnable, false);
|
||||
@@ -264,7 +264,7 @@ status_t SAI_TransferSendEDMA(I2S_Type *base, sai_edma_handle_t *handle, sai_tra
|
||||
return kStatus_InvalidArgument;
|
||||
}
|
||||
|
||||
if (handle->saiQueue[handle->queueUser].data)
|
||||
if (handle->saiQueue[handle->queueUser].dataSize)
|
||||
{
|
||||
return kStatus_SAI_QueueFull;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import rtconfig
|
||||
if os.getenv('RTT_ROOT'):
|
||||
RTT_ROOT = os.getenv('RTT_ROOT')
|
||||
else:
|
||||
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
|
||||
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
|
||||
|
||||
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||
from building import *
|
||||
|
||||
@@ -62,6 +62,9 @@ if GetDepend('BOARD_RT1050_EVK') or GetDepend('BOARD_RT1050_SeeedStudio'):
|
||||
src += ['drv_eth.c', 'fsl_phy.c']
|
||||
CPPDEFINES += ['FSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE']
|
||||
|
||||
if GetDepend('RT_USING_AUDIO'):
|
||||
src += ['drv_codec.c', 'fsl_wm8960.c']
|
||||
|
||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
||||
|
||||
Return('group')
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user