Simple mbed library with macros

Dependents:   SimpleTimer SimpleUART SimpleTimer Stoppuhr1

Revision:
15:66150de7876b
Parent:
14:23c6d41cb377
Child:
17:36a0cb1929c2
--- a/mbed_globals.h	Sat Nov 13 23:20:15 2010 +0000
+++ b/mbed_globals.h	Sun Nov 14 22:46:26 2010 +0000
@@ -1,5 +1,5 @@
 /*
-* Copyright or © or Copr. 2010, Thomas SOETE
+* Copyright or © or Copr. 2010, Thomas SOETE
 * 
 * Author e-mail: thomas@soete.org
 * Library website : http://mbed.org/users/Alkorin/libraries/SimpleLib/
@@ -54,7 +54,6 @@
 // Macro tools
 #define TOKENPASTE(x, y) x ## y
 #define TOKENPASTE2(x, y) TOKENPASTE(x, y)
-#define TOKENPASTE3(x, y, z) TOKENPASTE(TOKENPASTE(x, y), z)
 
 // Extern C
 #ifdef __cplusplus
@@ -63,5 +62,11 @@
     #define EXTERN_C
 #endif
 
+/** Constants **/
+// Peripheral Clock Selection register bit values (Table 42, p57)
+#define CCLK4   0U
+#define CCLK    1U
+#define CCLK2   2U
+#define CCLK8   3U
 
 #endif
\ No newline at end of file