Skip to content
Snippets Groups Projects
Commit 2c343717 authored by schneider's avatar schneider
Browse files

fix(max30001): Remove some old bhi stuff

parent 1f89a75f
No related branches found
No related tags found
No related merge requests found
...@@ -32,10 +32,10 @@ static const gpio_cfg_t analog_switch = { ...@@ -32,10 +32,10 @@ static const gpio_cfg_t analog_switch = {
/* clang-format on */ /* clang-format on */
/* BHI160 Task ID */ /* MAX30001 Task ID */
static TaskHandle_t max30001_task_id = NULL; static TaskHandle_t max30001_task_id = NULL;
/* BHI160 Mutex */ /* MAX30001 Mutex */
static StaticSemaphore_t max30001_mutex_data; static StaticSemaphore_t max30001_mutex_data;
static SemaphoreHandle_t max30001_mutex = NULL; static SemaphoreHandle_t max30001_mutex = NULL;
...@@ -383,7 +383,7 @@ void vMAX30001Task(void *pvParameters) ...@@ -383,7 +383,7 @@ void vMAX30001Task(void *pvParameters)
/* Take Mutex during initialization, just in case */ /* Take Mutex during initialization, just in case */
if (xSemaphoreTake(max30001_mutex, 0) != pdTRUE) { 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); vTaskDelay(portMAX_DELAY);
} }
......
...@@ -90,7 +90,6 @@ void disp_forcelock(); ...@@ -90,7 +90,6 @@ void disp_forcelock();
#define BHI160_MUTEX_WAIT_MS 50 #define BHI160_MUTEX_WAIT_MS 50
void vBhi160Task(void *pvParameters); void vBhi160Task(void *pvParameters);
#define MAX30001_FIFO_SIZE 128
#define MAX30001_MUTEX_WAIT_MS 50 #define MAX30001_MUTEX_WAIT_MS 50
void vMAX30001Task(void *pvParameters); void vMAX30001Task(void *pvParameters);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment