//#DOC Main, program entry and main loop
#include "main.h"
#include <otSerial.h>
#include <otTimer.h>
#include <otPrintfLite.h>
#include <otMalloc.h>

extern "C" void Dhryston();

void setup()
{
    UartEnableSignals(UART0);
    UartSetBaud(UART0, 115200);
    setStdout(UART0);   // printf output is now directed on UART0
    TimerSetAsCounter(TIMER0);
    TimerEnable(TIMER0, true);
    _initMalloc();
}

void loop()
{
    DelayMs(2000);
    printf("Test started ...\n");
    Dhryston();
    DelayMs(200);
    HIBE;   // Hibernate state
}