From 2e13c372f1419f08dab7797b244681f889dd9bcf Mon Sep 17 00:00:00 2001 From: Michal Hanus Date: Mon, 14 Apr 2025 22:04:32 +0200 Subject: nrfdemo --- .../builddk/tfm/api_ns/platform/common/dummy_otp.c | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 nrfdemo/builddk/tfm/api_ns/platform/common/dummy_otp.c (limited to 'nrfdemo/builddk/tfm/api_ns/platform/common/dummy_otp.c') diff --git a/nrfdemo/builddk/tfm/api_ns/platform/common/dummy_otp.c b/nrfdemo/builddk/tfm/api_ns/platform/common/dummy_otp.c new file mode 100644 index 0000000..e255b52 --- /dev/null +++ b/nrfdemo/builddk/tfm/api_ns/platform/common/dummy_otp.c @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2022 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause + */ + +#include "tfm_plat_otp.h" + +enum tfm_plat_err_t tfm_plat_otp_init(void) +{ + return TFM_PLAT_ERR_SUCCESS; +} + +enum tfm_plat_err_t tfm_plat_otp_read(enum tfm_otp_element_id_t id, size_t out_len, uint8_t *out) +{ + return TFM_PLAT_ERR_UNSUPPORTED; +} + +enum tfm_plat_err_t tfm_plat_otp_write(enum tfm_otp_element_id_t id, size_t in_len, + const uint8_t *in) +{ + return TFM_PLAT_ERR_UNSUPPORTED; +} + +enum tfm_plat_err_t tfm_plat_otp_get_size(enum tfm_otp_element_id_t id, size_t *size) +{ + return TFM_PLAT_ERR_UNSUPPORTED; +} -- cgit v1.2.3