From c6fd76fe6421a15e965acf8ca352b131c1d07abe Mon Sep 17 00:00:00 2001 From: Yilin Sun Date: Sun, 1 Jan 2023 16:09:44 +0800 Subject: [PATCH] Removed esp_hosted. Signed-off-by: Yilin Sun --- .gitmodules | 3 --- lib/esp_hosted/hosted | 1 - lib/esp_hosted/nxp/include/platform_wrapper.h | 8 ++++++++ 3 files changed, 8 insertions(+), 4 deletions(-) delete mode 160000 lib/esp_hosted/hosted diff --git a/.gitmodules b/.gitmodules index 921aec9..e0a5390 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,9 +1,6 @@ [submodule "SDK"] path = SDK url = https://git.minori.work/Embedded_SDK/MCUXpresso_LPC55S69.git -[submodule "lib/esp_hosted/hosted"] - path = lib/esp_hosted/hosted - url = https://github.com/espressif/esp-hosted.git [submodule "lib/freertos"] path = lib/freertos url = https://github.com/FreeRTOS/FreeRTOS-Kernel.git diff --git a/lib/esp_hosted/hosted b/lib/esp_hosted/hosted deleted file mode 160000 index 3583fb7..0000000 --- a/lib/esp_hosted/hosted +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3583fb7519f4ea3487949d999a8312060d38721d diff --git a/lib/esp_hosted/nxp/include/platform_wrapper.h b/lib/esp_hosted/nxp/include/platform_wrapper.h index 8ee7895..11b7807 100644 --- a/lib/esp_hosted/nxp/include/platform_wrapper.h +++ b/lib/esp_hosted/nxp/include/platform_wrapper.h @@ -28,4 +28,12 @@ int hosted_destroy_semaphore(void *semaphore_handle); void *hosted_timer_start(int duration, int type, void (*timeout_handler)(void const *), void *arg); int hosted_timer_stop(void *timer_handle); +unsigned int msleep(unsigned int mseconds); +unsigned int sleep(unsigned int seconds); + +void *serial_drv_open(const char *transport); +int serial_drv_write(void *handle, uint8_t *buf, int in_count, int *out_count); +uint8_t *serial_drv_read(void *handle, uint32_t *out_nbyte); +int serial_drv_close(void *handle); + #endif /* ESP_HOSTED_NXP_PLATFORM_WRAPPER_H */