16 static const uint16_t COGS = 8;
17 static const uint16_t STACK_SIZE = 128;
18 static const unsigned int DELAY_IN_SECONDS = 2;
19 static const uint32_t WAIT_TIME = DELAY_IN_SECONDS * SECOND;
30 const Port::Mask pinMaskOfCogId = (Port::Mask) (1 << (
cogid() + 16));
33 nextCnt = WAIT_TIME +
CNT;
36 Pin::flash_pin(pinMaskOfCogId, 3);
39 nextCnt =
waitcnt2(nextCnt, WAIT_TIME);
51 int main(
int argc,
char *argv[]) {
52 const uint32_t stacks[COGS][STACK_SIZE] = {{0}};
67 Port::flash_port(PropWare::BYTE_2, PropWare::BYTE_2);
69 for (uint8_t n = 1; n < COGS; n++)
70 Runnable::invoke(syncedPrinterCogs[n]);
72 syncedPrinterCogs[0].
run();