hathach
7707fe194f
rename OSAL_SUBTASK_INVOKED
2018-03-14 20:48:59 +07:00
hathach
ffca1f5e64
working on nrf52
2018-03-13 16:30:53 +07:00
hathach
0384e40320
rename hal_* to tusb_hal_*
2018-03-11 13:01:57 +07:00
hathach
23caef859c
adding nrf52840 port, able to blink led with pca10056
2018-03-11 00:16:10 +07:00
hathach
849d600d88
clean up
2018-03-08 14:36:37 +07:00
hathach
bd5f9ecdec
rename tusb_tick_get to hal_tick_get
2018-03-07 23:40:54 +07:00
hathach
f9270ac5a4
clean up
2018-03-05 13:31:17 +07:00
hathach
84bce659b8
reame SUBTASK_EXIT to SUBTASK_RETURN
2018-03-05 13:25:24 +07:00
hathach
f6137903bc
cleanup SUBTASK macros
2018-03-03 12:30:38 +07:00
hathach
dc12e55c56
rename hal_interrupt_* to hal_usb_int_*
2018-03-02 15:28:40 +07:00
hathach
7add7337ba
osal macro clean up
2018-03-01 12:14:44 +07:00
hathach
40935fc01c
more osal clean up
2018-03-01 11:42:13 +07:00
hathach
329fdc026c
change osal_task_create signature
2018-03-01 11:28:26 +07:00
hathach
a789fad4b7
clean up osal semaphore/queue/mutex
2018-03-01 11:17:11 +07:00
hathach
30124b9b02
refactor osal queue API
2018-02-28 16:45:54 +07:00
hathach
65a076f198
more clean up
2018-02-28 14:59:38 +07:00
hathach
9bf083d449
osal clean up remove OSAL_TASK_DEF, OSAL_TASK_FUNCTION
2018-02-28 14:25:08 +07:00
hathach
9b7cd608aa
osal clean up
...
- task create, task def macros
2018-02-28 14:21:43 +07:00
hathach
4091ddc4fc
move osal_queue_send of osal_none to osal_none.c
2014-04-18 14:45:21 +07:00
hathach
c7ac55aebc
remove OSAL_VAR for the simplicity
...
clean up osal.h
2014-04-09 22:29:38 +07:00
hathach
a8406060d1
doxygen documenting
2014-03-24 12:35:44 +07:00
hathach
61657f6751
change OSAL_TASK_FUNCTION to adapt with cmsis rtx
2014-03-19 16:50:49 +07:00
hathach
fe1b39e539
remove hardfault handler
2014-03-17 17:32:28 +07:00
hathach
23aa7070df
refrator, replace osal_tick_get / osal_tick_tock by tusb_tick_get
2014-03-17 17:23:32 +07:00
hathach
d1d4ddd856
doxygen document
2014-03-16 22:20:33 +07:00
hathach
f28746f28a
more warning clean up
2014-03-14 15:16:45 +07:00
hathach
f1692c93ac
fix some warnings
2014-03-13 18:11:59 +07:00
hathach
8f03dea95a
fix iar warning
2014-03-12 14:03:17 +07:00
hathach
4b6c6929cb
fix the duplicated plug connection status change with lpc17xx by using immediate reset on isr. However Khanh's G5 mouse is not enumerated !!
...
remove TUSB_CFG_CONFIGURATION_MAX from config file
fix some warning
2014-02-20 16:06:31 +07:00
hathach
8f70a6a886
change endian conversion to native to be & be to native
...
completely deferred xfer isr event to usbd task
complete read10, write10 sequence for large data transfer
2013-11-26 13:15:40 +07:00
hathach
c303154b7a
add class mounted callback for hid mouse/keyboard & refractor mouse/keyboard app
2013-11-21 13:54:29 +07:00
hathach
05c439e45a
refractor usbd, first step to make get configuration as sub task
2013-11-15 13:26:12 +07:00
hathach
fc68439b74
add usbd_task to handle event task eg setup received
2013-11-15 12:30:22 +07:00
hathach
318a058d3c
static assert to check OSAL_QUEUE_DEF's queue_depth parameter < 256
...
enable HOST_HCD_XFER_INTERRUPT by default (previously only enabled with HID), as it is widely used
implement tusbh_cdc_is_busy
add compilation switch in usbh enumeration for hub
rewrite CDC serial application to address usb-serial race condition
2013-10-27 19:34:36 +07:00
hathach
0d9e1163df
fix osal_none timeout, instant return with OSAL_TIMEOUT_NOTIMEOUT
2013-10-27 16:48:09 +07:00
hathach
bbfa85aa08
allow a limited model to deal with stalled pipe/transaction
...
added stall clear & able to mount the stupid toshiba thumb drive
add HCD pipe API
- bool hcd_pipe_is_busy(pipe_handle_t pipe_hdl);
- bool hcd_pipe_is_stalled(pipe_handle_t pipe_hdl);
- uint8_t hcd_pipe_get_endpoint_addr(pipe_handle_t pipe_hdl);
- tusb_error_t hcd_pipe_clear_stall(pipe_handle_t pipe_hdl);
remove tusbh_device_mount_failed_cb (not neccessary for user)
2013-09-24 18:23:34 +07:00
hathach
61c591b9ac
clean up warnings
2013-09-18 23:34:03 +07:00
hathach
ad0ef2e266
all project can run ok
2013-09-13 22:30:11 +07:00
hathach
14a8e26697
able to get blinky + greeting
2013-09-10 10:43:24 +07:00
hathach
e4ae45359d
fix bug with RNDIS class open using non-static variable p_cdc
...
fix bug with SUBTASK_EXIT with single if (add do while wrapper)
add payloay message
able to send initialize & wait on notification pipe & get initialize cmpt
2013-07-05 20:21:24 +07:00
hathach
a07ff5a3ce
use SUBTASK_EXIT to restart & exit task without "assert"
2013-06-27 16:32:54 +07:00
hathach
3bca56665c
add mutex support for osal
...
add test for mutex in test_osal_none.c
implement usbh_control_xfer using mutex to get access to queue xfer on control pipe
(while semaphore is used to sync with hcd DMA)
failed to issue control xfer: set idle & get report descriptor in hidh_open_subtask (more to work on)
2013-06-27 16:19:22 +07:00
hathach
c81c4bb817
add set idle request for hidh_open_subtask
...
add interface number to hidh_interface_info_t
refractor hidh_open_subtask to be a true subtask
cannot run with set idle code ON because of semaphore misuse
2013-06-27 03:20:14 +07:00
hathach
d7ae21203c
fix issue with osal_none queue def
2013-05-21 17:57:21 +07:00
hathach
63add70139
test clean up
2013-05-09 12:49:52 +07:00
hathach
120db28a17
change format of file header & license spacing
2013-05-06 12:50:19 +07:00
hathach
8bd077fa5c
fix bug (wrong logic) with osal_task_delay in non OS configure
...
complete keyboard app with key state & event TODO handle & check for non-printable(control) keycode
add unit test for osal_task_delay for non OS
2013-04-27 00:24:15 +07:00
hathach
3763e22c9a
change OSAL_TASK_DEF to decouple variable name with task name
...
implement osal_task_delay for freeRTOS & non_os
getting both no_os & freertos running with mouse + keyboard
2013-04-25 16:41:00 +07:00
hathach
92994c8192
add attribute warn unused result for osal_create_* function
...
taskify keyboard_app mouse_app & led_blinking
2013-04-25 11:55:24 +07:00
hathach
d4a2600ecc
- change OSAL_TASK_FUNCTION to have void* parameter (to be consistent with most popular RTOS)
...
- add new error enum TUSB_ERROR_OSAL_TASK_CREATE_FAILED
- move usbh_enumeration_task prototype to usbh.h
- change OSAL_SUBTASK_INVOKED_AND_WAIT behavior, will not "return" in calling task when subtask got error status.
calling task need to do that after the call
- osal_queue_receive signature from uint32_t* to void*
- implement osal_freertos.h for FreeRTOS 7.3 --> able to compile & build host_freertos
+ OSAL_TASK_FUNCTION
+ turn on FPU for M4 in both host_os_none & host_freertos (freertos requires FPU to be on to compile)
+ osal_task_create
+ OSAL_SUBTASK_INVOKED_AND_WAIT
+ SUBTASK_ASSERT
+ osal_semaphore_reset
+ osal_queue_flush
+ adding heap_1.c for memory management
2013-04-24 17:53:43 +07:00