Help for : define a fixed address for a constant value in Cosmic C
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2007-01-16 8:26 PM
Posted on January 17, 2007 at 05:26
Help for : define a fixed address for a constant value in Cosmic C
Labels:
- Labels:
-
Legacy products
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2007-01-16 5:25 PM
Posted on January 17, 2007 at 02:25
Dear Sir,
I am using ST72F264 as mcu. and using cosmic C. I have created two .h files for declaring variables : public and external Var_ext.h: ************ extern const unsigned char var1;Var_pub.h: ************ const unsigned char var1 = 'A';and i want to fix the location of variable var1 at say ,0xe010; How to achieve this in Cosmic C ?? I can't use var1 @0xE010 ; as need to declare it constant. Pls help regards, Arup [ This message was edited by: arup on 17-01-2007 08:21 ]Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2007-01-16 8:26 PM
Posted on January 17, 2007 at 05:26Regards, Luca (Cosmic)
