Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
PetePriority
firmware
Commits
2c343717
Commit
2c343717
authored
Aug 23, 2019
by
schneider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(max30001): Remove some old bhi stuff
parent
1f89a75f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
epicardium/modules/max30001.c
epicardium/modules/max30001.c
+3
-3
epicardium/modules/modules.h
epicardium/modules/modules.h
+0
-1
No files found.
epicardium/modules/max30001.c
View file @
2c343717
...
...
@@ -32,10 +32,10 @@ static const gpio_cfg_t analog_switch = {
/* clang-format on */
/*
BHI160
Task ID */
/*
MAX30001
Task ID */
static
TaskHandle_t
max30001_task_id
=
NULL
;
/*
BHI160
Mutex */
/*
MAX30001
Mutex */
static
StaticSemaphore_t
max30001_mutex_data
;
static
SemaphoreHandle_t
max30001_mutex
=
NULL
;
...
...
@@ -383,7 +383,7 @@ void vMAX30001Task(void *pvParameters)
/* Take Mutex during initialization, just in case */
if
(
xSemaphoreTake
(
max30001_mutex
,
0
)
!=
pdTRUE
)
{
LOG_CRIT
(
"max30001"
,
"Failed to acquire
BHI160
mutex!"
);
LOG_CRIT
(
"max30001"
,
"Failed to acquire
MAX30001
mutex!"
);
vTaskDelay
(
portMAX_DELAY
);
}
...
...
epicardium/modules/modules.h
View file @
2c343717
...
...
@@ -90,7 +90,6 @@ void disp_forcelock();
#define BHI160_MUTEX_WAIT_MS 50
void
vBhi160Task
(
void
*
pvParameters
);
#define MAX30001_FIFO_SIZE 128
#define MAX30001_MUTEX_WAIT_MS 50
void
vMAX30001Task
(
void
*
pvParameters
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment