Shop OBEX P1 Docs P2 Docs Learn Events
C: simpleterm_open() and simpleterm_close()... — Parallax Forums

C: simpleterm_open() and simpleterm_close()...

idbruceidbruce Posts: 6,197
edited 2015-03-28 06:27 in Propeller 1
Where to begin...

With the exception of http://learn.parallax.com/multicore-approaches/print-different-core, practically no documentation exists for these two functions. While it is nice to see a simple demonstration, this certainly does not help in complex situations.

For example, let me see a working demonstration of a secondary cog passing ownership of the terminal back to the primary cog.

Bruce

Comments

  • LeonLeon Posts: 7,620
    edited 2015-03-28 05:28
    I would have thought that they would be described in the SimpleIDE Help. In Simple Library Reference, simpletools.h File Reference has what looks like a full description of all the functions but simpleterm_open and simpleterm_close aren't included. It looks like they have been omitted by mistake.
  • idbruceidbruce Posts: 6,197
    edited 2015-03-28 05:56
    Thanks for the response Leon.

    Yea these functions could certainly use a little more documentation.

    I was having problems with these functions in the Teacup port, so I decided to write a test program to try and pass ownership back to the primary cog, but had no luck with that endeavor.

    I have attached the project.... Perhaps my logic isn't correct.

    Bruce
  • idbruceidbruce Posts: 6,197
    edited 2015-03-28 06:18
    Okay.... I increased the stack size in this sample and it works.... However, there is an extra unknown character(bug).
  • LeonLeon Posts: 7,620
    edited 2015-03-28 06:27
    Hopefully, someone from Parallax will notice this and add them to that function listing; assuming that is where they should be documented.
Sign In or Register to comment.