TODOPIC
Microcontroladores PIC => Lenguaje C para microcontroladores PIC => Mensaje iniciado por: elgarbe en 04 de Diciembre de 2013, 21:13:19
-
estoy pasando este código
http://www.ccsinfo.com/forum/viewtopic.php?p=179610
a un LPC1769 (ARM) y tengo problemas en la declaracion de unas variables como "register signed long"
Que significa register????
Saludos y gracias!
-
En CCS register es un calificador que no tiene uso, asi que donde te aparece en el codigo, lo puedes obviar sin ningun problema :mrgreen:
Para mayor informacion puedes leer aqui (http://ee.hawaii.edu/~tep/EE160/Book/chap14/subsection2.1.1.2.html)
-
Type-Qualifier
static
Variable is globally active and initialized to 0. Only accessible from this compilation unit.
auto
Variable exists only while the procedure is active. This is the default and AUTO need not be used.
double
Is a reserved word but is not a supported data type.
extern
External variable used with multiple compilation units. No storage is allocated. Is used to make otherwise out of scope data accessible. there must be a non-extern definition at the global level in some compilation unit.
register
Is allowed as a qualifier however, has no effect.
_ fixed(n)
Creates a fixed point decimal number where n is how many decimal places to implement.
unsigned
Data is always positive. This is the default data type if not specified.
signed
Data can be negative or positive.
volatile
Tells the compiler optimizer that this variable can be changed at any point during execution.
const
Data is read-only. Depending on compiler configuration, this qualifier may just make the data read-only -AND/OR- it may place the data into program memory to save space. (see #DEVICE const=)
rom
Forces data into program memory. Pointers may be used to this data but they can not be mixed with RAM pointers.
void
Built-in basic type. Type void is used to indicate no specific type in places where a type is required.
readonly
Writes to this variable should be dis-allowed
Exacto, eso es de la ayuda de CCS...
-
Muchas gracias gente!!!
Sds.