-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBUILD
More file actions
37 lines (35 loc) · 767 Bytes
/
BUILD
File metadata and controls
37 lines (35 loc) · 767 Bytes
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
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
cc_library(
name = "picocan",
srcs = [
"app.c",
"drv_canfdspi_api.c",
"drv_spi.c",
"led.c",
],
hdrs = [
"app.h",
"common.h",
"drv_canfdspi_api.h",
"drv_canfdspi_defines.h",
"drv_canfdspi_register.h",
"drv_spi.h",
"led.h",
],
defines = [
"MCP25xxFD",
],
deps = [
"@pico-sdk//src/rp2_common/hardware_i2c",
"@pico-sdk//src/rp2_common/hardware_spi",
"@pico-sdk//src/rp2_common/pico_stdio_usb",
"@pico-sdk//src/rp2_common/pico_stdlib",
],
)
cc_binary(
name = "picocan_main.elf",
srcs = ["main.c"],
deps = [
":picocan",
],
)