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


#ifndef ECXX_PLATFORM_NODEMCU_PIN_NAME_H
#define ECXX_PLATFORM_NODEMCU_PIN_NAME_H


namespace eCxx {


//
// Define some predefined pin names for convenience
//
namespace NodeMCU {


//
// For convenience
//
static constexpr uint8_t InvalidPin = Application_Base::InvalidPin;


//
// Include the appropriate standard pin naming header file
//
#define INCLUDE_ECXX_PLATFORM_NODEMCU_PIN_NAME_STD_H


#if defined(ECXX_ESP01)

    #include "PinName_Std_Generic_ESP01.h"


#elif defined(ECXX_ESP12) && defined(ECXX_NODEMCU)

    #include "PinName_Std_NodeMCU.h"


#endif


#ifdef INCLUDE_ECXX_PLATFORM_NODEMCU_PIN_NAME_STD_H
    #error "unsupported ESP8266 variant"
#endif


} // namespace NodeMCU


} // namespace eCxx


#endif
