• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3#
4# This file is dual licensed: you can use it either under the terms of
5# the GPL, or the BSD license, at your option.
6# See the LICENSE file in the root of this repository for complete details.
7#
8
9import("../../khdf/liteos_m/hdf.gni")
10
11module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_PWM)
12module_name = get_path_info(rebase_path("."), "name")
13
14hdf_driver(module_name) {
15  sources = []
16  if (defined(LOSCFG_SOC_COMPANY_BESTECHNIC)) {
17    sources += [ "pwm_bes.c" ]
18  }
19  if (defined(LOSCFG_SOC_COMPANY_WINNERMICRO)) {
20    sources += [ "pwm_wm.c" ]
21  }
22  if (defined(LOSCFG_SOC_SERIES_STM32F4xx)) {
23    sources += [ "pwm_stm32f4xx.c" ]
24  }
25
26  include_dirs = [ "." ]
27}
28