Skip to content

Commit 6dc2de2

Browse files
committed
Merge branch 'fix/create_const_char' into 'main'
fix(create_const_char): use const char for h_thread_create See merge request app-frameworks/esp_hosted_mcu!81
2 parents 06c6f84 + 0abadf1 commit 6dc2de2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

host/hosted_os_abstraction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ typedef struct {
1919
/* 8 */ void (*_h_free_align)(void* ptr);
2020

2121
/* Thread */
22-
/* 11 */ void* (*_h_thread_create)(char *tname, uint32_t tprio, uint32_t tstack_size, void (*start_routine)(void const *), void *sr_arg);
22+
/* 11 */ void* (*_h_thread_create)(const char *tname, uint32_t tprio, uint32_t tstack_size, void (*start_routine)(void const *), void *sr_arg);
2323
/* 12 */ int (*_h_thread_cancel)(void *thread_handle);
2424

2525
/* Sleeps */

host/port/esp/freertos/src/os_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void hosted_init_hook(void)
146146

147147
/* -------- Threads ---------- */
148148

149-
void *hosted_thread_create(char *tname, uint32_t tprio, uint32_t tstack_size, void (*start_routine)(void const *), void *sr_arg)
149+
void *hosted_thread_create(const char *tname, uint32_t tprio, uint32_t tstack_size, void (*start_routine)(void const *), void *sr_arg)
150150
{
151151
int task_created = RET_OK;
152152

idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "2.0.12"
1+
version: "2.0.13"
22
description: ESP-Hosted-MCU provide drivers to act any ESP chipset as Wi-Fi or Bluetooth co-processor.
33
url: https://github.com/espressif/esp-hosted-mcu
44
examples:

0 commit comments

Comments
 (0)