This example demonstrates basic kernel setup with two threads.
extern "C" {
void __cxa_pure_virtual(void) {}
void DebugPrint(const char* szString_);
}
namespace
{
void AppMain(void* unused_);
void IdleMain(void* unused_);
void AppMain(void* unused_)
{
while (1) {
}
}
void IdleMain(void* unused_)
{
while (1) {
}
}
}
int main(void)
{
clAppThread.Init(awAppStack, sizeof(awAppStack), 1, AppMain, 0);
clIdleThread.Init(awIdleStack, sizeof(awIdleStack), 0, IdleMain, 0);
clAppThread.Start();
clIdleThread.Start();
return 0;
}