Shop OBEX P1 Docs P2 Docs Learn Events
Including Library? — Parallax Forums

Including Library?

John A. ZoidbergJohn A. Zoidberg Posts: 514
edited 2010-10-09 11:42 in Propeller 1
Hello there,

A few hours ago I just explored SPIN while I'm deploying some LCD and 7-segments on my very own training board.

Right now I had tested the parallel processing by multiplexing in one cog, and another complex work in another cog. (It worked!)

The thing is now I'm incorporating an SPI driver (ASM edition) inside another cog, and there is one driver program by Beau Schwabe.

However, I'm wondering, since it is not C, is there a method to include the methods/routines/functions from the driver program to my system?

If in C, I could use #include <spi.h> and use the intended functions straight away.

Thanks. :D

Comments

  • jazzedjazzed Posts: 11,803
    edited 2010-10-09 11:42
    The #include directive could offer improvements for some things such as PASM libraries, but just using the OBJ syntax is all most people need. There are only a few instances where #include "pasmfragment" would make a big difference for me. Using object.method and object#constant is flexible. The less you "think C" with Propeller, the better off you'll be with it unless of course you're using ICC, Catalina, or ZOG.

    Trying to help .... Cheers.
Sign In or Register to comment.