Salut tous le monde,
voici un code avec define que j'ai pas pu comprendre la structure,
Merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 typedef struct { vu32 PC0; vu32 PC1; vu32 PC2; vu32 PD; vu32 PM; } GPIO_TypeDef; #define PERIPH_BASE 0xFFFF0000 #define GPIO0_BASE (PERIPH_BASE + 0xE400) #define GPIO0 ((GPIO_TypeDef *) GPIO0_BASE) //j'ai pas compris ceci
Partager