/*
 * Copyright (C) 2020-2021 Aloysius Indrayanto
 *
 * This file is part of the eCxx library, see LICENSE file for the license details.
 */


#include <eCxx/eCxx.h>

#include "AVR_Common.h"


//
// Pin numbers
//
static constexpr eCxx::uint8_t OWSU_PIN = 2;


//
// Include common source code for BasicOWSUSlave test application
//
#include "../CommonCode/BasicOWSUSlave_Common.h"


//
// The init function
//
void eCxx_user_init()
{
    // Initialize application
    initBasicAVRApp();

    // Initialize one-wire software UART
    initOWSU();
}


//
// The task function
//
void eCxx_user_task()
{
    // Process event and send-receive data
    eCxx_user_task_OWSUSlave_TxRx();
}
