Commit Graph

26 Commits

Author SHA1 Message Date
sakumisu
35da8d6747 fix: fix -Wunused-parameter warning with -Wextra cflag 2024-08-21 20:08:47 +08:00
sakumisu
1c2fd3407a refactor(osal): use osal malloc and free, remove usb_malloc & usb_free macro 2024-07-23 19:37:54 +08:00
Zhihong Chen
4357a1d7d1 osal: freeRTOS: fix enter/exit critical
- fix enter/exit critical

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-04-13 11:08:53 +08:00
sakumisu
a21947ff22 fix timer start in isr 2024-03-29 08:11:56 +08:00
sakumisu
2660af5d87 add timer to control interrupt transfer 2024-03-14 19:31:52 +08:00
sakumisu
f68a86ea89 add usbh_deinitialize api 2023-12-24 23:37:47 +08:00
sakumisu
14f1f597f1 add usb errno, do not use system errno 2023-12-05 21:34:32 +08:00
sakumisu
48730e20be add usb_osal_sem_reset api 2023-12-05 20:49:26 +08:00
sakumisu
11e389f922 Revert "reset sem before taking"
This reverts commit b5f0c043e7.
2023-12-05 20:45:21 +08:00
sakumisu
b5f0c043e7 reset sem before taking 2023-11-24 21:11:25 +08:00
Zhihong Chen
d4ba2eef57 osal: add USB_OSAL_WAITING_FOREVER for Semaphore and Queue use
- add USB_OSAL_WAITING_FOREVER for Semaphore and Queue use

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-10-12 14:38:13 +08:00
sakimisu
7574063e94 enum device with disposable thread, do not block hub thread 2023-07-05 22:53:13 +08:00
sakimisu
bb58348510 check if current context is in irq when gives sem 2023-06-28 21:44:28 +08:00
sakimisu
dc4887aef1 fix pointer in 64bit cpu, use uintptr_t instead 2023-04-21 23:24:13 +08:00
sakimisu
843af28b2b update hub thread wakeup with queue not sem&list 2022-12-11 20:27:18 +08:00
sakumisu
7837e34f75 delete event and thread suppend/resume port 2022-09-18 18:12:05 +08:00
sakumisu
7377b5183d Simplify the license rows, standardize header macro name 2022-08-18 21:41:19 +08:00
sakumisu
9ed5f1ce6b sem give use from isr 2022-08-11 17:26:10 +08:00
sakumisu
859c2ee6ae modify section protect with global irq 2022-06-21 21:45:33 +08:00
sakumisu
44c282580d sem return with -ETIMEDOUT when timeout 2022-04-03 22:10:50 +08:00
xieyangrun
322964f598 fixed osal critical section protect adapt 64bits CPU. 2022-03-31 18:40:11 +08:00
aozima
3cce9e7d78 clean compiler warning. 2022-03-27 14:58:25 +08:00
jzlv
c44a26d69f psc thread use event instead,add timeout for transfer 2022-03-23 14:47:18 +08:00
sakumisu
1868589843 check if in interrupt context 2022-02-07 18:13:28 +08:00
sakumisu
f24997db44 update osal api 2022-01-29 23:15:10 +08:00
sakumisu
43005a1b89 add usb os wrapper 2022-01-15 17:16:25 +08:00