Andes Workshop

It is currently Thu Mar 28, 2024 9:50 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to place a variable at a given absolute address in memor
PostPosted: Mon Feb 17, 2014 7:01 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
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;


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group