Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
1f89a75f
Commit
1f89a75f
authored
5 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(max30001): logging and inverting the data
parent
fac9fe91
No related branches found
No related tags found
1 merge request
!225
MAX30001 support for epicardium
Pipeline
#3228
passed
5 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
epicardium/modules/max30001.c
+9
-5
9 additions, 5 deletions
epicardium/modules/max30001.c
with
9 additions
and
5 deletions
epicardium/modules/max30001.c
+
9
−
5
View file @
1f89a75f
...
...
@@ -154,11 +154,14 @@ static void max30001_handle_samples(int16_t *sensor_data, int16_t n)
}
while
(
n
--
)
{
uint16_t
data
=
-*
sensor_data
++
;
if
(
xQueueSend
(
max30001_stream
.
queue
,
sensor_
data
++
,
&
data
,
MAX30001_MUTEX_WAIT_MS
)
!=
pdTRUE
)
{
// TODO; handle queue full
LOG_WARN
(
"max30001"
,
"queue full"
);
// TODO; handle queue full
}
}
api_interrupt_trigger
(
EPIC_INT_MAX30001_ECG
);
...
...
@@ -336,9 +339,10 @@ static int max30001_fetch_fifo(void)
// Check if FIFO has overflowed
if
(
ETAG
[
readECGSamples
-
1
]
==
FIFO_OVF_MASK
)
{
ecg_write_reg
(
FIFO_RST
,
0
);
// Reset FIFO TODO: report overflow
ecg_write_reg
(
FIFO_RST
,
0
);
// Reset FIFO
LOG_WARN
(
"max30001"
,
"fifo overflow"
);
// TODO; handle fifo full
}
max30001_handle_samples
(
ecgSample
,
readECGSamples
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment