forked from raspberrypi/pico-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBUILD.bazel
More file actions
95 lines (89 loc) · 2.73 KB
/
Copy pathBUILD.bazel
File metadata and controls
95 lines (89 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
load("//bazel:defs.bzl", "compatible_with_pico_w", "pico_generate_pio_header")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "cyw43_configport",
hdrs = ["include/cyw43_configport.h"],
includes = ["include"],
deps = [
"//src/common/pico_time",
"//src/rp2_common:pico_platform",
"//src/rp2_common/hardware_gpio",
],
)
cc_library(
name = "pico_cyw43_driver",
srcs = [
"cyw43_bus_pio_spi.c",
"cyw43_driver.c",
],
hdrs = [
"include/pico/cyw43_driver.h",
],
includes = ["include"],
target_compatible_with = compatible_with_pico_w(),
deps = [
":cyw43_bus_pio",
":cyw43_configport",
":pico_btstack_cyw43",
"//src/rp2_common:pico_platform",
"//src/rp2_common/hardware_clocks",
"//src/rp2_common/hardware_dma",
"//src/rp2_common/hardware_irq",
"//src/rp2_common/hardware_pio",
"//src/rp2_common/hardware_sync",
"//src/rp2_common/pico_async_context",
"//src/rp2_common/pico_unique_id",
"@cyw43-driver//:cyw43_driver",
] + select({
"//bazel/constraint:pico_btstack_config_unset": [],
"//conditions:default": [
"//src/rp2_common/pico_btstack:pico_btstack",
],
}),
alwayslink = True,
)
cc_library(
name = "pico_btstack_cyw43",
srcs = select({
"//bazel/constraint:pico_btstack_config_unset": [],
"//conditions:default": [
"btstack_cyw43.c",
"btstack_chipset_cyw43.c",
"btstack_hci_transport_cyw43.c",
],
}),
hdrs = [
"include/pico/btstack_chipset_cyw43.h",
"include/pico/btstack_cyw43.h",
"include/pico/btstack_hci_transport_cyw43.h",
],
includes = ["include"],
deps = [
":cyw43_bus_pio",
":cyw43_configport",
"@cyw43-driver//:cyw43_driver",
] + select({
"//bazel/constraint:pico_btstack_config_unset": [],
"//conditions:default": [
"//bazel/config:PICO_BTSTACK_CONFIG",
"//src/rp2_common/pico_cyw43_driver/cybt_shared_bus:cybt_shared_bus_driver",
"//src/rp2_common/pico_btstack:btstack_run_loop_async_context",
"//src/rp2_common/pico_btstack:pico_btstack",
"//src/rp2_common/pico_btstack:pico_btstack_flash_bank",
],
}),
alwayslink = True,
)
pico_generate_pio_header(
name = "cyw43_bus_pio",
srcs = ["cyw43_bus_pio_spi.pio"],
)
# TODO: https://github.com/raspberrypi/pico-sdk/issues/2055 Support storing
# Wi-Fi firmware in a separate partition
filegroup(
name = "pico_use_partition_firmware",
srcs = [
"wifi_firmware.S",
"include/cyw43_partition_firmware.h",
]
)