Skip to content

Commit

Permalink
Fixed MacOS issues with C2k distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
treygerman committed Oct 28, 2014
1 parent 5eb949f commit 2a19f81
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
29 changes: 8 additions & 21 deletions app/src/processing/app/debug/Compiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,9 @@ public boolean compile(Sketch sketch,
Target t = Base.getTarget();
File rtsIncFolder;
File rtsLibFolder;
if(Base.isLinux())
{
rtsIncFolder = new File(new File(new File(t.getFolder(), "..//tools"), "c2000"), "include");
rtsLibFolder = new File(new File(new File(t.getFolder(), "..//tools"), "c2000"), "lib");
}
else
{
rtsIncFolder = new File(new File(new File(t.getFolder(), "..\\tools"), "c2000"), "include");
rtsLibFolder = new File(new File(new File(t.getFolder(), "..\\tools"), "c2000"), "lib");
}

rtsIncFolder = new File(new File(new File(t.getFolder(), "..//tools"), "c2000"), "include");
rtsLibFolder = new File(new File(new File(t.getFolder(), "..//tools"), "c2000"), "lib");
rtsIncPath = rtsIncFolder.getAbsolutePath();
rtsLibPath = rtsLibFolder.getAbsolutePath();
}
Expand Down Expand Up @@ -405,16 +398,10 @@ else if( boardPreferences.get("build.mcu").equals("TMS320F28069"))
baseCommandLinker.add("-l" + boardPreferences.get("build.rts"));
if( boardPreferences.get("build.mcu").equals("TMS320F28027"))
{
if(Base.isLinux())
{
baseCommandLinker.add(corePath + "/f2802x_common/cmd/F28027.cmd");
baseCommandLinker.add(corePath + "/f2802x_headers/cmd/F2802x_Headers_nonBIOS.cmd");
}
else
{
baseCommandLinker.add(corePath + "\\f2802x_common\\cmd\\F28027.cmd");
baseCommandLinker.add(corePath + "\\f2802x_headers\\cmd\\F2802x_Headers_nonBIOS.cmd");
}

baseCommandLinker.add(corePath + "//f2802x_common//cmd//F28027.cmd");
baseCommandLinker.add(corePath + "//f2802x_headers//cmd//F2802x_Headers_nonBIOS.cmd");

}
else if( boardPreferences.get("build.mcu").equals("TMS320F28069"))
{
Expand Down Expand Up @@ -772,7 +759,7 @@ private void execAsynchronouslyShell(List commandList) throws RunnerException {
try {
if(arch == "c2000")
{
if(Base.isLinux())
if(Base.isLinux() || Base.isMacOS())
{
String command_line = "";
for(String str:command)
Expand Down
2 changes: 1 addition & 1 deletion hardware/c2000/cores/c2000/wiring_analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "pins_energia.h"

#ifdef TMS320F28027
#include "F2802x_common/include/F2802x_EPwm_defines.h"
#include "f2802x_common/include/f2802x_epwm_defines.h"
#elif defined(TMS320F28069)
#include "F2806x_common/include/F2806x_EPwm_defines.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion hardware/c2000/cores/c2000/wiring_digital.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void pinMode(uint8_t pin, uint8_t mode)
{
//Digital Pins
volatile uint32_t *dir;
volatile uint32_t *sel;
volatile uint8_t *sel;
volatile uint32_t *pud;
uint8_t port = digitalPinToPort(pin);
dir = portDirRegister(port);
Expand Down

0 comments on commit 2a19f81

Please sign in to comment.