16 #include <propeller.h> 17 #include "adcACpropab.h" 19 #define clockfreq (*(int*) 0) 22 static _COGMEM
int* addr;
23 static _COGMEM
int* ptr;
24 static _COGMEM chNow, chThen;
25 static _COGMEM dout, din, clk, cs, mask;
26 static _COGMEM ndout, ndin, nclk, ncs;
27 static _COGMEM val, i, doutval, dinval, state;
33 dout = (1 << mbox->dout);
36 din = (1 << mbox->din);
39 clk = (1 << mbox->clk);
61 if((mask >> chNow) & 1)
65 for(i = 15; i >= 0; i--)
69 state = (chNow >> i) & 1;
81 state = state >> doutval;
structure for exchanging information with cogc program running in other cog.