Skip to content
Snippets Groups Projects
Commit 50ae506d authored by bbartels's avatar bbartels
Browse files

quad: remove breaking include in hw_iface, update virt_quad

parent 5e84d9fd
No related branches found
No related tags found
No related merge requests found
#ifndef HW_IFACE_H
#define HW_IFACE_H
#include "xbasic_types.h"
/**
* Hardware Interfaces
*
......
......@@ -31,7 +31,7 @@ void help_sub_command(char *argv[]);
* Implement each of the hardware interfaces.
*/
int setup_hardware(hardware_t *hardware) {
hardware->i2c = create_unix_i2c();
hardware->i2c_0 = create_unix_i2c();
hardware->rc_receiver = create_unix_rc_receiver();
hardware->motors = create_unix_motors();
hardware->uart = create_unix_uart();
......@@ -39,9 +39,9 @@ int setup_hardware(hardware_t *hardware) {
hardware->axi_timer = create_unix_axi_timer();
hardware->mio7_led = create_unix_mio7_led();
hardware->sys = create_unix_system();
hardware->imu = create_unix_imu(&hardware->i2c);
hardware->lidar = create_unix_lidar(&hardware->i2c);
hardware->of = create_unix_optical_flow(&hardware->i2c);
hardware->imu = create_unix_imu(&hardware->i2c_0);
hardware->lidar = create_unix_lidar(&hardware->i2c_0);
hardware->of = create_unix_optical_flow(&hardware->i2c_0);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment