spi_flash: Add into sim/stubs the esp_timer

This commit is contained in:
KonstantinKondrashov 2020-04-02 17:54:43 +08:00
parent ae89f98d59
commit 0f6fe0c8e9
4 changed files with 40 additions and 0 deletions

View file

@ -17,6 +17,7 @@ INCLUDE_DIRS := \
app_update/include \
driver/include \
esp32/include \
esp_timer/include \
freertos/include \
log/include \
newlib/include \
@ -32,6 +33,7 @@ INCLUDE_DIRS := \
soc/include \
soc/soc/include \
esp32/include \
esp_timer/include \
bootloader_support/include \
app_update/include \
spi_flash/include \

View file

@ -4,6 +4,7 @@ SOURCE_FILES := \
newlib/lock.c \
esp32/crc.cpp \
esp32/esp_random.c \
esp_timer/src/esp_timer.c \
bootloader_support/src/bootloader_common.c
INCLUDE_DIRS := \
@ -12,6 +13,7 @@ INCLUDE_DIRS := \
app_update/include \
driver/include \
esp32/include \
esp_timer/include \
freertos/include \
log/include \
newlib/include \
@ -25,6 +27,7 @@ INCLUDE_DIRS := \
xtensa/include \
xtensa/esp32/include \
esp32/include \
esp_timer/include \
bootloader_support/include \
app_update/include \
spi_flash/include \

View file

@ -0,0 +1,15 @@
#pragma once
#include <stdint.h>
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
int64_t esp_timer_get_time(void);
#ifdef __cplusplus
}
#endif

View file

@ -0,0 +1,20 @@
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "esp_timer.h"
int64_t esp_timer_get_time(void)
{
return 0;
}