Cleanup teletype dep on avr. #40
Conversation
|
Why not just pass |
Because I'm an XCode newbie and I'm just trying to get it to stop yelling at me? ;) I'm guessing the non sim case breaks otherwise? If that's the case, I'd expect that include to happen in |
|
Popping up, I'm curious why the include is there but can certainly work around it with |
|
As far as I know the include is used to making debugging over the serial port easier. It won't be broken as normally there aren't any debug statements uncommented. (And I deleted a lot when I went through the code.) It's not a particularly clean solution, but I think if you want to remove that include, you'll need to make the rest of it consistent (i.e. deal with Just incase you haven't got it working yet: http://stackoverflow.com/questions/26928622/add-preprocessor-macro-to-a-target-in-xcode-6 |
|
yeah, we need that in there. a SIM define should solve your issues. |
|
Thanks guys. @tehn: is this just as Sam suggests in order to make debugging on the device work if you uncomment debug statements? Or are other bits flipped/defined by the include too? Just trying to understand how it all hangs together! |
|
the include simply redefines the print_dbg() functions so they get directed so the idea is you can use the same debug prints for either the SIM or the theoretically if you were making a max external you could do a define so On Sat, Apr 23, 2016 at 9:33 AM, Phil Quitslund notifications@github.com
|
|
Thanks @tehn. I'll stick to the |
Can we do without this include?
print_funcs.hpulls in a bunch of avr bits that are not needed/wanted when running teletype off the device.cc @samdoshi @tehn