J'ai un problème, le code suivant plante. Il devrait remplir l'écran de violet :
- Code: Tout sélectionner
/* Keep these headers */
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <tice.h>
/* Standard headers - it's recommended to leave them included */
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* CE Keypad C Library */
#include <lib/ce/keypadc.h>
#define lcd_size 320*240*2
#define lcd_buf (uint16_t*)0xD40000
void main(void) {
uint8_t *buffer;
buffer=malloc(10000);
if(!buffer) return;
memset_fast(buffer,0xB0,lcd_size);
memcpy(lcd_buf,buffer,lcd_size);
prgm_CleanUp();
if(buffer) {free(buffer);}
while(kb_ScanGroup(kb_group_1) != kb_2nd) ; //wait for a key
}