No keywords[1] involved here, but perhaps you want to think about how you would do the exact opposite of what your leesRegister does.
[1] keywords in C are the words defined by the compiler, such as "if", "while", etc.
--
Mats
No keywords[1] involved here, but perhaps you want to think about how you would do the exact opposite of what your leesRegister does.
[1] keywords in C are the words defined by the compiler, such as "if", "while", etc.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
How does a code, that does the exact opposite, look like?is this correct?Code:#define IOBASE 0x4000 void schrijfRegister( unsigned char* ddr ) { ddr[0] = *( ( unsigned char* ) ( IOBASE + 0x10 ) ); ddr[2] = *( ( unsigned char* ) ( IOBASE + 0x12 ) ); ddr[4] = *( ( unsigned char* ) ( IOBASE + 0x14 ) ); }
Last edited by Lettin03; 11-26-2007 at 06:24 AM.
Could you show how the opposite looks like then? I cant figure it out and it's driving me crazy
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Uhm I'm thinking about the same code, but = means the variable becomes. Should I use ==?
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.