Brian Silverman | b79af7c | 2017-06-21 23:48:02 -0700 | [diff] [blame] | 1 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 2 | name = "legacy", |
| 3 | srcs = [ |
| 4 | "usb_desc.c", |
| 5 | "usb_dev.c", |
| 6 | "usb_mem.c", |
| 7 | "usb_mem.h", |
| 8 | "usb_names.h", |
| 9 | "usb_serial.c", |
| 10 | ], |
| 11 | hdrs = [ |
| 12 | "usb_desc.h", |
| 13 | "usb_dev.h", |
| 14 | "usb_serial.h", |
| 15 | ], |
| 16 | defines = [ |
| 17 | "USB_SERIAL=1", |
| 18 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 19 | target_compatible_with = ["@platforms//os:none"], |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 20 | visibility = ["//visibility:public"], |
| 21 | deps = [ |
| 22 | "//motors/core", |
| 23 | ], |
Brian Silverman | f91524f | 2017-09-23 13:15:55 -0400 | [diff] [blame] | 24 | ) |
| 25 | |
| 26 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 27 | name = "usb", |
| 28 | srcs = [ |
| 29 | "usb.cc", |
| 30 | ], |
| 31 | hdrs = [ |
| 32 | "usb.h", |
| 33 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 34 | target_compatible_with = ["@platforms//os:none"], |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 35 | visibility = ["//visibility:public"], |
| 36 | deps = [ |
| 37 | ":constants", |
| 38 | "//aos:macros", |
| 39 | "//motors:util", |
| 40 | "//motors/core", |
| 41 | ], |
Brian Silverman | f91524f | 2017-09-23 13:15:55 -0400 | [diff] [blame] | 42 | ) |
| 43 | |
| 44 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 45 | name = "cdc", |
| 46 | srcs = [ |
| 47 | "cdc.cc", |
| 48 | ], |
| 49 | hdrs = [ |
| 50 | "cdc.h", |
| 51 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 52 | target_compatible_with = ["@platforms//os:none"], |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 53 | visibility = ["//visibility:public"], |
| 54 | deps = [ |
| 55 | ":queue", |
| 56 | ":usb", |
| 57 | "//motors:util", |
| 58 | "//motors/core", |
| 59 | ], |
Brian Silverman | eda63f3 | 2017-10-08 18:57:33 -0400 | [diff] [blame] | 60 | ) |
| 61 | |
| 62 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 63 | name = "interrupt_out", |
| 64 | srcs = [ |
| 65 | "interrupt_out.cc", |
| 66 | ], |
| 67 | hdrs = [ |
| 68 | "interrupt_out.h", |
| 69 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 70 | target_compatible_with = ["@platforms//os:none"], |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 71 | visibility = ["//visibility:public"], |
| 72 | deps = [ |
| 73 | ":usb", |
| 74 | "//motors:util", |
| 75 | "//motors/core", |
| 76 | ], |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 77 | ) |
| 78 | |
| 79 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 80 | name = "queue", |
| 81 | srcs = [ |
| 82 | "queue.cc", |
| 83 | ], |
| 84 | hdrs = [ |
| 85 | "queue.h", |
| 86 | ], |
Brian Silverman | eda63f3 | 2017-10-08 18:57:33 -0400 | [diff] [blame] | 87 | ) |
| 88 | |
| 89 | cc_test( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 90 | name = "queue_test", |
| 91 | srcs = [ |
| 92 | "queue_test.cc", |
| 93 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 94 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 95 | deps = [ |
| 96 | ":queue", |
| 97 | "//aos/testing:googletest", |
| 98 | ], |
Brian Silverman | eda63f3 | 2017-10-08 18:57:33 -0400 | [diff] [blame] | 99 | ) |
| 100 | |
| 101 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 102 | name = "constants", |
| 103 | hdrs = [ |
| 104 | "constants.h", |
| 105 | ], |
Brian Silverman | f91524f | 2017-09-23 13:15:55 -0400 | [diff] [blame] | 106 | ) |
| 107 | |
| 108 | cc_test( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 109 | name = "constants_test", |
| 110 | srcs = [ |
| 111 | "constants_test.cc", |
| 112 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 113 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 114 | deps = [ |
| 115 | ":constants", |
| 116 | "//aos/testing:googletest", |
| 117 | ], |
Brian Silverman | b79af7c | 2017-06-21 23:48:02 -0700 | [diff] [blame] | 118 | ) |
Brian Silverman | d930f28 | 2017-11-04 23:09:12 -0400 | [diff] [blame] | 119 | |
| 120 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 121 | name = "hid", |
| 122 | srcs = [ |
| 123 | "hid.cc", |
| 124 | ], |
| 125 | hdrs = [ |
| 126 | "hid.h", |
| 127 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 128 | target_compatible_with = ["@platforms//os:none"], |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 129 | visibility = ["//visibility:public"], |
| 130 | deps = [ |
| 131 | ":usb", |
| 132 | "//motors:util", |
| 133 | ], |
Brian Silverman | d930f28 | 2017-11-04 23:09:12 -0400 | [diff] [blame] | 134 | ) |