1 /****************************************************************************** 2 * 3 * Copyright (C) 2023-2025 Analog Devices, Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19 #ifndef LIBRARIES_ZEPHYR_MAX_INCLUDE_WRAP_MAX32_OWM_H_ 20 #define LIBRARIES_ZEPHYR_MAX_INCLUDE_WRAP_MAX32_OWM_H_ 21 22 /***** Includes *****/ 23 #include <owm.h> 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 /* 30 * MAX32665, MAX32666 related mapping 31 */ 32 #if defined(CONFIG_SOC_MAX32665) || (CONFIG_SOC_MAX32666) 33 Wrap_MXC_OWM_Init(const mxc_owm_cfg_t * cfg)34static inline int Wrap_MXC_OWM_Init(const mxc_owm_cfg_t *cfg) 35 { 36 /* map parameters does not have any effect */ 37 return MXC_OWM_Init(cfg, (sys_map_t)0); 38 } 39 40 /* 41 * MAX32690, MAX32655 related mapping 42 */ 43 #elif defined(CONFIG_SOC_MAX32690) || defined(CONFIG_SOC_MAX32655) || \ 44 defined(CONFIG_SOC_MAX32680) || defined(CONFIG_SOC_MAX78002) || defined(CONFIG_SOC_MAX78000) 45 46 static inline int Wrap_MXC_OWM_Init(const mxc_owm_cfg_t *cfg) 47 { 48 return MXC_OWM_Init(cfg); 49 } 50 51 #endif // part number 52 53 #ifdef __cplusplus 54 } 55 #endif 56 57 #endif // LIBRARIES_ZEPHYR_MAX_INCLUDE_WRAP_MAX32_OWM_H_ 58