1 /** 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * 15 * Description: Provides V151 HAL pwm \n 16 * 17 * History: \n 18 * 2022-09-16, Create file. \n 19 */ 20 #ifndef HAL_PWM_V151_H 21 #define HAL_PWM_V151_H 22 23 #include "hal_pwm.h" 24 #include "hal_pwm_v151_regs_op.h" 25 26 #ifdef __cplusplus 27 #if __cplusplus 28 extern "C" { 29 #endif /* __cplusplus */ 30 #endif /* __cplusplus */ 31 32 /** 33 * @defgroup drivers_hal_pwm_v151 PWM V151 34 * @ingroup drivers_hal_pwm 35 * @{ 36 */ 37 38 /** 39 * @if Eng 40 * @brief Get the instance of v151. 41 * @return The instance of v151. 42 * @else 43 * @brief 获取v151实例。 44 * @return v151实例。 45 * @endif 46 */ 47 hal_pwm_funcs_t *hal_pwm_v151_funcs_get(void); 48 49 /** 50 * @if Eng 51 * @brief Handler of the PWM interrupt request. 52 * @else 53 * @brief PWM中断处理函数。 54 * @endif 55 */ 56 void hal_pwm_v151_irq_handler(void); 57 58 59 /** 60 * @} 61 */ 62 63 #ifdef __cplusplus 64 #if __cplusplus 65 } 66 #endif /* __cplusplus */ 67 #endif /* __cplusplus */ 68 69 #endif