diff options
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
|