did more changes to interrupt code, but still crashes in networking
This commit is contained in:
10
dma/dma.c
10
dma/dma.c
@@ -665,6 +665,7 @@ void *dma_memcpy(void *dst, void *src, size_t n)
|
||||
|
||||
int dma_init(void)
|
||||
{
|
||||
int i;
|
||||
int res;
|
||||
|
||||
dbg("MCD DMA API initialization: ");
|
||||
@@ -675,6 +676,15 @@ int dma_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* make sure dma_channel array is properly initialized
|
||||
*/
|
||||
for (i = 0; i < NCHANNELS; i++)
|
||||
{
|
||||
dma_channel[i].req = -1;
|
||||
dma_channel[i].handler = NULL;
|
||||
}
|
||||
|
||||
// test
|
||||
dma_memcpy((void *) 0x10000, (void *) 0x03e00000, 0x00100000); /* copy one megabyte of flash to RAM */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user