diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/osal/usb_osal.c b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/osal/usb_osal.c index 2731ef6bb..e19c77368 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/osal/usb_osal.c +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/osal/usb_osal.c @@ -1,6 +1,41 @@ +/* + * Edited by Kameblue on June 12, 2024. + * + * For adapting CherryUSB to XiZi AIoT. + */ + #include "usb_osal.h" +#include "libserial.h" +#include "usyscall.h" usb_osal_thread_t usb_osal_thread_create(const char *name, uint32_t stack_size, uint32_t prio, usb_thread_entry_t entry, void *args){ + int ret; + char *task_param[] = { args, NULL }; + ret = thread(entry, name, task_param); + + return (usb_osal_thread_t)ret; +} + + +usb_osal_sem_t usb_osal_sem_create(uint32_t initial_count){ + + return NULL; +} + + + +void usb_osal_sem_delete(usb_osal_sem_t sem){ + +} + + +int usb_osal_sem_take(usb_osal_sem_t sem, uint32_t timeout){ + return 0; +} + + +int usb_osal_sem_give(usb_osal_sem_t sem){ + return 0; } \ No newline at end of file