ST / ST_Events-old

Dependents:   HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more

This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.

Note, you must import this library with import name: events!!!

Revision:
9810:06c47a99234c
Parent:
9735:d72b98706fba
Child:
9811:1ab4a497e28d
--- a/tools/toolchains/gcc.py	Wed Feb 08 17:20:42 2017 -0600
+++ b/tools/toolchains/gcc.py	Wed Feb 01 16:22:06 2017 -0600
@@ -258,6 +258,18 @@
         self.cc_verbose("FromELF: %s" % ' '.join(cmd))
         self.default_cmd(cmd)
 
+    @staticmethod
+    def name_mangle(name):
+        return "_Z%i%sv" % (len(name), name)
+
+    @staticmethod
+    def make_ld_define(name, value):
+        return "-D%s=0x%x" % (name, value)
+
+    @staticmethod
+    def redirect_symbol(source, sync, build_dir):
+        return "-Wl,--defsym=%s=%s" % (source, sync)
+
 
 class GCC_ARM(GCC):
     @staticmethod