mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
kinetis: edma compile fix
Refactoring didn't add the required spinlock Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
This commit is contained in:
committed by
Xiang Xiao
parent
e6a0c6c377
commit
e46c2348ce
@@ -144,6 +144,7 @@ struct kinetis_edma_s
|
|||||||
/* This array describes each DMA channel */
|
/* This array describes each DMA channel */
|
||||||
|
|
||||||
struct kinetis_dmach_s dmach[KINETIS_EDMA_NCHANNELS];
|
struct kinetis_dmach_s dmach[KINETIS_EDMA_NCHANNELS];
|
||||||
|
spinlock_t lock;
|
||||||
};
|
};
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -223,8 +224,6 @@ static struct kinetis_edmatcd_s *kinetis_tcd_alloc(void)
|
|||||||
#if CONFIG_KINETIS_EDMA_NTCD > 0
|
#if CONFIG_KINETIS_EDMA_NTCD > 0
|
||||||
static void kinetis_tcd_free_nolock(struct kinetis_edmatcd_s *tcd)
|
static void kinetis_tcd_free_nolock(struct kinetis_edmatcd_s *tcd)
|
||||||
{
|
{
|
||||||
irqstate_t flags;
|
|
||||||
|
|
||||||
/* Add the the TCD to the end of the free list and post the 'dsem',
|
/* Add the the TCD to the end of the free list and post the 'dsem',
|
||||||
* possibly waking up another thread that might be waiting for
|
* possibly waking up another thread that might be waiting for
|
||||||
* a TCD.
|
* a TCD.
|
||||||
|
|||||||
Reference in New Issue
Block a user