Code for the motor controller
This is basically what we used in Detroit.
Change-Id: If2820d7ec5fcbc5f33b4082025027a6e969ad0e1
diff --git a/motors/peripheral/BUILD b/motors/peripheral/BUILD
new file mode 100644
index 0000000..10fef28
--- /dev/null
+++ b/motors/peripheral/BUILD
@@ -0,0 +1,43 @@
+load("//tools:environments.bzl", "mcu_cpus")
+
+cc_library(
+ name = 'adc',
+ visibility = ['//visibility:public'],
+ hdrs = [
+ 'adc.h',
+ ],
+ srcs = [
+ 'adc.cc',
+ ],
+ deps = [
+ ':configuration',
+ '//motors:util',
+ '//motors/core',
+ ],
+ restricted_to = mcu_cpus,
+)
+
+cc_library(
+ name = 'configuration',
+ visibility = ['//visibility:public'],
+ hdrs = [
+ 'configuration.h',
+ ],
+ restricted_to = mcu_cpus,
+)
+
+cc_library(
+ name = 'can',
+ visibility = ['//visibility:public'],
+ hdrs = [
+ 'can.h',
+ ],
+ srcs = [
+ 'can.c',
+ ],
+ deps = [
+ '//motors/core',
+ '//motors:util',
+ ],
+ restricted_to = mcu_cpus,
+)