#define GPIO_PCON0 (0x1ee80/2) //w/r [15:0]; 16'b0; //gpio 0x1_ee80

来源:百度知道 编辑:UC知道 时间:2024/09/22 05:46:54
#define GPIO_PCON0 (0x1ee80/2) //w/r [15:0]; 16'b0; //gpio 0x1_ee80
#define GPIO_PDAT0 (0x1ee88/2) //w/r [7:0]; 8'b0;
#define GPIO_PCON1 (0x1ee90/2) //w/r [15:0]; 16'b0;
#define GPIO_PDAT1 (0x1ee98/2) //w/r [7:0]; 8'b0;
#define GPIO_PCON2A (0x1eea0/2) //w/r [15:0]; 16'b0;
#define GPIO_PCON2B (0x1eea4/2) //w/r [15:0]; 16'b0;
#define GPIO_PDAT2 (0x1eea8/2) //w/r [15:0]; 16'b0;
#define GPIO_PCON3 (0x1eeb0/2) //w/r [15:0]; 16'b0;
#define GPIO_PDAT3 (0x1eeb8/2) //w/r [7:0]; 8'b0;
麻烦高手解释一下,这每句的意思。谢谢
问题:
1:GPIO_PCON0,GPIO_PDAT0,GPIO_PCON1等这些是什么意思?
2:(0x1ee90/2),(0x1eeb0/2)等为什么要除于2呢?
3://w/r [15:0]; 16'b0;这些又是代表什么呢?

1:GPIO_PCON0,GPIO_PDAT0,GPIO_PCON1等这些是什么意思?
这些是宏名~~~~
在程序中出现的这些东东将被替换为后面的值(如(0x1ee80/2))

2:(0x1ee90/2),(0x1eeb0/2)等为什么要除于2呢?
除以2跟程序算法有关,具体为什么得看code(或者算法)..

3://w/r [15:0]; 16'b0;这些又是代表什么呢?
注释,C++中"//"表示注释,就是解释下下喽~~

学习