The OP
Published on 2018-8-6 12:49
Only look at the author
This post is from Altera SoC
Latest reply
4 should be added here. Because the defined register is 32bit, that is, 4byte, so the address of R1 is +4, the address of R2 is +8, and so on. Remember last time I said that direct pointer access is very convenient: unsigned long * p =(unsigned long * )(virtual_base + ( ( unsigned long )( ALT_LWFPGASLVS_OFST + PIO_LED_BASE) & ( unsigned long)( HW_REGS_MASK ) ) ); Use p[0] and p[1] to read and write directly, the system will calculate it by itself.
Details
Published on 2018-8-9 17:19
| ||
|
||
2
Published on 2018-8-7 09:15
Only look at the author
This post is from Altera SoC
| ||
|
||
|
This post is from Altera SoC
| ||
|
||
|
4
Published on 2018-8-7 12:49
Only look at the author
This post is from Altera SoC
Comments | ||
|
||
|
This post is from Altera SoC
| ||
|
||
|
6
Published on 2018-8-9 17:19
Only look at the author
This post is from Altera SoC
| ||
|
||
|
This post is from Altera SoC
| ||
|
||
|
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190