![]() |
no-OS
|
Single-core dual-IMU example for the MAX78000. More...
#include <stdio.h>#include <stdint.h>#include <errno.h>#include "no_os_uart.h"#include "maxim_gpio.h"#include "maxim_spi.h"#include "adxl345.h"#include "adis.h"#include "adis1657x.h"#include "common_data.h"#include "maxim_sys.h"Macros | |
| #define | ADIS_GYRO_MDEG_DIV 5242880LL |
| #define | ADIS_ACCL_LSB_PER_MG 52429LL |
Functions | |
| int | imu_single_core_example_main (void) |
| Single-core IMU example main function. Initializes both the ADXL345 (accel, P0.19 CS) and ADIS16577-2 (6-axis IMU, P0.11 CS) on SPI0, integrates gyro rate into roll/pitch/yaw angles on the ARM, and logs both sensors at ~10 Hz over UART. | |
Single-core dual-IMU example for the MAX78000.
Copyright 2026(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define ADIS_ACCL_LSB_PER_MG 52429LL |
| #define ADIS_GYRO_MDEG_DIV 5242880LL |
| int imu_single_core_example_main | ( | void | ) |
Single-core IMU example main function. Initializes both the ADXL345 (accel, P0.19 CS) and ADIS16577-2 (6-axis IMU, P0.11 CS) on SPI0, integrates gyro rate into roll/pitch/yaw angles on the ARM, and logs both sensors at ~10 Hz over UART.