-
Notifications
You must be signed in to change notification settings - Fork 0
DEV-475 moving some sampling timer code to common and tidying #71
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
Conversation
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.
Pull Request Overview
This PR refactors the data sampling and streaming architecture by renaming functions and constants to better reflect their purpose, and extracts ISR logic into a separate timer-triggered function.
- Renamed
TASK_STREAMDATAtoTASK_GATHER_DATAandShimSens_streamData()toShimSens_gatherData()for clarity - Extracted ISR logic into new
ShimSens_sampleTimerTriggered()function - Introduced
platform_gatherData()API for platform-specific data gathering customization - Changed state transition from
SAMPLING_COMPLETEtoSAMPLE_NOT_READYinShimSens_saveData()
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| TaskList/shimmer_taskList.h | Renamed task enum constant from TASK_STREAMDATA to TASK_GATHER_DATA |
| TaskList/shimmer_taskList.c | Updated switch case to use renamed task constant and function |
| Sensing/shimmer_sensing.h | Renamed function declaration and replaced ISR function with timer-triggered function |
| Sensing/shimmer_sensing.c | Renamed data gathering function, refactored ISR into timer function, changed state assignment |
| SDCard/shimmer_sd_cfg_file.c | Updated task constant reference in configuration read function |
| Platform/platform_api.h | Added new weak function declaration for platform-specific data gathering |
| Platform/platform_api.c | Implemented default weak function for platform-specific data gathering |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
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.
Pull Request Overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This reverts commit 1d6507a.
…himmerResearch/log-and-stream-common.git into DEV-475_stability_improvements
No description provided.