PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
#include <stdio.h>
#include <propeller.h>
Go to the source code of this file.
Functions | |
int | start (unsigned int *pinptr) |
void | usleep (int t) |
int | main (int argc, char *argv[]) |
Variables | |
static unsigned int | delay |
static unsigned int | pins |
static int | loop_cnt |
static int | pasm_done |
This program demonstrates starting a PASM COG and being able to pass parameters from a C program to a PASM program and from PASM back to C.
C to PASM Mailbox example
WARNING: This code makes all IO pins except 30/31 toggle HIGH/LOW. Check if this is OK for the board you are using.
to use: from directory containing source make clean make propeller-load -pn -t -r toggle.elf (where n is port #)
Copyright (c) 2011, Steve Denson, Rick Post MIT Licensed - terms of use below.
Definition in file toggle.c.