Shop OBEX P1 Docs P2 Docs Learn Events
Simpleide and standard libraries — Parallax Forums

Simpleide and standard libraries

Ray0665Ray0665 Posts: 231
edited 2015-01-12 19:13 in Propeller 1
What is the best way to make simpleide see linux (raspberry pi) standard libraries?

I have a C program that #includes <termios.h> which the compiler does not see
but I know it is in /user/include.

Comments

  • Ray0665Ray0665 Posts: 231
    edited 2015-01-12 17:23
    Hmm the lights just went on... (Ive been on the linux side too long....)
    So I am writing a simple test program in C that will just echo a character received back out on the terminal
    and Ive been thinking in linux terms when I should be thinking in propeller terms
    If I read between the lines of your reply correctly I just need to open the full duplex serial (C) object giving it the correct pins and ports and from
    there it is just a matter of tx ( rx) to accomplish my goal.... easy peasy no need for all the termios junk

    Thank you..
  • DavidZemonDavidZemon Posts: 2,973
    edited 2015-01-12 19:13
    Welcome to the world of C/C++ on the Propeller!

    Glad the lights clicked on finally :). It is sad that you can't just pull in all the normal Linux stuff... sorry :(

    Good news is, you have a choice of "standard" libraries here. Parallax has provided their own interpretation in PropGCC as well as numerous add-ons (Simple Library). Another forum member, SRLM, has provided his own set of tools called libpropeller, many of which support unique devices that are not found in Simple. And, finally, I have my own set called PropWare (along with the C++ code, PropWare also contains a complete build system based on CMake, but I haven't provided any ARM-based images for your Raspberry Pi yet).

    I am not at all familiar with termios.h, but both SRLM's interpretation of serial I/O and mine are very different from Parallax's standard C and Simple versions, so I'd encourage you to take a look at the signatures and pick one that fits your fancy.

    David
Sign In or Register to comment.