how to define memory position and assign number....
From: Mark (yodai_at_spamnot.mail.vu)
Date: 03/31/04
- Next message: Joona I Palaste: "Re: [C] whats the difference between "char" and "Char" ?"
- Previous message: Lew Pitcher: "Re: [OT] Re: Quick question"
- Next in thread: Mark A. Odell: "Re: how to define memory position and assign number...."
- Reply:(deleted message) Mark A. Odell: "Re: how to define memory position and assign number...."
- Reply: Guillaume: "Re: how to define memory position and assign number...."
- Reply: Thomas Matthews: "Re: how to define memory position and assign number...."
- Reply: Dan Pop: "Re: how to define memory position and assign number...."
- Reply: Mark: "SOLVED! [Re: how to define memory position and assign number....]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 13:46:49 GMT
Hey all.... I'm trying to do something that should be easy, but my compiler
doesn't allow me... I am trying to define a variable into a certain memory
position and then assign a default value for it....
#define _CLAVE1 ((uint16_t*)0xD000)
//This memory position is located on a flash memory
//of an embedded system and has to have the
//startup value of '99' but it will be changed from time
//to time from inside my program, which writes into the flash...
// so I try to define it's value, but my compiler says
// "_CLAVE1 redefined" if I do this
#define ((uint16_t*)0xD000) 99
//I've tried all sorts of combinations, and still, nothing works...
Any idea on how to define a memory position and it's initial value without
initialising the value from inside the program?
- Next message: Joona I Palaste: "Re: [C] whats the difference between "char" and "Char" ?"
- Previous message: Lew Pitcher: "Re: [OT] Re: Quick question"
- Next in thread: Mark A. Odell: "Re: how to define memory position and assign number...."
- Reply:(deleted message) Mark A. Odell: "Re: how to define memory position and assign number...."
- Reply: Guillaume: "Re: how to define memory position and assign number...."
- Reply: Thomas Matthews: "Re: how to define memory position and assign number...."
- Reply: Dan Pop: "Re: how to define memory position and assign number...."
- Reply: Mark: "SOLVED! [Re: how to define memory position and assign number....]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|