Andes Workshop
http://forum.andestech.com/

How to place a variable at a given absolute address in memor
http://forum.andestech.com/viewtopic.php?f=25&t=802
Page 1 of 1

Author:  cindy [ Mon Feb 17, 2014 7:01 pm ]
Post subject:  How to place a variable at a given absolute address in memor

This is a good article

How to place a variable at a given absolute address in memory (with GCC)
http://stackoverflow.com/questions/4067 ... y-with-gcc

Code:
#define IOPIN0         (*((volatile unsigned long *) 0xE0028000))
IOPIN0 = 0x4;

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/