blob: 58fa295a18d62d32adc93de0f3cc86b7955eece3 [file] [log] [blame]
Brian Silverman36d06492018-05-12 11:52:35 -07001load("//motors:macros.bzl", "hex_from_elf")
Brian Silverman36d06492018-05-12 11:52:35 -07002
3cc_binary(
4 name = "medium_salsa.elf",
5 srcs = [
6 "medium_salsa.cc",
7 ],
Philipp Schraderdada1072020-11-24 11:34:46 -08008 target_compatible_with = ["@platforms//os:none"],
Brian Silverman36d06492018-05-12 11:52:35 -07009 deps = [
10 ":motor_controls",
11 "//motors:motor",
12 "//motors:util",
13 "//motors/core",
14 "//motors/peripheral:adc",
15 "//motors/peripheral:can",
16 "//motors/usb:legacy",
17 ],
18)
19
20hex_from_elf(
21 name = "medium_salsa",
Philipp Schraderdada1072020-11-24 11:34:46 -080022 target_compatible_with = ["@platforms//os:none"],
Brian Silverman36d06492018-05-12 11:52:35 -070023)
24
25cc_library(
26 name = "motor_controls",
27 srcs = [
28 "motor_controls.cc",
29 ],
30 hdrs = [
31 "motor_controls.h",
32 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080033 target_compatible_with = ["@platforms//os:none"],
Brian Silverman36d06492018-05-12 11:52:35 -070034 deps = [
35 "//motors:math",
36 "//motors:motor",
37 "//motors/peripheral:configuration",
Alex Perrycb7da4b2019-08-28 19:35:56 -070038 "@org_tuxfamily_eigen//:eigen",
Brian Silverman36d06492018-05-12 11:52:35 -070039 ],
40)