General thunking class to allow C-style callbacks to C++ class members - including optional parameters.

Dependents:   cthunk_example

Revision:
6:ef94278e2225
Parent:
5:df90d98292a6
Child:
7:289963aeee06
--- a/CThunk.h	Wed Aug 20 12:18:33 2014 +0000
+++ b/CThunk.h	Wed Aug 20 13:36:46 2014 +0000
@@ -23,7 +23,7 @@
 #ifndef __CTHUNK_H__
 #define __CTHUNK_H__
 
-#ifdef __CORTEX_M3
+#if defined(__CORTEX_M3) || defined(__thumb2__)
 #  define CTHUNK_OPCODE 0x8007E89F;
 #  define CTHUNK_ADDRESS 1
 #else