24 #include <propeller.h> 28 static unsigned int delay;
29 static unsigned int pins;
38 int start(
unsigned int *pinptr)
42 extern unsigned int binary_toggle_dat_start[];
43 return cognew(&binary_toggle_dat_start, pinptr);
50 waitcnt((CLKFREQ/1000000)*t+CNT);
54 int main (
int argc,
char* argv[])
56 printf(
"hello, world!\n");
63 printf (
"New COG# %d started.\n",start(&delay));
64 printf (
"waiting for semaphore to be set by PASM code.\n");
69 printf(
"goodbyte, world!\n");