summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
72a5287)
Appears to be working now
Signed-off-by: Keith Packard <keithp@keithp.com>
static void
ao_mpu6000_show(void)
{
static void
ao_mpu6000_show(void)
{
struct ao_data sample;
ao_data_get(&sample);
struct ao_data sample;
ao_data_get(&sample);
sample.mpu6000.gyro_x,
sample.mpu6000.gyro_y,
sample.mpu6000.gyro_z);
sample.mpu6000.gyro_x,
sample.mpu6000.gyro_y,
sample.mpu6000.gyro_z);
-#endif
- printf ("who-am-i: %02x\n", ao_mpu6000_reg_read(MPU6000_WHO_AM_I));
}
static const struct ao_cmds ao_mpu6000_cmds[] = {
}
static const struct ao_cmds ao_mpu6000_cmds[] = {
{
ao_mpu6000_configured = 0;
{
ao_mpu6000_configured = 0;
-// ao_add_task(&ao_mpu6000_task, ao_mpu6000, "mpu6000");
+ ao_add_task(&ao_mpu6000_task, ao_mpu6000, "mpu6000");
#ifndef AO_MPU6000_I2C_INDEX
ao_spi_init_cs(AO_MPU6000_SPI_CS_PORT, (1 << AO_MPU6000_SPI_CS_PIN));
#endif
#ifndef AO_MPU6000_I2C_INDEX
ao_spi_init_cs(AO_MPU6000_SPI_CS_PORT, (1 << AO_MPU6000_SPI_CS_PIN));
#endif