rename some static variables
This commit is contained in:
parent
891921fd39
commit
4ccf324e48
|
@ -9,26 +9,24 @@
|
|||
#include <gint/dma.h>
|
||||
#include <gint/hardware.h>
|
||||
|
||||
/* size_uint32
|
||||
taille du zbuffer exprimée en uint32_t
|
||||
utile pour l'effacement du zbuffer sur sh3 */
|
||||
static const uint32_t size_int32 = FE_ZB_SIZE_X*FE_ZB_SIZE_Y;
|
||||
|
||||
|
||||
|
||||
/** size_uint32
|
||||
* taille du zbuffer exprimée en uint32_t
|
||||
* utile pour l'effacement du zbuffer sur sh3
|
||||
**/
|
||||
static const uint32_t size_uint32 = FE_ZB_SIZE_X*FE_ZB_SIZE_Y;
|
||||
|
||||
/** size_char
|
||||
* taille du zbuffer exprimée en octets
|
||||
* utile pour malloc
|
||||
**/
|
||||
static const uint32_t size_char = size_uint32*sizeof(int32_t);
|
||||
/* size_char
|
||||
taille du zbuffer exprimée en octets
|
||||
utile pour malloc */
|
||||
static const uint32_t size_char = size_int32*sizeof(int32_t);
|
||||
|
||||
/* size_char
|
||||
taille du zbuffer exprimée en octets
|
||||
utile pour le DMA */
|
||||
static const uint32_t size_blocks = size_char/32;
|
||||
|
||||
/* en attente de reponse
|
||||
static int32_t address[size_uint32];
|
||||
*/
|
||||
|
||||
/** address
|
||||
* addresse du zbuffer
|
||||
|
@ -65,13 +63,13 @@ void FE_zbuffer_clear()
|
|||
while (1==1)
|
||||
getkey();
|
||||
}
|
||||
clearval[0]=3000; clearval[1]=3000; clearval[2]=3000; clearval[3]=3000; clearval[4]=3000; clearval[5]=3000; clearval[6]=3000; clearval[7]=3000; clearval[0]=3000;
|
||||
clearval[0]=3000; clearval[1]=3000; clearval[2]=3000; clearval[3]=3000; clearval[4]=3000; clearval[5]=3000; clearval[6]=3000; clearval[7]=3000;
|
||||
}
|
||||
// TODO déterminer le type d'effacement
|
||||
if (isSH3())
|
||||
{ // effacement CPU
|
||||
uint_fast16_t indice;
|
||||
for (indice = 0; indice < size_uint32; indice ++)
|
||||
for (indice = 0; indice < size_int32; indice ++)
|
||||
address[indice] = clearval[0];
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue