blob: 062828f51676c7ead8b3e826bb2d9eb524d444d8 [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",
Alex Perrycb7da4b2019-08-28 19:35:56 -070039 "@org_tuxfamily_eigen//:eigen",
Brian Silverman36d06492018-05-12 11:52:35 -070040 ],
41)