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:
7615:69407c9f45ec
Parent:
7551:7069d4b554d9
Parent:
7614:23701886e451
Child:
7987:0474ba76d193
Child:
7930:9daa4c328198
Child:
7907:36a6ad9af387
--- a/tools/toolchains/gcc.py	Fri Aug 26 12:18:33 2016 -0500
+++ b/tools/toolchains/gcc.py	Fri Aug 26 13:10:48 2016 -0500
@@ -16,6 +16,7 @@
 """
 import re
 from os.path import join, basename, splitext, dirname, exists
+from distutils.spawn import find_executable
 
 from tools.toolchains import mbedToolchain, TOOLCHAIN_PATHS
 from tools.hooks import hook_tool
@@ -110,6 +111,11 @@
         self.ar = join(tool_path, "arm-none-eabi-ar")
         self.elf2bin = join(tool_path, "arm-none-eabi-objcopy")
 
+        if tool_path:
+            self.toolchain_path = main_cc
+        else:
+            self.toolchain_path = find_executable("arm-none-eabi-gcc") or ''
+
     def parse_dependencies(self, dep_path):
         dependencies = []
         buff = open(dep_path).readlines()