Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: cmsis_dsp: add moving average sample #66726

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

kartben
Copy link
Collaborator

@kartben kartben commented Dec 20, 2023

This adds a basic example demonstrating how to enable and use the CMSIS-DSP module in Zephyr.

@kartben kartben force-pushed the cmsis_dsp_sample branch 7 times, most recently from 4ae7fe4 to c2e2f2a Compare December 22, 2023 15:52
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Feb 21, 2024
@kartben kartben removed the Stale label Feb 21, 2024
@kartben kartben force-pushed the cmsis_dsp_sample branch 9 times, most recently from 01cb322 to 2542423 Compare February 28, 2024 18:49
@kartben kartben marked this pull request as ready for review February 28, 2024 18:49
@zephyrbot zephyrbot added the area: Samples Samples label Feb 28, 2024
@zephyrbot zephyrbot requested a review from nashif February 28, 2024 18:50
This adds a basic example demonstrating how to enable and use the CMSIS-DSP
module in Zephyr.

Signed-off-by: Benjamin Cabé <[email protected]>
tags:
- samples
integration_platforms:
- qemu_cortex_m0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using mps2_an521_remote here would be a nice opportunity to show MVE in action :).

Copy link
Member

@MaureenHelm MaureenHelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it

/* Apply the FIR filter to the input data and measure how many cycles this takes */
start = k_cycle_get_32();
arm_fir_q31(&sFIR, input, output, BLOCK_SIZE);
end = k_cycle_get_32();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does averaging 32 samples take long enough to show up at the cycle resolution?
The standard API for profiling durations is zephyr/timing/timing.h with CONFIG_TIMING_FUNCTIONS=y from my understanding.

Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Jun 11, 2024
@jhedberg jhedberg removed the Stale label Jun 12, 2024
@jhedberg jhedberg merged commit 01604ac into zephyrproject-rtos:main Jun 12, 2024
18 checks passed
@kartben kartben deleted the cmsis_dsp_sample branch June 12, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants