Skip to content

Commit

Permalink
feat(Other): Add HPB Zephyr wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Johanson <[email protected]>
  • Loading branch information
petejohanson-adi committed Mar 7, 2025
1 parent 54663b6 commit 9c04ce0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Libraries/zephyr/MAX/Include/wrap_max32_hpb.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/******************************************************************************
*
* Copyright (C) 2023-2025 Analog Devices, Inc.
*
* 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 LIBRARIES_ZEPHYR_MAX_INCLUDE_WRAP_MAX32_HPB_H_
#define LIBRARIES_ZEPHYR_MAX_INCLUDE_WRAP_MAX32_HPB_H_

/***** Includes *****/
#include <hpb.h>

#ifdef __cplusplus
extern "C" {
#endif

static inline int Wrap_MXC_HPB_Init(const mxc_hpb_mem_config_t *mem0,
const mxc_hpb_mem_config_t *mem1)
{
return MXC_HPB_Init(mem0, mem1);
}

#ifdef __cplusplus
}
#endif

#endif // LIBRARIES_ZEPHYR_MAX_INCLUDE_WRAP_MAX32_HPB_H_

0 comments on commit 9c04ce0

Please sign in to comment.