no-OS
Loading...
Searching...
No Matches
imu_dual_core_example.c File Reference

ARM Cortex-M4F (CPU0) side of the dual-core IMU example. More...

#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
#include "no_os_uart.h"
#include "no_os_delay.h"
#include "capi_coprocessor.h"
#include "capi_mailbox.h"
#include "maxim_capi_coprocessor.h"
#include "maxim_ipc.h"
#include "maxim_gpio_spi.h"
#include "maxim_sys.h"
#include "adxl345.h"
#include "common_data.h"
#include "imu_ipc_shared.h"
#include "mxc_device.h"
#include "nvic_table.h"
Include dependency graph for imu_dual_core_example.c:

Macros

#define ADIS_GYRO_MDEG_DIV   5242880LL
 
#define ADIS_ACCL_LSB_PER_MG   52429LL
 

Functions

int imu_dual_core_example_main (void)
 ARM dual-core IMU example main function. Boots the RISC-V core, which polls an ADIS16577-2 over SPI0 and publishes raw samples, initializes an ADXL345 on the same SPI0 bus, integrates gyro angles on the ARM, and logs both sensors.
 

Variables

uint8_t _riscv_boot
 

Detailed Description

ARM Cortex-M4F (CPU0) side of the dual-core IMU example.

Author
Victor Pascu (victo.nosp@m.r.pa.nosp@m.scu@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ ADIS_ACCL_LSB_PER_MG

#define ADIS_ACCL_LSB_PER_MG   52429LL

◆ ADIS_GYRO_MDEG_DIV

#define ADIS_GYRO_MDEG_DIV   5242880LL

Function Documentation

◆ imu_dual_core_example_main()

int imu_dual_core_example_main ( void )

ARM dual-core IMU example main function. Boots the RISC-V core, which polls an ADIS16577-2 over SPI0 and publishes raw samples, initializes an ADXL345 on the same SPI0 bus, integrates gyro angles on the ARM, and logs both sensors.

Returns
0 on success, negative error code on failure.

Variable Documentation

◆ _riscv_boot

uint8_t _riscv_boot
extern