Brian Silverman | 36d0649 | 2018-05-12 11:52:35 -0700 | [diff] [blame] | 1 | load("//motors:macros.bzl", "hex_from_elf") |
| 2 | load("//tools:environments.bzl", "mcu_cpus") |
| 3 | |
| 4 | cc_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 | |
| 21 | hex_from_elf( |
| 22 | name = "medium_salsa", |
| 23 | restricted_to = mcu_cpus, |
| 24 | ) |
| 25 | |
| 26 | cc_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 Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 39 | "@org_tuxfamily_eigen//:eigen", |
Brian Silverman | 36d0649 | 2018-05-12 11:52:35 -0700 | [diff] [blame] | 40 | ], |
| 41 | ) |