EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

how to define a memory position variable and give it a value

Started by Mark March 31, 2004
>I've already had Mark A. Odell answer this question saying this can't be >done portably. He also sugested me coming to this group with the question
>#define _CLAVE1 ((uint16_t*)0xD000)
if you want to pretend that _CLAVE1 is a uint_16 located at D000, instead of a pointer, then this should be
>#define _CLAVE1 (*(uint16_t*)0xD000)
now you can write, e.g., _CLAVE += 17 -- mac the na�f

The 2024 Embedded Online Conference