Commit Graph

82 Commits

Author SHA1 Message Date
hathach
4c61471939 more clean up 2018-03-02 14:14:32 +07:00
hathach
2580b4c6a7 add tud_mount_cb, tud_umount_cb
remove device class/interface callback
2018-03-02 00:18:21 +07:00
hathach
0afa0ce4cc rename tud_configured() to mounted() 2018-03-01 23:43:03 +07:00
hathach
9a2924fb36 device API rename 2018-03-01 12:51:19 +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
45ea2ff358 remove cmsis rtx support 2018-02-28 15:05:55 +07:00
hathach
65a076f198 more clean up 2018-02-28 14:59:38 +07:00
hathach
9b7cd608aa osal clean up
- task create, task def macros
2018-02-28 14:21:43 +07:00
hathach
d00655f598 cdc device app rename CDCD_APP_BUFFER_SIZE to SERIAL_BUFFER_SIZE
cdc host app add SERIAL_BUFFER_SIZE for buffer constant, add cdc data receive if cb with TUSB_EVENT_XFER_ERROR
minor change to keyboard & mouse host app
add ASSERT_FAILED & ASSERT_FAILED_MSG
add cast to fix IAR build error with dcd_lpc43xx.c

FreeRTOS
- merge FreeRTOSConfig for m0, m3, m4
- re-implement application hook
- support portmacro.h for m0
2014-04-25 15:16:52 +07:00
hathach
dbf276ad6f added all assert check to osal_queue_send and osal_semaphore_post 2014-04-24 23:57:21 +07:00
hathach
6804fee0fa correct dcd_pipe_is_busy to use list_qtd_idx[] instead of qtd_overlay
flush usbd_queue_hdl when bus_reset
add assert check for osal_queue_send
increase ENUM_QUEUE_DEPTH for usbh
change osal_freeRTOS.h implementation to
- correctly waiting forever for semaphore wait, queue & mutex
- not use ISR safe version since it is not as generic as we want
2014-04-24 23:40:28 +07:00
hathach
9d404b9f00 refractor keyboard_device_app.c
refractor mouse_device_app.c app to only send report when necessary (movement or button changed)
2014-04-24 15:59:35 +07:00
hathach
9a48a4aa03 disable device mouse by default
fix hal_debugger_is_attached with lpc11u
2014-04-19 02:33:30 +07:00
hathach
4091ddc4fc move osal_queue_send of osal_none to osal_none.c 2014-04-18 14:45:21 +07:00
hathach
06bb9ad7a7 move STRING & XSTRING & STATIC_ASSERT to compiler.h
disable test for a class of cdc host
temporarily disable test for test_osal_none.c
change include in some core files
remove osal.h from common.h
2014-04-17 22:57:11 +07:00
hathach
fb510559ec remove TUSB_CFG_DEVICE_FULLSPEED 2014-04-17 10:54:20 +07:00
hathach
4e4a115569 clean up 2014-04-04 15:21:19 +07:00
hathach
bfb80c4ede added rtos to greeting for easy testing
correct all keil flash setting
2014-04-03 16:41:42 +07:00
hathach
1fb1ea46a5 update xpresso host cmsis rtx to build with ngx4330
xpresso device cmsis rtx can build with all board
2014-03-31 17:56:21 +07:00
hathach
22b7e9f306 complete all available boards with device_freertos keil/iar/xpresso 2014-03-31 14:56:20 +07:00
hathach
97b5ce74c9 all classes work well with lpcxpresso device freertos
keil device freertos, CDC has problem with typing too many characters
2014-03-31 12:38:12 +07:00
hathach
140115584f device_freertos lpcxpresso work with msc keyboard mouse 2014-03-31 12:19:41 +07:00
hathach
bc99f59699 code beautify 2014-03-31 12:06:13 +07:00
hathach
6682720b2a implement & document all the device class _mounted_cb & _unmounted_cb callbacks 2014-03-31 11:59:43 +07:00
hathach
0bb2cc64b0 device_freertos/.cproject works well with msc & keyboard 2014-03-31 11:26:41 +07:00
hathach
2a4976b7bd markdown documenting 2014-03-26 00:00:53 +07:00
hathach
04c94440da added board lpcxpresso 11u14 2014-03-25 16:41:50 +07:00
hathach
f802b54417 clean up 2014-03-25 15:09:51 +07:00
hathach
6c9d03905e fix build for lpcxpreso host 2014-03-24 16:07:17 +07:00
hathach
7b6bcfcf97 fix build problem with lpcxrepsso 2014-03-24 15:37:51 +07:00
hathach
d3616987b7 rename demo app file 2014-03-24 15:30:51 +07:00
hathach
a8d32d81b3 tested with IAR & keil for device ea4357, fix some warnings 2014-03-23 17:33:58 +07:00
hathach
58892299f3 use internal buffer for hid report descriptor as well. 2014-03-23 16:57:39 +07:00
hathach
e0fd3efa70 finished using usbd_enum_buffer for all std descriptors 2014-03-23 15:39:55 +07:00
hathach
1af381c2de remove TUSB_CFG_DEVICE_STRING_DESCRIPTOR_COUNT
refractor descriptor to array of pointer, adding interface descriptor as well
2014-03-23 14:14:00 +07:00
hathach
e28170db2f adding usbd_enum_buffer to usbd
remove string descriptor USB RAM requirement
2014-03-23 10:15:32 +07:00
hathach
6d2eb50c0d rename msc device app function 2014-03-23 00:06:36 +07:00
hathach
3a8dce013d remove IAD_DESC_REQUIRED
add compiler guard for exceeding number of endpoints for lpc11/13u
2014-03-23 00:00:23 +07:00
hathach
1cdca167cd rename dcd_11u_13u_qhd_t::total_bytes to nbytes to prevent confusion
introduce scsi_data to mscd_interface_t to make tusbd_msc_scsi_cb buffer's address no longer to be required in USB ram section --> save usb ram for lpc11/13u
2014-03-22 22:50:08 +07:00
hathach
7c5b386130 clean ATTR_USB_MIN_ALIGNMENT on application and most of device except the msc_device.c 2014-03-21 19:23:19 +07:00
hathach
d2d0d0a6d5 clean up some device warnings
move led_blinking_task and led_blinking_set_interval to board.c
2014-03-21 16:32:39 +07:00
hathach
61657f6751 change OSAL_TASK_FUNCTION to adapt with cmsis rtx 2014-03-19 16:50:49 +07:00
hathach
cf82b13a0e finish descriptor refractor for hid keyboard & mouse 2014-03-18 18:38:15 +07:00
hathach
eab4f9642c refractor descriptor passing for device with user-friendly structures 2014-03-18 18:07:48 +07:00
hathach
34756f3862 app descriptor rename 2014-03-18 16:58:24 +07:00
hathach
e73667c078 clean up tusb_descriptors 2014-03-18 16:23:23 +07:00
hathach
2c4a2e5b9e rename TUSB_CFG_OS_TICKS_PER_SECOND to TUSB_CFG_TICKS_HZ
remove CFG_TICKS_PER_SECOND
2014-03-18 16:10:25 +07:00