feat: normalize drivers framework component and repos

Signed-off-by: yuanbo <yuanbo@huawei.com>
This commit is contained in:
yuanbo
2022-06-15 19:24:19 +08:00
parent 6d280d5ba1
commit 45b41c1640
27 changed files with 270 additions and 294 deletions
+2 -4
View File
@@ -15,8 +15,6 @@ if (ohos_kernel_type == "liteos_m") {
import("//kernel/liteos_m/liteos.gni")
module_name = get_path_info(rebase_path("."), "name")
module_group(module_name) {
modules = [
"stm32f4xx"
]
modules = [ "stm32f4xx" ]
}
}
}
+45 -45
View File
@@ -1,46 +1,46 @@
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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.
import("//drivers/adapter/khdf/liteos/hdf.gni")
group("drivers") {
deps = [
"adc",
"spi",
"gpio",
"i2c",
"iwdg",
"uart",
"pwm",
"rng",
"smp",
"stm32mp1xx_hal",
"wlan:wifi_firmware",
]
}
config("public") {
lib_dirs = [ "//device/soc/st/common/platform/libs/ohos/llvm/stm32mp1xx" ]
ldflags = [ "-Wl,--push-state,--whole-archive" ]
ldflags += [ "-lltdc" ]
if (defined(LOSCFG_DRIVERS_MMC)) {
ldflags += [ "-lmmc" ]
}
if (defined(LOSCFG_DRIVERS_HDF_WIFI)) {
ldflags += [ "-lhdf_vendor_wifi" ]
}
if (defined(LOSCFG_DRIVERS_HDF_WIFI) && defined(LOSCFG_DRIVERS_HI3881)) {
ldflags += [ "-lhi3881" ]
}
}
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
group("drivers") {
deps = [
"adc",
"gpio",
"i2c",
"iwdg",
"pwm",
"rng",
"smp",
"spi",
"stm32mp1xx_hal",
"uart",
"wlan:wifi_firmware",
]
}
config("public") {
lib_dirs = [ "//device/soc/st/common/platform/libs/ohos/llvm/stm32mp1xx" ]
ldflags = [ "-Wl,--push-state,--whole-archive" ]
ldflags += [ "-lltdc" ]
if (defined(LOSCFG_DRIVERS_MMC)) {
ldflags += [ "-lmmc" ]
}
if (defined(LOSCFG_DRIVERS_HDF_WIFI)) {
ldflags += [ "-lhdf_vendor_wifi" ]
}
if (defined(LOSCFG_DRIVERS_HDF_WIFI) && defined(LOSCFG_DRIVERS_HI3881)) {
ldflags += [ "-lhi3881" ]
}
}
+1 -1
View File
@@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("//drivers/adapter/khdf/liteos/hdf.gni")
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_ADC)
module_name = "hdf_adc"
+1 -1
View File
@@ -12,7 +12,7 @@
# limitations under the License.
include $(LITEOSTOPDIR)/config.mk
include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/lite.mk
include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk
MODULE_NAME := hdf_adc
+4 -7
View File
@@ -11,16 +11,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("//drivers/adapter/khdf/liteos/hdf.gni")
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_GPIO)
hdf_driver("hdf_gpio") {
sources = [
"stm32mp1_gpio.c",
]
include_dirs = [
"." ,
sources = [ "stm32mp1_gpio.c" ]
include_dirs = [
".",
"../stm32mp1xx_hal/STM32MP1xx_HAL_Driver/Inc",
]
}
+1 -1
View File
@@ -12,7 +12,7 @@
# limitations under the License.
include $(LITEOSTOPDIR)/config.mk
include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/lite.mk
include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk
MODULE_NAME := hdf_gpio
+23 -26
View File
@@ -1,27 +1,24 @@
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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.
import("//drivers/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_I2C)
module_name = "hdf_i2c"
hdf_driver(module_name) {
sources = [
"stm32mp1_i2c.c",
]
include_dirs = [
"." ,
"../stm32mp1xx_hal/STM32MP1xx_HAL_Driver/Inc",
]
}
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_I2C)
module_name = "hdf_i2c"
hdf_driver(module_name) {
sources = [ "stm32mp1_i2c.c" ]
include_dirs = [
".",
"../stm32mp1xx_hal/STM32MP1xx_HAL_Driver/Inc",
]
}
+1 -1
View File
@@ -12,7 +12,7 @@
# limitations under the License.
include $(LITEOSTOPDIR)/config.mk
include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/lite.mk
include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk
MODULE_NAME := hdf_i2c
+19 -23
View File
@@ -1,24 +1,20 @@
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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.
import("//drivers/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_WATCHDOG)
module_name = "hdf_iwdg"
hdf_driver(module_name) {
sources = [
"stm32mp1_iwdg.c"
]
}
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_WATCHDOG)
module_name = "hdf_iwdg"
hdf_driver(module_name) {
sources = [ "stm32mp1_iwdg.c" ]
}
+1 -1
View File
@@ -12,7 +12,7 @@
# limitations under the License.
include $(LITEOSTOPDIR)/config.mk
include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/lite.mk
include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk
MODULE_NAME := hdf_iwdg
+23 -25
View File
@@ -1,26 +1,24 @@
# Copyright (c) 2021 Huawei Device Co., Ltd.
# 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
# Copyright (c) 2021 Huawei Device Co., Ltd.
# 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.
import("//drivers/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_PWM)
module_name = "hdf_pwm"
hdf_driver(module_name) {
sources = [
"stm32mp1_pwm.c"
]
include_dirs = [
"." ,
"../stm32mp1xx_hal/STM32MP1xx_HAL_Driver/Inc",
]
}
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_PWM)
module_name = "hdf_pwm"
hdf_driver(module_name) {
sources = [ "stm32mp1_pwm.c" ]
include_dirs = [
".",
"../stm32mp1xx_hal/STM32MP1xx_HAL_Driver/Inc",
]
}
+1 -1
View File
@@ -12,7 +12,7 @@
# limitations under the License.
include $(LITEOSTOPDIR)/config.mk
include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/lite.mk
include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk
MODULE_NAME := hdf_pwm
+2 -6
View File
@@ -27,17 +27,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import("//drivers/adapter/khdf/liteos/hdf.gni")
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_name = get_path_info(rebase_path("."), "name")
hdf_driver(module_name) {
if (defined(LOSCFG_HW_RANDOM_ENABLE)) {
sources = [ "stm32mp1_rng.c" ]
include_dirs = [
"../stm32mp1xx_hal/STM32MP1xx_HAL_Driver/Inc",
]
include_dirs = [ "../stm32mp1xx_hal/STM32MP1xx_HAL_Driver/Inc" ]
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/lite.mk
include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk
MODULE_NAME := $(notdir $(shell pwd))
ifdef LOSCFG_HW_RANDOM_ENABLE
+2 -3
View File
@@ -11,14 +11,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("//drivers/adapter/khdf/liteos/hdf.gni")
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_KERNEL_SMP)
hdf_driver("smp") {
sources = [
"smccc-call.S",
"stm32mp1_smp.c",
"smccc-call.S"
]
}
+23 -25
View File
@@ -1,26 +1,24 @@
# Copyright (c) 2021 Huawei Device Co., Ltd.
# 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
# Copyright (c) 2021 Huawei Device Co., Ltd.
# 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.
import("//drivers/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_SPI)
module_name = "hdf_spi"
hdf_driver(module_name) {
sources = [
"stm32mp1_spi.c",
]
include_dirs = [
"." ,
"../stm32mp1xx_hal/STM32MP1xx_HAL_Driver/Inc",
]
}
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_SPI)
module_name = "hdf_spi"
hdf_driver(module_name) {
sources = [ "stm32mp1_spi.c" ]
include_dirs = [
".",
"../stm32mp1xx_hal/STM32MP1xx_HAL_Driver/Inc",
]
}
+1 -1
View File
@@ -12,7 +12,7 @@
# limitations under the License.
include $(LITEOSTOPDIR)/config.mk
include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/lite.mk
include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk
MODULE_NAME := hdf_spi
+3 -5
View File
@@ -11,26 +11,24 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("//drivers/adapter/khdf/liteos/hdf.gni")
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_name = "hdf_stm32mp1xx_hal"
hdf_driver(module_name) {
sources = [
"STM32MP1xx_HAL_Driver/Src/system_stm32mp1xx.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_exti.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_gpio.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_i2c.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_exti.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_ltdc.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_rcc.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_rcc_ex.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_rng.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_tim.c",
"STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_tim_ex.c",
"STM32MP1xx_HAL_Driver/Src/system_stm32mp1xx.c",
]
include_dirs = [
".",
"STM32MP1xx_HAL_Driver/Inc",
]
}
+1 -1
View File
@@ -12,7 +12,7 @@
# limitations under the License.
include $(LITEOSTOPDIR)/config.mk
include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/lite.mk
include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk
MODULE_NAME := stm32mp1x_hal
+23 -23
View File
@@ -1,24 +1,24 @@
# Copyright (c) 2022 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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
# Copyright (c) 2022 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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.
import("//drivers/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_UART)
module_name = "hdf_uart"
hdf_driver(module_name) {
sources = [
"stm32mp1_uart.c",
"stm32mp1_uart_hw.c",
"KRecvBuf.c"
]
}
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_UART)
module_name = "hdf_uart"
hdf_driver(module_name) {
sources = [
"KRecvBuf.c",
"stm32mp1_uart.c",
"stm32mp1_uart_hw.c",
]
}
+1 -1
View File
@@ -12,7 +12,7 @@
# limitations under the License.
include $(LITEOSTOPDIR)/config.mk
include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/lite.mk
include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk
MODULE_NAME := hdf_uart
+1 -1
View File
@@ -18,4 +18,4 @@ import("//kernel/liteos_m/liteos.gni")
module_name = get_path_info(rebase_path("."), "name")
module_group(module_name) {
modules = [ "sdk" ]
}
}
+19 -19
View File
@@ -17,40 +17,40 @@ module_name = "stm32f4xx_sdk"
kernel_module(module_name) {
asmflags = board_asmflags
sources = [
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_iwdg.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rng.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_iwdg.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rng.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_exti.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_gpio.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_i2c.c",
# ll driver
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_rcc.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_gpio.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_exti.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_spi.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usart.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_tim.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_i2c.c",
"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usart.c",
]
}
+15 -17
View File
@@ -1,18 +1,16 @@
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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.
group("sdk_linux") {
deps = [
]
}
group("sdk_linux") {
deps = []
}
+36 -35
View File
@@ -1,36 +1,37 @@
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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.
# cmd = "if [ -f $product_path/hdf_config/BUILD.gn ]; then echo true; else echo false; fi"
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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.
# cmd = "if [ -f $product_path/hdf_config/BUILD.gn ]; then echo true; else echo false; fi"
# HAVE_PRODUCT_CONFIG = exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value")
cmd = "if [ -f $product_path/hdf_config/BUILD.gn ]; then echo true; else echo false; fi"
HAVE_PRODUCT_CONFIG = exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value")
group("sdk_liteos") {
deps = [
"board",
"drivers",
]
if (HAVE_PRODUCT_CONFIG) {
deps += [ "$product_path/hdf_config" ]
} else {
deps += [ "hdf_config" ]
}
}
config("public") {
configs = [
"board:public",
"drivers:public",
]
}
cmd = "if [ -f $product_path/hdf_config/BUILD.gn ]; then echo true; else echo false; fi"
HAVE_PRODUCT_CONFIG =
exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value")
group("sdk_liteos") {
deps = [
"board",
"drivers",
]
if (HAVE_PRODUCT_CONFIG) {
deps += [ "$product_path/hdf_config" ]
} else {
deps += [ "hdf_config" ]
}
}
config("public") {
configs = [
"board:public",
"drivers:public",
]
}
+19 -19
View File
@@ -1,20 +1,20 @@
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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
# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
# 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.
import("//drivers/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF)
module_name = "hdf_config"
hdf_driver(module_name) {
hcs_sources = [ "hdf.hcs" ]
}
import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni")
module_switch = defined(LOSCFG_DRIVERS_HDF)
module_name = "hdf_config"
hdf_driver(module_name) {
hcs_sources = [ "hdf.hcs" ]
}
+1 -1
View File
@@ -1,6 +1,6 @@
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
include $(LITEOSTOPDIR)/../../drivers/adapter/khdf/liteos/lite.mk
include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk
MODULE_NAME := hdf_config