Bonjour,
je vous donne mon code (très simple) :
où "system.h" contientCode:
1
2
3
4
5
6
7
8
9
10
11 #include <stdio.h> #include "system.h" int i=0; int main() { for (i=0; i<8; i++) *(NEW_SDRAM_CONTROLLER_0_BASE+i)=i; return 0; }
et la compilation me dit :Code:#define NEW_SDRAM_CONTROLLER_0_BASE 0x2000000
C'est quoi le problème ?Citation:
error: invalid type argument of unary '*' (have 'int')
Merci.