blob: 8ce81f1e6b6e9246221bf5745ecd1b88138db330 [file] [log] [blame]
Brian Silverman36d06492018-05-12 11:52:35 -07001load("//motors:macros.bzl", "hex_from_elf")
2load("//tools:environments.bzl", "mcu_cpus")
3
4cc_binary(
5 name = "medium_salsa.elf",
6 srcs = [
7 "medium_salsa.cc",
8 ],
9 restricted_to = mcu_cpus,
10 deps = [
11 ":motor_controls",
12 "//motors:motor",
13 "//motors:util",
14 "//motors/core",
15 "//motors/peripheral:adc",
16 "//motors/peripheral:can",
17 "//motors/usb:legacy",
18 ],
19)
20
21hex_from_elf(
22 name = "medium_salsa",
23 restricted_to = mcu_cpus,
24)
25
26cc_library(
27 name = "motor_controls",
28 srcs = [
29 "motor_controls.cc",
30 ],
31 hdrs = [
32 "motor_controls.h",
33 ],
34 restricted_to = mcu_cpus,
35 deps = [
36 "//motors:math",
37 "//motors:motor",
38 "//motors/peripheral:configuration",
39 "//third_party/eigen",
40 ],
41)