diff options
author | sicarius <devnull@localhost> | 2007-02-13 20:10:02 +0100 |
---|---|---|
committer | sicarius <devnull@localhost> | 2007-02-13 20:10:02 +0100 |
commit | 5c33efe58da97d1277f8615ef750c0695497c0b9 (patch) | |
tree | 47cc611e70ed13f2ea7a9b0228794dc74d9b1680 /source/AVR_Studio/Soccer/global.h | |
parent | 54a7ea32d4c79b5ca56b66a5dac28690e928740e (diff) | |
download | rc2007-soccer-5c33efe58da97d1277f8615ef750c0695497c0b9.tar rc2007-soccer-5c33efe58da97d1277f8615ef750c0695497c0b9.zip |
Code-Work @ lowlevel
Diffstat (limited to 'source/AVR_Studio/Soccer/global.h')
-rwxr-xr-x | source/AVR_Studio/Soccer/global.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/source/AVR_Studio/Soccer/global.h b/source/AVR_Studio/Soccer/global.h index 3f57a8c..4b9339a 100755 --- a/source/AVR_Studio/Soccer/global.h +++ b/source/AVR_Studio/Soccer/global.h @@ -13,12 +13,29 @@ inline void sleep(int sec) }
};
+inline void msleep(int msec)
+{
+ for (int s=0; s<msec; s++) {
+ for (long int i=0; i<1405; i++) {
+ asm volatile("nop");
+ }
+ }
+};
+
void *operator new(size_t sz);
void operator delete(void *p);
+// Typendefinitionen für den CT-Bot-Code
+typedef unsigned char uint8; /*!< vorzeichenlose 8-Bit-Zahl */
+typedef unsigned int word; /*!< vorzeichenlose 16-Bit-Zahl */
+typedef signed char int8; /*!< vorzeichenbehaftete 8-Bit-Zahl */
+typedef short int int16; /*!< vorzeichenbehaftete 16-Bit-Zahl */
+typedef unsigned long uint32; /*!< vorzeichenlose 32-Bit-Zahl */
+typedef signed long int32; /*!< vorzeichenbehaftete 32-Bit-Zahl */
-
+#define uint16 word /*!< Int mit 16 Bit */
+
/* defines for compatibility */
#ifndef cbi
|