Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | load('/aos/build/queues', 'queue_library') |
| 4 | |
| 5 | queue_library( |
| 6 | name = 'logging_queue', |
| 7 | srcs = [ |
| 8 | 'logging.q', |
| 9 | ], |
| 10 | ) |
| 11 | |
| 12 | cc_library( |
| 13 | name = 'encoder_and_potentiometer', |
| 14 | srcs = [ |
| 15 | 'encoder_and_potentiometer.cc', |
| 16 | ], |
| 17 | hdrs = [ |
| 18 | 'encoder_and_potentiometer.h', |
| 19 | ], |
| 20 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 21 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 22 | ':dma_edge_counting', |
| 23 | '//aos/linux_code:init', |
| 24 | '//aos/common/logging', |
Brian Silverman | 2200b2c | 2015-11-29 05:59:28 +0000 | [diff] [blame] | 25 | '//aos/common:mutex', |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 26 | ':dma', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 27 | ], |
| 28 | ) |
| 29 | |
| 30 | cc_library( |
| 31 | name = 'dma_edge_counting', |
| 32 | srcs = [ |
| 33 | 'dma_edge_counting.cc', |
| 34 | ], |
| 35 | hdrs = [ |
| 36 | 'dma_edge_counting.h', |
| 37 | ], |
| 38 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 39 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 40 | '//aos/common/logging', |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 41 | ':dma', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 42 | ], |
| 43 | ) |
| 44 | |
| 45 | cc_library( |
| 46 | name = 'interrupt_edge_counting', |
| 47 | srcs = [ |
| 48 | 'interrupt_edge_counting.cc', |
| 49 | ], |
| 50 | hdrs = [ |
| 51 | 'interrupt_edge_counting.h', |
| 52 | ], |
| 53 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 54 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 55 | '//aos/common/logging', |
| 56 | '//aos/common:stl_mutex', |
| 57 | '//aos/common:time', |
| 58 | '//aos/linux_code:init', |
| 59 | ], |
| 60 | ) |
| 61 | |
| 62 | cc_library( |
| 63 | name = 'buffered_pcm', |
| 64 | srcs = [ |
| 65 | 'buffered_solenoid.cc', |
| 66 | 'buffered_pcm.cc', |
| 67 | ], |
| 68 | hdrs = [ |
| 69 | 'buffered_solenoid.h', |
| 70 | 'buffered_pcm.h', |
| 71 | ], |
| 72 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 73 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 74 | '//aos/common/logging', |
| 75 | ], |
| 76 | ) |
| 77 | |
| 78 | cc_library( |
| 79 | name = 'gyro_interface', |
| 80 | srcs = [ |
| 81 | 'gyro_interface.cc', |
| 82 | ], |
| 83 | hdrs = [ |
| 84 | 'gyro_interface.h', |
| 85 | ], |
| 86 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 87 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 88 | '//aos/common/logging', |
Brian Silverman | edacaa7 | 2015-12-20 18:25:27 -0500 | [diff] [blame] | 89 | '//aos/common:time', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 90 | ], |
| 91 | ) |
| 92 | |
| 93 | cc_library( |
| 94 | name = 'gyro_sender', |
| 95 | srcs = [ |
| 96 | 'gyro_sender.cc', |
| 97 | ], |
| 98 | hdrs = [ |
| 99 | 'gyro_sender.h', |
| 100 | ], |
| 101 | deps = [ |
| 102 | '//frc971/queues:gyro', |
| 103 | ':gyro_interface', |
| 104 | '//aos/common/logging', |
| 105 | '//aos/common/logging:queue_logging', |
| 106 | '//aos/common/util:phased_loop', |
| 107 | '//aos/common/messages:robot_state', |
| 108 | '//aos/linux_code:init', |
| 109 | '//aos/common:time', |
| 110 | ], |
| 111 | ) |
| 112 | |
| 113 | cc_library( |
Comran Morshed | 33ad169 | 2015-12-06 18:53:02 +0000 | [diff] [blame] | 114 | name = 'lpd8806', |
| 115 | srcs = [ |
| 116 | 'LPD8806.cc', |
| 117 | ], |
| 118 | hdrs = [ |
| 119 | 'LPD8806.h', |
| 120 | ], |
| 121 | deps = [ |
| 122 | '//aos/common:mutex', |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 123 | '//third_party/allwpilib_2016:wpilib', |
Comran Morshed | 33ad169 | 2015-12-06 18:53:02 +0000 | [diff] [blame] | 124 | '//frc971/queues:gyro', |
| 125 | '//aos/common:time', |
| 126 | ], |
| 127 | ) |
| 128 | |
| 129 | cc_library( |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 130 | name = 'loop_output_handler', |
| 131 | srcs = [ |
| 132 | 'loop_output_handler.cc', |
| 133 | ], |
| 134 | hdrs = [ |
| 135 | 'loop_output_handler.h', |
| 136 | ], |
| 137 | deps = [ |
| 138 | '//aos/common:scoped_fd', |
| 139 | '//aos/linux_code:init', |
| 140 | '//aos/common:time', |
| 141 | '//aos/common/util:log_interval', |
| 142 | '//aos/common/messages:robot_state', |
| 143 | ], |
| 144 | ) |
| 145 | |
| 146 | cc_library( |
| 147 | name = 'joystick_sender', |
| 148 | srcs = [ |
| 149 | 'joystick_sender.cc', |
| 150 | ], |
| 151 | hdrs = [ |
| 152 | 'joystick_sender.h', |
| 153 | ], |
| 154 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 155 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 156 | '//aos/common/messages:robot_state', |
| 157 | '//aos/linux_code:init', |
| 158 | '//aos/common/network:team_number', |
| 159 | '//aos/common/logging:queue_logging', |
| 160 | ], |
| 161 | ) |
Brian Silverman | 811f8ec | 2015-12-06 01:29:42 -0500 | [diff] [blame] | 162 | |
| 163 | cc_library( |
| 164 | name = 'wpilib_interface', |
| 165 | srcs = [ |
| 166 | 'wpilib_interface.cc', |
| 167 | ], |
| 168 | hdrs = [ |
| 169 | 'wpilib_interface.h', |
| 170 | ], |
| 171 | deps = [ |
| 172 | '//aos/common/messages:robot_state', |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 173 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 811f8ec | 2015-12-06 01:29:42 -0500 | [diff] [blame] | 174 | '//aos/common/logging:queue_logging', |
Brian Silverman | 39b339e | 2016-01-03 13:24:22 -0800 | [diff] [blame] | 175 | ], |
| 176 | ) |
| 177 | |
| 178 | queue_library( |
| 179 | name = 'pdp_values', |
| 180 | srcs = [ |
| 181 | 'pdp_values.q', |
Brian Silverman | 425492b | 2015-12-30 15:23:55 -0800 | [diff] [blame] | 182 | ], |
| 183 | ) |
| 184 | |
| 185 | cc_library( |
| 186 | name = 'pdp_fetcher', |
| 187 | srcs = [ |
| 188 | 'pdp_fetcher.cc', |
| 189 | ], |
| 190 | hdrs = [ |
| 191 | 'pdp_fetcher.h', |
| 192 | ], |
| 193 | deps = [ |
Brian Silverman | 39b339e | 2016-01-03 13:24:22 -0800 | [diff] [blame] | 194 | ':pdp_values', |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 195 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 425492b | 2015-12-30 15:23:55 -0800 | [diff] [blame] | 196 | '//aos/common/logging:queue_logging', |
| 197 | '//aos/linux_code:init', |
Brian Silverman | 25ff505 | 2016-01-02 14:13:46 -0800 | [diff] [blame] | 198 | '//aos/common/util:phased_loop', |
Brian Silverman | 811f8ec | 2015-12-06 01:29:42 -0500 | [diff] [blame] | 199 | ], |
| 200 | ) |
Campbell Crowley | c0cfb13 | 2015-12-30 20:58:02 -0800 | [diff] [blame] | 201 | |
| 202 | cc_library( |
| 203 | name = 'wpilib_robot_base', |
| 204 | hdrs = [ |
| 205 | 'wpilib_robot_base.h', |
| 206 | ], |
| 207 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 208 | '//third_party/allwpilib_2016:wpilib', |
Campbell Crowley | c0cfb13 | 2015-12-30 20:58:02 -0800 | [diff] [blame] | 209 | ], |
| 210 | ) |
Brian Silverman | 5f17a97 | 2016-02-28 01:49:32 -0500 | [diff] [blame] | 211 | |
| 212 | queue_library( |
| 213 | name = 'imu_queue', |
| 214 | srcs = [ |
| 215 | 'imu.q', |
| 216 | ], |
| 217 | ) |
| 218 | |
| 219 | cc_library( |
| 220 | name = 'ADIS16448', |
| 221 | hdrs = [ |
| 222 | 'ADIS16448.h', |
| 223 | ], |
| 224 | srcs = [ |
| 225 | 'ADIS16448.cc', |
| 226 | ], |
| 227 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 228 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 5f17a97 | 2016-02-28 01:49:32 -0500 | [diff] [blame] | 229 | '//aos/common/logging', |
| 230 | '//aos/common/logging:queue_logging', |
| 231 | '//aos/common:time', |
| 232 | '//aos/linux_code:init', |
| 233 | ':imu_queue', |
| 234 | ], |
| 235 | ) |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame^] | 236 | |
| 237 | cc_library( |
| 238 | name = 'dma', |
| 239 | hdrs = [ |
| 240 | 'dma.h', |
| 241 | ], |
| 242 | srcs = [ |
| 243 | 'dma.cc', |
| 244 | ], |
| 245 | deps = [ |
| 246 | '//third_party/allwpilib_2016:wpilib', |
| 247 | ], |
| 248 | ) |