Enable FreeRTOS SMP (multicore) (#90)
This commit is contained in:
committed by
GitHub
parent
dfd9349e6c
commit
d06137ba76
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "I2cCompat.h"
|
||||
#include "CoreTypes.h"
|
||||
#include <climits>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -24,7 +25,7 @@ typedef struct {
|
||||
/** Whether configuration can be changed. */
|
||||
bool hasMutableConfiguration;
|
||||
/** Read/write timeout (not related to mutex locking mechanism) */
|
||||
TickType_t timeout;
|
||||
unsigned long timeout;
|
||||
/** Configuration that must be valid when initAtBoot is set to true. */
|
||||
i2c_config_t config;
|
||||
} Configuration;
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef ESP_TARGET
|
||||
|
||||
#include <hal/i2c_types.h>
|
||||
#include <driver/i2c.h>
|
||||
|
||||
#else
|
||||
|
||||
#include <cstdint>
|
||||
#include "portmacro.h"
|
||||
|
||||
typedef int esp_err_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user