• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK")
2# All rights reserved.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16static_library("b91_ble_sdk") {
17  sources = [
18    "common/utility.c",
19    "drivers/B91/aes.c",
20    "drivers/B91/analog.c",
21    "drivers/B91/clock.c",
22    "drivers/B91/ext_driver/ext_gpio.c",
23    "drivers/B91/ext_driver/software_pa.c",
24    "drivers/B91/flash.c",
25    "drivers/B91/gpio.c",
26    "drivers/B91/pke.c",
27    "drivers/B91/stimer.c",
28    "drivers/B91/uart.c",
29  ]
30
31  sources += [
32    #"vendor/common/simple_sdp.c",
33    "vendor/common/blt_common.c",
34    "vendor/common/custom_pair.c",
35
36    #"vendor/common/device_manage.c",
37  ]
38
39  libs = [ "proj_lib/liblt_9518_liteos.a" ]
40
41  include_dirs = [
42    #"//kernel/liteos_m/arch/include",
43    #"//kernel/liteos_m/kernel/include",
44  ]
45
46  configs += [ "..:B91_config" ]
47}
48
49config("public") {
50  defines = [
51    "TELINK_SDK_B91_BLE_MULTI=1",
52    "UART_PRINT_DEBUG_ENABLE=1",
53  ]
54}
55