targets/LPC/__init__.py
author laurent
Wed, 02 Jun 2010 16:52:58 +0200
changeset 541 4d9ca788205e
parent 538 ad05f27222cd
child 540 bacc1314fee6
permissions -rwxr-xr-x
Adding compile button when unconnected
425
f390e9fdd2cf Add new target (Makefile)
greg
parents:
diff changeset
     1
from .. import toolchain_makefile
f390e9fdd2cf Add new target (Makefile)
greg
parents:
diff changeset
     2
489
e3adb9f63171 Name error in LPC target fixed
laurent
parents: 478
diff changeset
     3
class LPC_target(toolchain_makefile):
425
f390e9fdd2cf Add new target (Makefile)
greg
parents:
diff changeset
     4
    extension = ".ld"
f390e9fdd2cf Add new target (Makefile)
greg
parents:
diff changeset
     5
    DebugEnabled = False
538
ad05f27222cd Moved LPC specific code from toolchain_makefile into LPC target, added FROM_BEREMIZ variable to tell LPC's makefile it is invoked from here.
edouard
parents: 508
diff changeset
     6
ad05f27222cd Moved LPC specific code from toolchain_makefile into LPC target, added FROM_BEREMIZ variable to tell LPC's makefile it is invoked from here.
edouard
parents: 508
diff changeset
     7
    def GetBinaryCode(self):
ad05f27222cd Moved LPC specific code from toolchain_makefile into LPC target, added FROM_BEREMIZ variable to tell LPC's makefile it is invoked from here.
edouard
parents: 508
diff changeset
     8
        try:
ad05f27222cd Moved LPC specific code from toolchain_makefile into LPC target, added FROM_BEREMIZ variable to tell LPC's makefile it is invoked from here.
edouard
parents: 508
diff changeset
     9
            return open(os.path.join(self.buildpath, "ArmPLC_rom.bin"), "rb").read()
ad05f27222cd Moved LPC specific code from toolchain_makefile into LPC target, added FROM_BEREMIZ variable to tell LPC's makefile it is invoked from here.
edouard
parents: 508
diff changeset
    10
        except Exception, e:
ad05f27222cd Moved LPC specific code from toolchain_makefile into LPC target, added FROM_BEREMIZ variable to tell LPC's makefile it is invoked from here.
edouard
parents: 508
diff changeset
    11
            return None