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

Dependents:   cthunk_example

Revision:
9:d3b51b06ac54
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/thunk.h	Thu Aug 21 17:09:11 2014 +0000
@@ -0,0 +1,29 @@
+/* General C++ Object Thunking classes
+ *
+ * - allows direct callbacks to non-static C++ class functions
+ * - keeps track for the corresponding class instance
+ * - supports an optional context parameter for the called function
+ * - ideally suited for class object receiving interrupts (NVIC_SetVector)
+ *
+ * Copyright (c) 2014 ARM Limited
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+ #ifndef __THUNK_H__
+ #define __THUNK_H__
+ 
+ #include "CThunk.h"
+ #include "CThunkIRQ.h"
+ 
+ #endif/*__THUNK_H__*/
\ No newline at end of file