-
Notifications
You must be signed in to change notification settings - Fork 10
feat: Implement MPU config for ADC driver #77
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
base: dev
Are you sure you want to change the base?
Conversation
Disable cache with proper MPU config Refactor copy-paste logic into indexable maps Generalize some DMA functionality for ADC and DAC Remove every cache invalidation Rewrite DMA errors Refactor all function and var names
svire-at
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
| #define ACTUAL_SAMPLING_RATE 250000 // You need to measure this value using a wave generator with a fixed e.g. 1kHz Sine | ||
| #define STORE_BUF_SIZE 32 * 32 // 2400 for 1 measurement per second. | ||
| // only multiples of 32!!!!!! (64 chunk size of bytes, so 32 for 16bit) | ||
| #define STORE_BUF_SIZE 32 * 32 // 2400 for 1 measurement per second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong number in the comment
| #define ACTUAL_SAMPLING_RATE 250000 // You need to measure this value using a wave generator with a fixed e.g. 1kHz Sine | ||
| #define STORE_BUF_SIZE 32 * 32 // 2400 for 1 measurement per second. | ||
| // only multiples of 32!!!!!! (64 chunk size of bytes, so 32 for 16bit) | ||
| #define STORE_BUF_SIZE 32 * 32 // 2400 for 1 measurement per second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong number in the comment
LorenzoBuldorini
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything`s look fine, just number calculation for buffer size as Azra pointed out in "projects/UltraSound/extra/ultrasonic_distance_acq_detailed_dataset/ultrasonic_distance_acq_detailed_dataset.ino" and "projects/UltraSound/ultrasonic_distance_acq/ultrasonic_distance_acq.ino"
Please check if the Pull Request fulfils these requirements
type: Descriptive NameLink related open issue
[TASK] MPU configuration for ADC driver #74
Provide a short description
Implement MPU config for ADC driver
Provide a more detailed list of changes
Does this PR introduce a breaking change?
N/A
Other information
SensEdu_ADC_Buffer and SensEdu_DAC_Buffer both are using MPU config now, so it doesn't matter which one to use.
There is a new macro SensEdu_DMA_Buffer which is preferable to use to reflect the identical buffer logic.