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

/*
 * This is a special header file for compatibility with the Arduino library part
 */


#ifndef ECXX_PLATFORM_NODEMCU_LIBACOMPAT_FLASH_HAL_H
#define ECXX_PLATFORM_NODEMCU_LIBACOMPAT_FLASH_HAL_H


//
// Include the eCxx header file
//
extern "C++" {
    #include "../CoreSys.h"
}


//
// Function prototypes
//

// "SysFlashHAL.cpp"
extern eCxx::int32_t flash_hal_write(eCxx::uint32_t addr, eCxx::uint32_t size, const eCxx::uint8_t* src);
extern eCxx::int32_t flash_hal_erase(eCxx::uint32_t addr, eCxx::uint32_t size);
extern eCxx::int32_t flash_hal_read(eCxx::uint32_t addr, eCxx::uint32_t size, eCxx::uint8_t* dst);


#endif
