mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 20:27:53 +00: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:
parent
e6a0c6c377
commit
e46c2348ce
1 changed files with 1 additions and 2 deletions
|
|
@ -144,6 +144,7 @@ struct kinetis_edma_s
|
|||
/* This array describes each DMA channel */
|
||||
|
||||
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
|
||||
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',
|
||||
* possibly waking up another thread that might be waiting for
|
||||
* a TCD.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue