correct bug in DMA using
-> copied value was not set on 32 bytes, but on 4 bytes
This commit is contained in:
parent
94b7f6e7c6
commit
45ec1a4a35
|
@ -35,7 +35,7 @@ static const uint32_t size_blocks = size_char/32;
|
|||
**/
|
||||
static int32_t* address=0;
|
||||
|
||||
const int32_t clearval=3000;
|
||||
static const int32_t clearval[4]={3000,3000,3000,3000};
|
||||
|
||||
#define ALIGN 4
|
||||
static void* buffer_malloc(uint_fast16_t size)
|
||||
|
@ -71,7 +71,7 @@ void FE_zbuffer_clear()
|
|||
{ // effacement CPU
|
||||
uint_fast16_t indice;
|
||||
for (indice = 0; indice < size_uint32; indice ++)
|
||||
address[indice] = clearval;
|
||||
address[indice] = clearval[0];
|
||||
}
|
||||
else
|
||||
{ // effacement DMA
|
||||
|
|
Loading…
Reference in New Issue