• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 Talkweb Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//kernel/liteos_m/liteos.gni")
15
16module_name = "stm32f4xx_sdk"
17
18kernel_module(module_name) {
19  asmflags = board_asmflags
20
21  sources = [
22    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c",
23    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c",
24    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.c",
25    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.c",
26    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c",
27    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c",
28    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c",
29    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c",
30    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c",
31    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c",
32    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c",
33    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c",
34    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c",
35    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c",
36    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_iwdg.c",
37    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c",
38    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c",
39    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c",
40    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c",
41    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rng.c",
42    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c",
43    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c",
44    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c",
45    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c",
46    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_exti.c",
47    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_gpio.c",
48    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_i2c.c",
49
50    # ll driver
51    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_rcc.c",
52    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_spi.c",
53    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_tim.c",
54    "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usart.c",
55  ]
56}
57