Skip to content

Commit

Permalink
Add a few missing defines
Browse files Browse the repository at this point in the history
  • Loading branch information
armandomontanez committed Jun 12, 2024
1 parent 9ac5e9f commit 13e92a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rp2_common/cmsis/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ package(default_visibility = ["//visibility:public"])
cc_library(
name = "rename_exceptions",
hdrs = ["include/cmsis/rename_exceptions.h"],
# This is mildly odd, but intentional. We really don't want this header
# to have extra deps, but this should always be defined.
defines = ["LIB_CMSIS_CORE=1"],
includes = ["include"],
target_compatible_with = compatible_with_rp2(),
)

cc_library(
name = "cmsis_core",
defines = ["LIB_CMSIS_CORE=1"],
srcs = [
"stub/CMSIS/Device/RaspberryPi/RP2040/Source/system_RP2040.c",
],
Expand Down
1 change: 1 addition & 0 deletions src/rp2_common/pico_cyw43_arch/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ _CONFIGURATIONS = [
"include/pico/cyw43_arch/arch_{}.h".format(kind),
],
defines = [
"LIB_PICO_CYW43_ARCH=1",
"PICO_CYW43_ARCH_{}=1".format(kind.upper()),
"CYW43_LWIP={}".format(1 if use_lwip else 0),
],
Expand Down

0 comments on commit 13e92a9

Please sign in to comment.