blob: a42d502731e00f10af444a2e1b672e18401c4bc1 [file] [log] [blame]
Brian Silverman8d3816a2017-07-03 18:52:15 -07001cc_library(
Brian Silverman55c62022018-09-03 19:13:44 -07002 name = "adc",
3 srcs = [
4 "adc.cc",
5 ],
6 hdrs = [
7 "adc.h",
8 ],
Philipp Schraderdada1072020-11-24 11:34:46 -08009 target_compatible_with = ["@platforms//os:none"],
Brian Silverman55c62022018-09-03 19:13:44 -070010 visibility = ["//visibility:public"],
11 deps = [
12 ":configuration",
13 "//motors:util",
14 "//motors/core",
15 ],
Brian Silverman8d3816a2017-07-03 18:52:15 -070016)
17
18cc_library(
Brian Silverman55c62022018-09-03 19:13:44 -070019 name = "configuration",
20 hdrs = [
21 "configuration.h",
22 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080023 target_compatible_with = ["@platforms//os:none"],
Brian Silverman55c62022018-09-03 19:13:44 -070024 visibility = ["//visibility:public"],
Brian Silverman8d3816a2017-07-03 18:52:15 -070025)
26
27cc_library(
Brian Silverman55c62022018-09-03 19:13:44 -070028 name = "can",
29 srcs = [
30 "can.c",
31 ],
32 hdrs = [
33 "can.h",
34 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080035 target_compatible_with = ["@platforms//os:none"],
Brian Silverman55c62022018-09-03 19:13:44 -070036 visibility = ["//visibility:public"],
37 deps = [
38 "//motors:util",
39 "//motors/core",
40 ],
41)
42
43cc_library(
44 name = "uart_buffer",
45 hdrs = ["uart_buffer.h"],
Brian Silverman55c62022018-09-03 19:13:44 -070046 visibility = ["//visibility:public"],
47 deps = [
48 "//third_party/GSL",
49 ],
50)
51
52cc_test(
53 name = "uart_buffer_test",
54 srcs = [
55 "uart_buffer_test.cc",
56 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080057 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman55c62022018-09-03 19:13:44 -070058 deps = [
59 ":uart_buffer",
60 "//aos/testing:googletest",
61 ],
62)
63
64cc_library(
65 name = "uart",
66 srcs = ["uart.cc"],
67 hdrs = ["uart.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080068 target_compatible_with = ["@platforms//os:none"],
Brian Silverman55c62022018-09-03 19:13:44 -070069 visibility = ["//visibility:public"],
70 deps = [
71 ":uart_buffer",
Brian Silverman4f958792019-02-16 18:20:04 -080072 "//aos/containers:sized_array",
Brian Silverman55c62022018-09-03 19:13:44 -070073 "//motors:util",
74 "//motors/core",
75 "//third_party/GSL",
76 ],
Brian Silverman8d3816a2017-07-03 18:52:15 -070077)
Brian Silvermancabadaf2018-09-03 19:36:44 -070078
79cc_library(
80 name = "adc_dma",
81 srcs = ["adc_dma.cc"],
82 hdrs = ["adc_dma.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080083 target_compatible_with = ["@platforms//os:none"],
Brian Silvermancabadaf2018-09-03 19:36:44 -070084 visibility = ["//visibility:public"],
85 deps = [
86 ":configuration",
87 "//motors:util",
88 "//motors/core",
89 ],
90)
Brian Silverman333fc9e2019-02-24 15:09:17 -080091
92cc_library(
93 name = "spi",
94 srcs = ["spi.cc"],
95 hdrs = ["spi.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080096 target_compatible_with = ["@platforms//os:none"],
Brian Silverman333fc9e2019-02-24 15:09:17 -080097 visibility = ["//visibility:public"],
98 deps = [
99 ":uart_buffer",
100 "//motors:util",
101 "//motors/core",
102 "//third_party/GSL",
103 ],
104)