/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef SW_DEVICE_LIB_EFLASH_H_
#define SW_DEVICE_LIB_EFLASH_H_

#include <stdint.h>

#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/dif/dif_base.h"

#define EFLASH_PAGE_SIZE (256)

#if defined(__cplusplus)
extern "C" {
#endif

OT_WARN_UNUSED_RESULT dif_result_t eflash_init(void);
OT_WARN_UNUSED_RESULT dif_result_t eflash_chip_erase(void);
OT_WARN_UNUSED_RESULT dif_result_t eflash_write_page(const void* dst,
                                                     uint8_t* src);

#if defined(__cplusplus)
}
#endif

#endif  // SW_DEVICE_LIB_EFLASH_H_
