Blink two LEDs, one from a "standard" cog invoking instructions from HUB RAM, and another cog invoking instruction natively from COG RAM
cmake_minimum_required(VERSION 3.3)
set(MODEL cog)
project(Cogc_Demo CXX COGCXX)
create_simple_executable(${PROJECT_NAME}
Cogc_Demo.cpp
blinky.cogcpp)
while (1) {
waitcnt(MILLISECOND * 100 + CNT);
}
}
extern unsigned int _load_start_blinky_cog[];
cognew(_load_start_blinky_cog, NULL);
while (1) {
waitcnt(MILLISECOND * 100 + CNT);
}
}